This happens when attempting to link shared libraries using exceptions on
MIPS. It requires -z notext because clang generates R_MIPS_64 relocations
inside .eh_frame.
The crash happened because for EhInputSection the OutSec member is null.
Details
Diff Detail
- Build Status
Buildable 6856 Build 6856: arc lint + arc unit
Event Timeline
test/ELF/mips64-eh-abs-reloc.s | ||
---|---|---|
2 | You're missing REQUIRES: mips | |
4 | We do not check what llvm-mc produces in tests for LLD I think. | |
14 | Not sure why do you need to check this. Did executable case crash before this patch ? |
test/ELF/mips64-eh-abs-reloc.s | ||
---|---|---|
4 | I only have this line here to make sure that there is a R_MIPS_64 relocation in .eh_frame in case llvm-mc changes. I could also change it to use a YAML testcase but to me the assembly version is easier to understand. | |
14 | Only shared lib and -pie executable case would crash before, so I've deleted all but those. |
LGTM with the latest fixes.
Just a side note - this patch fix allows linking with the -z notext option. GNU and gold linkers work even without this option. They convert absolute R_MIPS_32/64 relocations against .eh_frame section into relative equivalents.
You're missing REQUIRES: mips