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.
30 lines
352 B
ArmAsm
30 lines
352 B
ArmAsm
# emrelocs2.s: local symbols and data which causes relocations.
|
|
|
|
.text
|
|
.p2align 4
|
|
|
|
.word 0, 0
|
|
|
|
.ent lcl_fun
|
|
lcl_fun: .word 3
|
|
.end lcl_fun
|
|
|
|
|
|
.sdata
|
|
.p2align 4
|
|
|
|
.word 0, 0
|
|
|
|
lcl_var: .word 4
|
|
|
|
.p2align 4
|
|
|
|
.word ext_fun
|
|
.word ext_var
|
|
.word lcl_fun
|
|
.word lcl_var
|
|
|
|
.dword ext_fun
|
|
.dword ext_var
|
|
.dword lcl_fun
|
|
.dword lcl_var
|