OpenRISC large binary fixes
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest4 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | or1k: Fix issue with plt link failure for local callsbfd/ | +4 | 1 reply | |
| 2/4 | or1k: Implement relocation R_OR1K_GOT_AHI16 for gotha()bfd/ bfd/ bfd/ +6 more | +44 | 0 replies | |
| 3/4 | or1k: Support cmodel=large when generating plt codebfd/ ld/ ld/ +4 more | +241 | 0 replies | |
| 4/4 | or1k: Fail link if the PLT relocation overflowsbfd/ | +8 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [OpenRISC] [PATCH 0/4] OpenRISC large binary fixes
These are several fixes to OpenRISC BFD to handle issues mostly related to linking large files.
There will be a GCC patch then depends on this, a new -mcmodel=large argument is added to GCC to allow creating GOT relocation values larger than 64k.
The series fixes 3 issues:
* PR 27624 - Assertion failure when dynamic symol is localized
* PR 21464 - GOT relocation truncation.
* PR 27746 - Issue with silent overlows in PLT code.
Stafford Horne (4):
or1k: Fix issue with plt link failure for local calls
or1k: Implement relocation R_OR1K_GOT_AHI16 for gotha()
or1k: Support cmodel=large when generating plt code
or1k: Fail link if the PLT relocation overflows
bfd/bfd-in2.h | 1 + bfd/elf32-or1k.c | 182 ++++++++++++++++++++++-------- bfd/libbfd.h | 1 + bfd/reloc.c | 2 + cpu/or1k.opc | 7 +- gas/testsuite/gas/or1k/reloc-1.d | 4 +- gas/testsuite/gas/or1k/reloc-1.s | 4 + include/elf/or1k.h | 1 + ld/testsuite/ld-or1k/or1k.exp | 8 ++ ld/testsuite/ld-or1k/pltlarge1.dd | 38 +++++++ ld/testsuite/ld-or1k/pltlarge1.s | 24 ++++ ld/testsuite/ld-or1k/pltlarge2.dd | 39 +++++++ ld/testsuite/ld-or1k/pltlarge2.s | 25 ++++ ld/testsuite/ld-or1k/pltlib.s | 1 + opcodes/or1k-asm.c | 7 +- 15 files changed, 296 insertions(+), 48 deletions(-) create mode 100644 ld/testsuite/ld-or1k/pltlarge1.dd create mode 100644 ld/testsuite/ld-or1k/pltlarge1.s create mode 100644 ld/testsuite/ld-or1k/pltlarge2.dd create mode 100644 ld/testsuite/ld-or1k/pltlarge2.s
Signature · 1 line
2.26.2