[cfe-users] dumb question about record-command-line

Jerry Scharf via cfe-users cfe-users at lists.llvm.org
Tue Nov 19 17:31:38 PST 2019


for anyone who happens upon this, the incantation is

llvm-readobj -p .GCC.command.line filename

(you can use llvm-readelf or readelf with the same args as well)

jerry

On 11/19/19 11:39 AM, David Blaikie wrote:
> Depends on your platform, but probably in some section or another in 
> the object/executable. Try running objdump (or llvm-objdump) -h on the 
> object or executable with/without the switch and see which new section 
> shows up. Then you can use objdump -s (I think it's -s, check the man 
> page, etc) to dump the contents of that section.



More information about the cfe-users mailing list