Details
Diff Detail
- Repository
- rLLD LLVM Linker
Event Timeline
Instead of doing this, maybe we should report an error when -gdb-index is used with -r. I don't think there's a valid use case of giving the two flags at the same time.
Would be good to have an explanation about why these options are incompatible in the commit message (missed that opportunity) and maybe in the source.
Is the schema in gdb_index unable to handle multiple code sections, for example?
This might not be especially useful - the gnu_pubnames sections don't
describe which CU they are for (if I recall correctly), so once you've got
multiple CUs in a single object file (admittedly, this happens in LTO too,
adn I'm not sure how that's handled) it might not be terribly useful. I'm
not sure what lld's gdb-index does when consuming an object with multiple
CUs in it, for example.