mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-23 17:23:29 +08:00
38b566ae19
* ld-mips-elf/emrelocs-eb.d: New file to test --embedded-relocs. * ld-mips-elf/emrelocs-el.d: Likewise. * ld-mips-elf/emrelocs1.s: Likewise. * ld-mips-elf/emrelocs2.s: Likewise. * ld-mips-elf/emrelocs.ld: Likewise. * ld-mips-elf/mips-elf.exp: Add the above to the list of tests.
24 lines
376 B
ArmAsm
24 lines
376 B
ArmAsm
# emrelocs1.s: some external symbols to be used in relocations.
|
|
|
|
.text
|
|
.p2align 4
|
|
|
|
# Pad things so addresses which are used for relocations
|
|
# are non-zero. Zero simply isn't as much fun.
|
|
.word 0
|
|
|
|
.globl ext_fun
|
|
.ent ext_fun
|
|
ext_fun: .word 1
|
|
.end ext_fun
|
|
|
|
|
|
.sdata
|
|
.p2align 4
|
|
|
|
# Padding here, for same reason.
|
|
.word 0
|
|
|
|
.globl ext_var
|
|
ext_var: .word 2
|