[PATCH] D59649: [ELF] Improve error message for relocations to symbols defined in discarded sections

Rui Ueyama via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Apr 7 23:08:45 PDT 2019


ruiu added a comment.

I'm honestly not very happy about the plumbing work in this patch, as the new value, DiscardedSecIdx, is not semantically required but handed over to many functions just to get to the location where the error message is generated.

I wonder if we can do this without that variable. When we need that variable, we are generating an error message, so the code doesn't have to be fast. I.e. you can scan through object file's symbol table to find an undefined symbol, for example. What do you think?


Repository:
  rLLD LLVM Linker

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D59649/new/

https://reviews.llvm.org/D59649





More information about the llvm-commits mailing list