diff options
author | Daniel Jacobowitz <drow@false.org> | 2009-02-24 22:43:10 +0000 |
---|---|---|
committer | Daniel Jacobowitz <drow@false.org> | 2009-02-24 22:43:10 +0000 |
commit | 07d72278cd2622807aca8bf84f06667bb1c4df96 (patch) | |
tree | 5bc3bddcb4767775cc2b58e2c700f0a16572066c /ld/emultempl/armelf.em | |
parent | 2509a395cb1b6f6dd5b72f84d80693eaff977d31 (diff) | |
download | gdb-07d72278cd2622807aca8bf84f06667bb1c4df96.zip gdb-07d72278cd2622807aca8bf84f06667bb1c4df96.tar.gz gdb-07d72278cd2622807aca8bf84f06667bb1c4df96.tar.bz2 |
2009-02-24 Joseph Myers <joseph@codesourcery.com>
bfd/
* elf32-arm.c (PREV_SEC): Update comment.
(group_sections): Rename argument to stubs_always_after_branch.
Reverse the list and place stubs at the end of input sections.
Undefine NEXT_SEC.
(elf32_arm_size_stubs): Update to use stubs_always_after_branch.
ld/
* ld.texinfo (ARM): Document changed meaning of --stub-group-size.
* emultempl/armelf.em (hook_in_stub): Insert after the input section.
(elf32_arm_add_stub_section): Update comment.
(PARSE_AND_LIST_OPTIONS): Update help for --stub-group-size.
2009-02-24 Daniel Jacobowitz <dan@codesourcery.com>
ld/testsuite/
* ld-arm/arm-elf.exp (armeabitests): Update duplicate test names.
Use normal output files for big-endian.
* ld-arm/farcall-arm-arm-be.d, ld-arm/farcall-thumb-arm-be.d: Delete.
* ld-arm/farcall-arm-arm-be8.d, ld-arm/farcall-arm-arm-pic-veneer.d,
ld-arm/farcall-arm-arm.d, ld-arm/farcall-arm-thumb-blx-pic-veneer.d,
ld-arm/farcall-arm-thumb-blx.d, ld-arm/farcall-arm-thumb-pic-veneer.d,
ld-arm/farcall-arm-thumb.d, ld-arm/farcall-group-size2.d,
ld-arm/farcall-group.d, ld-arm/farcall-mix.d, ld-arm/farcall-mix2.d,
ld-arm/farcall-thumb-arm-be8.d,
ld-arm/farcall-thumb-arm-blx-pic-veneer.d,
ld-arm/farcall-thumb-arm-blx.d, ld-arm/farcall-thumb-arm-short.d,
ld-arm/farcall-thumb-arm.d,
ld-arm/farcall-thumb-thumb-blx-pic-veneer.d,
ld-arm/farcall-thumb-thumb-blx.d, ld-arm/farcall-thumb-thumb-m.d,
ld-arm/farcall-thumb-thumb.d, ld-arm/thumb2-bl-as-thumb1-bad.d,
ld-arm/thumb2-bl-bad.d: Update for moved stubs.
Diffstat (limited to 'ld/emultempl/armelf.em')
-rw-r--r-- | ld/emultempl/armelf.em | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/ld/emultempl/armelf.em b/ld/emultempl/armelf.em index 6c55b37..31ad3e8 100644 --- a/ld/emultempl/armelf.em +++ b/ld/emultempl/armelf.em @@ -213,9 +213,9 @@ hook_in_stub (struct hook_stub_info *info, lang_statement_union_type **lp) if (l->input_section.section == info->input_section) { /* We've found our section. Insert the stub immediately - before its associated input section. */ - *lp = info->add.head; - *(info->add.tail) = l; + after its associated input section. */ + *(info->add.tail) = l->header.next; + l->header.next = info->add.head; return TRUE; } break; @@ -244,7 +244,7 @@ hook_in_stub (struct hook_stub_info *info, lang_statement_union_type **lp) /* Call-back for elf32_arm_size_stubs. */ /* Create a new stub section, and arrange for it to be linked - immediately before INPUT_SECTION. */ + immediately after INPUT_SECTION. */ static asection * elf32_arm_add_stub_section (const char *stub_sec_name, @@ -541,7 +541,7 @@ PARSE_AND_LIST_OPTIONS=' fprintf (file, _("\ --stub-group-size=N Maximum size of a group of input sections that can be\n\ handled by one stub section. A negative value\n\ - locates all stubs before their branches (with a\n\ + locates all stubs after their branches (with a\n\ group size of -N), while a positive value allows\n\ two groups of input sections, one before, and one\n\ after each stub section. Values of +/-1 indicate\n\ |