aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2012-05-05 04:51:16 +0000
committerAlan Modra <amodra@gmail.com>2012-05-05 04:51:16 +0000
commit62ab84ece44dbf1bcf86957a969635d2e513ae6a (patch)
tree35335611859112cdc973eb025e00b21d7f3dbf04
parent36ab465def3db4cb42a84f6403e33de9e7ec40e2 (diff)
downloadgdb-62ab84ece44dbf1bcf86957a969635d2e513ae6a.zip
gdb-62ab84ece44dbf1bcf86957a969635d2e513ae6a.tar.gz
gdb-62ab84ece44dbf1bcf86957a969635d2e513ae6a.tar.bz2
PR ld/14052
PR ld/13621 bfd/ * linker.c (_bfd_nearby_section): Revert 2012-02-13 change. ld/testsuite/ * ld-elf/warn2.d: Revert 2012-02-13 change. * ld-elf/zerosize1.d, ld-elf/zerosize1.s: Delete.
-rw-r--r--bfd/ChangeLog6
-rw-r--r--bfd/linker.c5
-rw-r--r--ld/testsuite/ChangeLog7
-rw-r--r--ld/testsuite/ld-elf/warn2.d2
-rw-r--r--ld/testsuite/ld-elf/zerosize1.d10
-rw-r--r--ld/testsuite/ld-elf/zerosize1.s3
6 files changed, 14 insertions, 19 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 876b44b..2705feb 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,5 +1,11 @@
2012-05-05 Alan Modra <amodra@gmail.com>
+ PR ld/14052
+ PR ld/13621
+ * linker.c (_bfd_nearby_section): Revert 2012-02-13 change.
+
+2012-05-05 Alan Modra <amodra@gmail.com>
+
* aout-arm.c: Replace all uses of bfd_abs_section, bfd_com_section,
bfd_und_section and bfd_ind_section with their _ptr variants, or
use corresponding bfd_is_* macros.
diff --git a/bfd/linker.c b/bfd/linker.c
index fccca0d..3caec96 100644
--- a/bfd/linker.c
+++ b/bfd/linker.c
@@ -3198,11 +3198,6 @@ _bfd_nearby_section (bfd *obfd, asection *s, bfd_vma addr)
best = prev;
}
- /* Refuse to choose a section for which we are out of bounds. */
- /* ??? This may make most of the above moot. */
- if (addr < best->vma || addr > best->vma + best->size)
- best = bfd_abs_section_ptr;
-
return best;
}
diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog
index 46415b8..534ed0d 100644
--- a/ld/testsuite/ChangeLog
+++ b/ld/testsuite/ChangeLog
@@ -1,3 +1,10 @@
+2012-05-05 Alan Modra <amodra@gmail.com>
+
+ PR ld/14052
+ PR ld/13621
+ * ld-elf/warn2.d: Revert 2012-02-13 change.
+ * ld-elf/zerosize1.d, ld-elf/zerosize1.s: Delete.
+
2012-05-04 H.J. Lu <hongjiu.lu@intel.com>
* ld-elf/eh1.d: Skip x86_64-*-linux-gnux32.
diff --git a/ld/testsuite/ld-elf/warn2.d b/ld/testsuite/ld-elf/warn2.d
index a9c05f9..95b7ef4 100644
--- a/ld/testsuite/ld-elf/warn2.d
+++ b/ld/testsuite/ld-elf/warn2.d
@@ -13,5 +13,5 @@
# construct and that the symbol still appears as expected.
#...
- +[0-9]+: +[0-9a-f]+ +20 +OBJECT +GLOBAL +DEFAULT +ABS Foo
+ +[0-9]+: +[0-9a-f]+ +20 +OBJECT +GLOBAL +DEFAULT +[1-9] Foo
#pass
diff --git a/ld/testsuite/ld-elf/zerosize1.d b/ld/testsuite/ld-elf/zerosize1.d
deleted file mode 100644
index 43187f0..0000000
--- a/ld/testsuite/ld-elf/zerosize1.d
+++ /dev/null
@@ -1,10 +0,0 @@
-#source: start.s
-#source: zerosize1.s
-#ld:
-#readelf: -s
-
-# Check that xyzzy is not placed in the .text section.
-
-#...
- +[0-9]+: +[0-9a-f]+ +0 +(OBJECT|NOTYPE) +GLOBAL +DEFAULT +ABS xyzzy
-#pass
diff --git a/ld/testsuite/ld-elf/zerosize1.s b/ld/testsuite/ld-elf/zerosize1.s
deleted file mode 100644
index 4fc8198..0000000
--- a/ld/testsuite/ld-elf/zerosize1.s
+++ /dev/null
@@ -1,3 +0,0 @@
- .section "zerosize","aw"
- .globl xyzzy
-xyzzy: