aboutsummaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
authorAndrew Burgess <andrew.burgess@embecosm.com>2014-10-27 10:45:18 +0000
committerAndrew Burgess <andrew.burgess@embecosm.com>2014-11-03 20:34:13 +0000
commit931b79ccd6cc6ad4d8fe60a9c6de9443322a7cc8 (patch)
treea59a2d3b7bbc68c89bba19de32222dd0fb6d6bbe /ld
parenta12d0ffc72ee57f8db8b466fd9032360d8d15e09 (diff)
downloadgdb-931b79ccd6cc6ad4d8fe60a9c6de9443322a7cc8.zip
gdb-931b79ccd6cc6ad4d8fe60a9c6de9443322a7cc8.tar.gz
gdb-931b79ccd6cc6ad4d8fe60a9c6de9443322a7cc8.tar.bz2
When relaxing, update size of symbols.
When performing linker relaxation, reduce the size of symbols that span the deleted bytes. This ensures that, for example, function symbols will have the correct size. bfd/ChangeLog: * elf32-avr.c (elf32_avr_relax_delete_bytes): During linker relaxation, reduce the size of symbols that span the deleted bytes. ld/ChangeLog: * testsuite/ld-avr/relax-02.d: Update to check size of symbols has changed. * testsuite/ld-avr/relax-03.d: Likewise.
Diffstat (limited to 'ld')
-rw-r--r--ld/ChangeLog6
-rw-r--r--ld/testsuite/ld-avr/relax-02.d16
-rw-r--r--ld/testsuite/ld-avr/relax-03.d4
3 files changed, 16 insertions, 10 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog
index 86258cb..56b9bd8 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,5 +1,11 @@
2014-11-03 Andrew Burgess <andrew.burgess@embecosm.com>
+ * testsuite/ld-avr/relax-02.d: Update to check size of symbols has
+ changed.
+ * testsuite/ld-avr/relax-03.d: Likewise.
+
+2014-11-03 Andrew Burgess <andrew.burgess@embecosm.com>
+
* testsuite/ld-avr/relax-02.d: New file.
* testsuite/ld-avr/relax-02.s: New file.
* testsuite/ld-avr/relax-03.d: New file.
diff --git a/ld/testsuite/ld-avr/relax-02.d b/ld/testsuite/ld-avr/relax-02.d
index 6445709..c8d9b10 100644
--- a/ld/testsuite/ld-avr/relax-02.d
+++ b/ld/testsuite/ld-avr/relax-02.d
@@ -9,20 +9,20 @@
SYMBOL TABLE:
#...
-00000000 l F \.text [0-9a-f]+ local_start
-0000000a l F \.text [0-9a-f]+ local_func_1
-00000014 l F \.text [0-9a-f]+ local_func_2
-0000001e l F \.text [0-9a-f]+ local_func_3
+00000000 l F \.text 0000000a local_start
+0000000a l F \.text 0000000a local_func_1
+00000014 l F \.text 0000000a local_func_2
+0000001e l F \.text 0000000a local_func_3
00000032 l \.text 00000000 local_end_label
00000028 g \.text 00000000 dest
#...
-00000014 g F \.text [0-9a-f]+ func_2
+00000014 g F \.text 0000000a func_2
#...
-00000000 g F \.text [0-9a-f]+ _start
+00000000 g F \.text 0000000a _start
00000032 g \.text 00000000 end_label
-0000000a g F \.text [0-9a-f]+ func_1
+0000000a g F \.text 0000000a func_1
#...
-0000001e g F \.text [0-9a-f]+ func_3
+0000001e g F \.text 0000000a func_3
diff --git a/ld/testsuite/ld-avr/relax-03.d b/ld/testsuite/ld-avr/relax-03.d
index a538c04..3adc279 100644
--- a/ld/testsuite/ld-avr/relax-03.d
+++ b/ld/testsuite/ld-avr/relax-03.d
@@ -9,10 +9,10 @@
SYMBOL TABLE:
#...
-00000000 l F .text [0-9a-f]+ local_start
+00000000 l F .text 0000000a local_start
0000000a l .text 00000000 local_end_label
#...
-00000000 g F \.text [0-9a-f]+ _start
+00000000 g F \.text 0000000a _start
0000000a g \.text 00000000 end_label
#...