[cfe-users] thinlto and c++ static initialization analysis

2019-07-18 Thread Jerry Scharf via cfe-users
I am looking at trying out thinlto on our large c++ programs. We have had to do a bunch of careful things to make sure things get linked in the right order to get the static initialization to work right. Two questions: Will thinlto honor the command line ordering of files that we set? In theo

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

2019-11-19 Thread Jerry Scharf via cfe-users
Hi, I have an exceeding dumb question. If I turn on -frecord-command-line, how do I view it in the object files, libraries and executables? No matter what I incant to google, it only wants to tell me what the command line arguments are. thanks in advance, jerry ___

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

2019-11-19 Thread Jerry Scharf via cfe-users
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/exe