diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2010-09-09 19:22:29 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2010-09-09 19:22:29 +0000 |
commit | a2d1e0280113424781f2e50bd2c97cc2ef3d237e (patch) | |
tree | 9162a7fd3bf939c24bdf87e1d63f06769f05a85f /bfd | |
parent | 497462ef9eba5c85d2d405a33ff20940f5b0d74e (diff) | |
download | gdb-a2d1e0280113424781f2e50bd2c97cc2ef3d237e.zip gdb-a2d1e0280113424781f2e50bd2c97cc2ef3d237e.tar.gz gdb-a2d1e0280113424781f2e50bd2c97cc2ef3d237e.tar.bz2 |
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.
Diffstat (limited to 'bfd')
-rw-r--r-- | bfd/ChangeLog | 6 | ||||
-rw-r--r-- | bfd/elf.c | 5 |
2 files changed, 9 insertions, 2 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index acc0813..0fb449a 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -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/ @@ -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, |