aboutsummaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2010-09-09 19:22:29 +0000
committerH.J. Lu <hjl.tools@gmail.com>2010-09-09 19:22:29 +0000
commita2d1e0280113424781f2e50bd2c97cc2ef3d237e (patch)
tree9162a7fd3bf939c24bdf87e1d63f06769f05a85f /bfd
parent497462ef9eba5c85d2d405a33ff20940f5b0d74e (diff)
downloadgdb-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/ChangeLog6
-rw-r--r--bfd/elf.c5
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/
diff --git a/bfd/elf.c b/bfd/elf.c
index c9e9fab..f5dfcd6 100644
--- a/bfd/elf.c
+++ b/bfd/elf.c
@@ -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,