aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-mn10300/i127740.s
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2007-11-13 10:40:29 +0000
committerNick Clifton <nickc@redhat.com>2007-11-13 10:40:29 +0000
commitb5f5fd962ef368674d3460bf78a9c6d13a2ab72b (patch)
treee438575a95064274620cb1ef22c617a4b5b8d145 /ld/testsuite/ld-mn10300/i127740.s
parent0067a5693ac40531a6975777c7b6c3b40fd8795e (diff)
downloadgdb-b5f5fd962ef368674d3460bf78a9c6d13a2ab72b.zip
gdb-b5f5fd962ef368674d3460bf78a9c6d13a2ab72b.tar.gz
gdb-b5f5fd962ef368674d3460bf78a9c6d13a2ab72b.tar.bz2
* config/tc-mn10300.c (mn10300_force_relocation): Force a reloc to be generated for alignment fixups.
* config/tc-mn10300.h (TC_FORCE_RELOCATION): Call mn10300_force_relocation. * elf-m10300.c (mn10300_elf_final_link_relocate): Prevent the accidental termination of DWARF location list entries. (mn10300_elf_relax_delete_bytes): Stop deletion if an align reloc is encountered that is larger than or not a mutliple of the number of bytes being deleted. When adjusting symbols, any symbols inside the region being deleted must be moved to the end of the region. Move align relocs forward if there is room for them after the deletion of the region.
Diffstat (limited to 'ld/testsuite/ld-mn10300/i127740.s')
-rw-r--r--ld/testsuite/ld-mn10300/i127740.s12
1 files changed, 12 insertions, 0 deletions
diff --git a/ld/testsuite/ld-mn10300/i127740.s b/ld/testsuite/ld-mn10300/i127740.s
new file mode 100644
index 0000000..358266b
--- /dev/null
+++ b/ld/testsuite/ld-mn10300/i127740.s
@@ -0,0 +1,12 @@
+ .section .text
+ .global _main
+ .global _dummy
+_main:
+ mov _g_label,d1 # instruction is changed by relaxations
+
+ .balign 0x100
+_dummy:
+ .long _dummy
+ ret [],0
+ .size _main, .-_main
+ .comm _g_label,4,4