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

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