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/elf.c | |
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/elf.c')
-rw-r--r-- | bfd/elf.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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, |