Skip to content

OpenRISC large binary fixes

Stafford Horne openrisc 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4or1k: Fix issue with plt link failure for local callsbfd/elf32-or1k.c+4 -51 reply
2/4or1k: Implement relocation R_OR1K_GOT_AHI16 for gotha()bfd/bfd-in2.h bfd/elf32-or1k.c bfd/libbfd.h +6 more+44 -40 replies
3/4or1k: Support cmodel=large when generating plt codebfd/elf32-or1k.c ld/testsuite/ld-or1k/or1k.exp ld/testsuite/ld-or1k/pltlarge1.dd +4 more+241 -400 replies
4/4or1k: Fail link if the PLT relocation overflowsbfd/elf32-or1k.c+8 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

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