[PATCH] D74006: [MC][ELF] Make linked-to symbol name part of ELFSectionKey

Eli Friedman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 24 17:03:58 PST 2020


efriedma added a comment.

It seems like there's some bad interaction between this, ARM exception handling, and asm parsing.  I'm seeing link errors like `error: EXIDX sections .ARM.exidx(10) and .ARM.exidx(4) both link to text section.text(2)` if I build with "-via-file-asm", and link with binutils ld.  Reverting this patch seems to fix the issue.

You can produce an object file with multiple .ARM.exidx sections using something like `echo "void h();void f(){}void g(){}" | clang -x c - -o armeh.o -c -via-file-asm --target=arm-eabi`

I suspect that ARMELFStreamer::SwitchToEHSection is somehow triggering this code, but I'm not sure I follow how this is supposed to work.  And I'm not sure why -via-file-asm is relevant.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D74006





More information about the llvm-commits mailing list