[PATCH] D30319: [ELF] Make __ehdr_start point to ELF file headers

Petr Hosek via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 23 19:47:07 PST 2017


phosek added a comment.

When comparing the output from gold, ld and lld, one difference I noticed is that gold emits this symbol as `SHN_ABS`, ld uses index of `.text`, while lld uses `SHN_UNDEF`. It's the same for other reserved symbols like `_end`, `_etext`, `_edata`. Is there a particular reason why lld uses `SHN_UNDEF` or is that a bug?


Repository:
  rL LLVM

https://reviews.llvm.org/D30319





More information about the llvm-commits mailing list