diff options
author | Paul Brook <paul@codesourcery.com> | 2004-09-13 14:14:32 +0000 |
---|---|---|
committer | Paul Brook <paul@codesourcery.com> | 2004-09-13 14:14:32 +0000 |
commit | 9c50426849f0e9bb15ab0b46dc18a70c1db38a90 (patch) | |
tree | b2293b1be28132b73dda0aae98fdc7067897f0e3 /ld/emultempl | |
parent | ee31a58d74a66007e42ec12d07f6688884c9fce3 (diff) | |
download | gdb-9c50426849f0e9bb15ab0b46dc18a70c1db38a90.zip gdb-9c50426849f0e9bb15ab0b46dc18a70c1db38a90.tar.gz gdb-9c50426849f0e9bb15ab0b46dc18a70c1db38a90.tar.bz2 |
bfd/
* bfd-in.h (bfd_elf32_arm_process_before_allocation): Update
prototype.
* bfd-in2.h: Regenerate.
* libbfd.h: Regenerate.
* elf32-arm.h (elf32_arm_link_hash_table): Add target1_is_rel.
(elf32_arm_link_hash_table_create): Set target1_is_rel.
(bfd_elf32_arm_process_before_allocation): Ditto.
(elf32_arm_final_link_relocate): Handle R_ARM_TARGET1.
(elf32_arm_gc_sweep_hook, elf32_arm_check_relocs): Ditto.
* elfarm-nabi.c (elf32_arm_howto_table): Rename RELABS to TARGET1.
* reloc.c: Ditto.
gas/
* config/tc-arm.c: Rename RELABS to TARGET1.
gas/testsuite/
* gas/arm/pic.d: Rename RELABS to TARGET1.
* gas/arm/pic.s: Ditto.
include/
* elf/arm.h: Rename RELABS to TARGET1.
ld/
* emulparams/armsymbian.sh: Set TARGET1_IS_REL.
* emultempl/armelf.em: Use TARGET1_IS_REL. Add --target1-{rel,abs}.
Diffstat (limited to 'ld/emultempl')
-rw-r--r-- | ld/emultempl/armelf.em | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/ld/emultempl/armelf.em b/ld/emultempl/armelf.em index 5505f12..6a690f8 100644 --- a/ld/emultempl/armelf.em +++ b/ld/emultempl/armelf.em @@ -28,6 +28,7 @@ static int no_pipeline_knowledge = 0; static char *thumb_entry_symbol = NULL; static bfd *bfd_for_interwork; static int byteswap_code = 0; +static int target1_is_rel = 0${TARGET1_IS_REL}; static void gld${EMULATION_NAME}_before_parse (void) @@ -120,7 +121,8 @@ arm_elf_before_allocation (void) { if (!bfd_elf32_arm_process_before_allocation (is->the_bfd, & link_info, no_pipeline_knowledge, - byteswap_code)) + byteswap_code, + target1_is_rel)) { /* xgettext:c-format */ einfo (_("Errors encountered processing file %s"), is->filename); @@ -188,6 +190,8 @@ EOF PARSE_AND_LIST_PROLOGUE=' #define OPTION_THUMB_ENTRY 301 #define OPTION_BE8 302 +#define OPTION_TARGET1_REL 303 +#define OPTION_TARGET1_ABS 304 ' PARSE_AND_LIST_SHORTOPTS=p @@ -196,12 +200,16 @@ PARSE_AND_LIST_LONGOPTS=' { "no-pipeline-knowledge", no_argument, NULL, '\'p\''}, { "thumb-entry", required_argument, NULL, OPTION_THUMB_ENTRY}, { "be8", no_argument, NULL, OPTION_BE8}, + { "target1-rel", no_argument, NULL, OPTION_TARGET1_REL}, + { "target1-abs", no_argument, NULL, OPTION_TARGET1_ABS}, ' PARSE_AND_LIST_OPTIONS=' fprintf (file, _(" -p --no-pipeline-knowledge Stop the linker knowing about the pipeline length\n")); fprintf (file, _(" --thumb-entry=<sym> Set the entry point to be Thumb symbol <sym>\n")); fprintf (file, _(" --be8 Oputput BE8 format image\n")); + fprintf (file, _(" --target1-rel Interpret R_ARM_TARGET1 as R_ARM_REL32\n")); + fprintf (file, _(" --target1-abs Interpret R_ARM_TARGET1 as R_ARM_ABS32\n")); ' PARSE_AND_LIST_ARGS_CASES=' @@ -216,6 +224,14 @@ PARSE_AND_LIST_ARGS_CASES=' case OPTION_BE8: byteswap_code = 1; break; + + case OPTION_TARGET1_REL: + target1_is_rel = 1; + break; + + case OPTION_TARGET1_ABS: + target1_is_rel = 0; + break; ' # We have our own after_open and before_allocation functions, but they call |