aboutsummaryrefslogtreecommitdiff
path: root/ld/ldlang.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2006-12-12 08:10:40 +0000
committerAlan Modra <amodra@gmail.com>2006-12-12 08:10:40 +0000
commit67f744f3bcb1ac18f5a9a1394e6b6344fd5284c6 (patch)
tree52a4e2d73ff6b9efcbaeea9e70cd756f8995ec29 /ld/ldlang.c
parent790c0838ea431f7cf2d6ee1a1e98375b1df36b82 (diff)
downloadgdb-67f744f3bcb1ac18f5a9a1394e6b6344fd5284c6.zip
gdb-67f744f3bcb1ac18f5a9a1394e6b6344fd5284c6.tar.gz
gdb-67f744f3bcb1ac18f5a9a1394e6b6344fd5284c6.tar.bz2
* ldlang.c (print_output_section_statement): Print load address
when lma differs from vma. testsuite/ * ld-scripts/overlay-size-map.d: Update.
Diffstat (limited to 'ld/ldlang.c')
-rw-r--r--ld/ldlang.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/ld/ldlang.c b/ld/ldlang.c
index a5ceabd..5c5cb35 100644
--- a/ld/ldlang.c
+++ b/ld/ldlang.c
@@ -3412,14 +3412,8 @@ print_output_section_statement
minfo ("0x%V %W", section->vma, section->size);
- if (output_section_statement->load_base != NULL)
- {
- bfd_vma addr;
-
- addr = exp_get_abs_int (output_section_statement->load_base, 0,
- "load base");
- minfo (_(" load address 0x%V"), addr);
- }
+ if (section->vma != section->lma)
+ minfo (_(" load address 0x%V"), section->lma);
}
print_nl ();