@bbockelm,

Ok, this is what I did on my Archlinux host:

$ makepkg
...
$ cd src/build/src/CMakeFiles/XrdCryptossl-4.dir/XrdCrypto
$ strings XrdCryptosslCipher.cc.o | grep /home
/home/vladimir/pkgs/xrootd/src/xrootd-4.8.4/src/XrdCrypto/XrdCryptosslCipher.cc

Since I didn't understand why this should be in .rodata section I searched the Internet to find out how to "disassemble" the object file (I used mc to "view" object file in parsed and raw forms, in first case I didn't see that path but in the second case I see the path in literal) and found two links (wikipedia and osdev.org), so I tried that

$ objdump -s -j .rodata XrdCryptosslCipher.cc.o                                                                                                                   
                                                                                                                                                                                                                                              
XrdCryptosslCipher.cc.o:     file format elf64-x86-64

objdump: section '.rodata' mentioned in a -j option, but not found in any input file

I'm not very familiar with structure of object files but where that string lives in it?


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/xrootd/xrootd","title":"xrootd/xrootd","subtitle":"GitHub repository","main_image_url":"https://assets-cdn.github.com/images/email/message_cards/header.png","avatar_image_url":"https://assets-cdn.github.com/images/email/message_cards/avatar.png","action":{"name":"Open in GitHub","url":"https://github.com/xrootd/xrootd"}},"updates":{"snippets":[{"icon":"PERSON","message":"@vp1981 in #790: @bbockelm,\r\n\r\nOk, this is what I did on my Archlinux host:\r\n```\r\n$ makepkg\r\n...\r\n$ cd src/build/src/CMakeFiles/XrdCryptossl-4.dir/XrdCrypto\r\n$ strings XrdCryptosslCipher.cc.o | grep /home\r\n/home/vladimir/pkgs/xrootd/src/xrootd-4.8.4/src/XrdCrypto/XrdCryptosslCipher.cc\r\n```\r\nSince I didn't understand why this should be in ```.rodata``` section I searched the Internet to find out how to \"disassemble\" the object file (I used mc to \"view\" object file in parsed and raw forms, in first case I didn't see that path but in the second case I see the path in literal) and found two links ([wikipedia](https://en.wikipedia.org/wiki/Executable_and_Linkable_Format) and [osdev.org](https://wiki.osdev.org/ELF)), so I tried that\r\n```\r\n$ objdump -s -j .rodata XrdCryptosslCipher.cc.o \r\n \r\nXrdCryptosslCipher.cc.o: file format elf64-x86-64\r\n\r\nobjdump: section '.rodata' mentioned in a -j option, but not found in any input file\r\n```\r\nI'm not very familiar with structure of object files but where that string lives in it?"}],"action":{"name":"View Issue","url":"https://github.com/xrootd/xrootd/issues/790#issuecomment-410165686"}}} [ { "@context": "http://schema.org", "@type": "EmailMessage", "potentialAction": { "@type": "ViewAction", "target": "https://github.com/xrootd/xrootd/issues/790#issuecomment-410165686", "url": "https://github.com/xrootd/xrootd/issues/790#issuecomment-410165686", "name": "View Issue" }, "description": "View this Issue on GitHub", "publisher": { "@type": "Organization", "name": "GitHub", "url": "https://github.com" } }, { "@type": "MessageCard", "@context": "http://schema.org/extensions", "hideOriginalBody": "false", "originator": "AF6C5A86-E920-430C-9C59-A73278B5EFEB", "title": "Re: [xrootd/xrootd] libXrdCryptossl-4.so has references to build directory, how to get rid of them? (#790)", "sections": [ { "text": "", "activityTitle": "**Vladimir Lomov**", "activityImage": "https://assets-cdn.github.com/images/email/message_cards/avatar.png", "activitySubtitle": "@vp1981", "facts": [ ] } ], "potentialAction": [ { "name": "Add a comment", "@type": "ActionCard", "inputs": [ { "isMultiLine": true, "@type": "TextInput", "id": "IssueComment", "isRequired": false } ], "actions": [ { "name": "Comment", "@type": "HttpPOST", "target": "https://api.github.com", "body": "{\n\"commandName\": \"IssueComment\",\n\"repositoryFullName\": \"xrootd/xrootd\",\n\"issueId\": 790,\n\"IssueComment\": \"{{IssueComment.value}}\"\n}" } ] }, { "name": "Close issue", "@type": "HttpPOST", "target": "https://api.github.com", "body": "{\n\"commandName\": \"IssueClose\",\n\"repositoryFullName\": \"xrootd/xrootd\",\n\"issueId\": 790\n}" }, { "targets": [ { "os": "default", "uri": "https://github.com/xrootd/xrootd/issues/790#issuecomment-410165686" } ], "@type": "OpenUri", "name": "View on GitHub" }, { "name": "Unsubscribe", "@type": "HttpPOST", "target": "https://api.github.com", "body": "{\n\"commandName\": \"MuteNotification\",\n\"threadId\": 363396870\n}" } ], "themeColor": "26292E" } ]

Use REPLY-ALL to reply to list

To unsubscribe from the XROOTD-DEV list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=XROOTD-DEV&A=1