From d971d39e462b9f0be327ee8df435fb4f7253726f Mon Sep 17 00:00:00 2001 From: Michael Meissner Date: Mon, 22 Jan 1996 16:02:29 +0000 Subject: [PATCH] Add support for eabi relocations and sections --- gas/ChangeLog | 10 ++++++++++ gas/config/tc-ppc.c | 18 ++++++++++++++++++ 2 files changed, 28 insertions(+) diff --git a/gas/ChangeLog b/gas/ChangeLog index 91f6bb7709f..f684fe96c18 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,13 @@ +Mon Jan 22 10:59:48 1996 Michael Meissner + + * config/obj-elf.c (elf/ppc.h): Include elf/ppc.h if target + computer is PowerPC. + + * config/tc-ppc.c (md_apply_fix3): Add more embedded relocations. + + * config/tc-ppc.h (ELF_TC_SPECIAL_SECTIONS): Add sections + mentioned in the eabi. + Thu Jan 18 17:58:19 1996 Kim Knuttila * config/tc-ppc.c (ppc_reldata): Changed alignement on reldata_section diff --git a/gas/config/tc-ppc.c b/gas/config/tc-ppc.c index 8044b3b2537..6a0714a99ea 100644 --- a/gas/config/tc-ppc.c +++ b/gas/config/tc-ppc.c @@ -4286,6 +4286,8 @@ md_apply_fix3 (fixp, valuep, seg) case BFD_RELOC_RVA: case BFD_RELOC_32_PCREL: + case BFD_RELOC_32_BASEREL: + case BFD_RELOC_PPC_EMB_NADDR32: md_number_to_chars (fixp->fx_frag->fr_literal + fixp->fx_where, value, 4); break; @@ -4300,6 +4302,22 @@ md_apply_fix3 (fixp, valuep, seg) case BFD_RELOC_LO16_GOTOFF: case BFD_RELOC_HI16_GOTOFF: case BFD_RELOC_HI16_S_GOTOFF: + case BFD_RELOC_LO16_BASEREL: + case BFD_RELOC_HI16_BASEREL: + case BFD_RELOC_HI16_S_BASEREL: + case BFD_RELOC_PPC_EMB_NADDR16: + case BFD_RELOC_PPC_EMB_NADDR16_LO: + case BFD_RELOC_PPC_EMB_NADDR16_HI: + case BFD_RELOC_PPC_EMB_NADDR16_HA: + case BFD_RELOC_PPC_EMB_SDAI16: + case BFD_RELOC_PPC_EMB_SDA21: + case BFD_RELOC_PPC_EMB_SDA2REL: + case BFD_RELOC_PPC_EMB_SDA2I16: + case BFD_RELOC_PPC_EMB_RELSEC16: + case BFD_RELOC_PPC_EMB_RELST_LO: + case BFD_RELOC_PPC_EMB_RELST_HI: + case BFD_RELOC_PPC_EMB_RELST_HA: + case BFD_RELOC_PPC_EMB_RELSDA: case BFD_RELOC_PPC_TOC16: if (fixp->fx_pcrel) abort (); -- 2.30.2