aboutsummaryrefslogtreecommitdiff
path: root/ld
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
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')
-rw-r--r--ld/ChangeLog5
-rw-r--r--ld/ldlang.c10
-rw-r--r--ld/testsuite/ChangeLog4
-rw-r--r--ld/testsuite/ld-scripts/overlay-size-map.d18
4 files changed, 20 insertions, 17 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog
index 0cdbb8b..a3a60d5 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,3 +1,8 @@
+2006-12-12 Ina Pandit <inap@kpitcummins.com>
+
+ * ldlang.c (print_output_section_statement): Print load address
+ when lma differs from vma.
+
2006-12-11 Daniel Jacobowitz <dan@codesourcery.com>
* configure.in: Define GENINSRC_NEVER.
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 ();
diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog
index c5d9fb0..e80a878 100644
--- a/ld/testsuite/ChangeLog
+++ b/ld/testsuite/ChangeLog
@@ -1,3 +1,7 @@
+2006-12-12 Ina Pandit <inap@kpitcummins.com>
+
+ * ld-scripts/overlay-size-map.d: Update.
+
2006-12-07 H.J. Lu <hjl@gnu.org>
PR ld/3666
diff --git a/ld/testsuite/ld-scripts/overlay-size-map.d b/ld/testsuite/ld-scripts/overlay-size-map.d
index cd35db0..3607169 100644
--- a/ld/testsuite/ld-scripts/overlay-size-map.d
+++ b/ld/testsuite/ld-scripts/overlay-size-map.d
@@ -1,23 +1,23 @@
#...
\.bss1 *0x0*20000 *0x10
#...
-\.bss2 *0x0*20000 *0x30
+\.bss2 *0x0*20000 *0x30 load address 0x0*20010
#...
-\.bss3 *0x0*20000 *0x20
+\.bss3 *0x0*20000 *0x20 load address 0x0*20040
#...
-\.mtext *0x0*10000 *0x20
+\.mtext *0x0*10000 *0x20 load address 0x0*30000
#...
\.mbss *0x0*20030 *0x230 load address 0x0*20060
#...
-\.text1 *0x0*10020 *0x80
+\.text1 *0x0*10020 *0x80 load address 0x0*30020
#...
-\.text2 *0x0*10020 *0x40
+\.text2 *0x0*10020 *0x40 load address 0x0*300a0
#...
-\.text3 *0x0*10020 *0x20
+\.text3 *0x0*10020 *0x20 load address 0x0*300e0
#...
-\.data1 *0x0*20260 *0x30
+\.data1 *0x0*20260 *0x30 load address 0x0*30100
#...
-\.data2 *0x0*20260 *0x40
+\.data2 *0x0*20260 *0x40 load address 0x0*30130
#...
-\.data3 *0x0*20260 *0x50
+\.data3 *0x0*20260 *0x50 load address 0x0*30170
#pass