Don't warn zero LMA adjustment.

bfd/

2010-09-09  H.J. Lu  <hongjiu.lu@intel.com>

	PR ld/11998
	* elf.c (assign_file_positions_for_load_sections): Don't warn
	zero LMA adjustment.

ld/testsuite/

2010-09-09  H.J. Lu  <hongjiu.lu@intel.com>

	PR ld/11998
	* ld-scripts/rgn-at5.d: New.
	* ld-scripts/rgn-at5.s: Likewise.
	* ld-scripts/rgn-at5.t: Likewise.
This commit is contained in:
H.J. Lu
2010-09-09 19:22:29 +00:00
parent 497462ef9e
commit a2d1e02801
6 changed files with 76 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2010-09-09 H.J. Lu <hongjiu.lu@intel.com>
PR ld/11998
* elf.c (assign_file_positions_for_load_sections): Don't warn
zero LMA adjustment.
2010-09-09 Bernd Schmidt <bernds@codesourcery.com>
bfd/

View File

@ -4481,8 +4481,9 @@ assign_file_positions_for_load_sections (bfd *abfd,
bfd_vma s_start = sec->lma;
bfd_vma adjust = s_start - p_end;
if (s_start < p_end
|| p_end < p_start)
if (adjust != 0
&& (s_start < p_end
|| p_end < p_start))
{
(*_bfd_error_handler)
(_("%B: section %A lma %#lx adjusted to %#lx"), abfd, sec,