From 07d72278cd2622807aca8bf84f06667bb1c4df96 Mon Sep 17 00:00:00 2001 From: Daniel Jacobowitz Date: Tue, 24 Feb 2009 22:43:10 +0000 Subject: 2009-02-24 Joseph Myers 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 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. --- ld/emultempl/armelf.em | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'ld/emultempl/armelf.em') 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\ -- cgit v1.1