summaryrefslogtreecommitdiffstats
path: root/bfd
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2009-12-09 21:42:00 +0000
committerDaniel Jacobowitz <drow@false.org>2009-12-09 21:42:00 +0000
commita747059210fbec5946a62431e8774190059d901d (patch)
treea29b7eed365990c34238b3e8bfbcd93979096453 /bfd
parent2f2de2488974549562ff0ebc3676daa78eb28d0f (diff)
downloadppe42-binutils-a747059210fbec5946a62431e8774190059d901d.tar.gz
ppe42-binutils-a747059210fbec5946a62431e8774190059d901d.zip
bfd/
* elf32-arm.c (elf32_arm_next_input_section): Skip sections without SEC_CODE. ld/testsuite/ * ld-arm/arm-elf.exp (armeabitests): Add farcall-data. * ld-arm/farcall-data.d, ld-arm/farcall-data.s: New. * lib/ld-lib.exp (run_ld_link_tests, run_cc_link_tests): Correct regular expression for archives.
Diffstat (limited to 'bfd')
-rw-r--r--bfd/ChangeLog5
-rw-r--r--bfd/elf32-arm.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 6cbee4ac7b..2591260428 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,8 @@
+2009-12-09 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * elf32-arm.c (elf32_arm_next_input_section): Skip sections without
+ SEC_CODE.
+
2009-12-08 Alan Modra <amodra@bigpond.net.au>
* elf.c (write_zeros): New function.
diff --git a/bfd/elf32-arm.c b/bfd/elf32-arm.c
index 21f92a4235..2168fc04f4 100644
--- a/bfd/elf32-arm.c
+++ b/bfd/elf32-arm.c
@@ -3785,7 +3785,7 @@ elf32_arm_next_input_section (struct bfd_link_info *info,
{
asection **list = htab->input_list + isec->output_section->index;
- if (*list != bfd_abs_section_ptr)
+ if (*list != bfd_abs_section_ptr && (isec->flags & SEC_CODE) != 0)
{
/* Steal the link_sec pointer for our list. */
#define PREV_SEC(sec) (htab->stub_group[(sec)->id].link_sec)
OpenPOWER on IntegriCloud