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.
This commit is contained in:
Alan Modra 2012-05-05 04:51:16 +00:00
parent 36ab465def
commit 62ab84ece4
6 changed files with 14 additions and 19 deletions

View File

@ -1,3 +1,9 @@
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,

View File

@ -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;
}

View File

@ -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.

View File

@ -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

View File

@ -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

View File

@ -1,3 +0,0 @@
.section "zerosize","aw"
.globl xyzzy
xyzzy: