2012-08-06 21:28:45 +00:00
|
|
|
#source: reloc-1a.s -march=from-abi -mabi=n32 -EB
|
|
|
|
#source: reloc-1b.s -march=from-abi -mabi=n32 -EB
|
2003-12-18 10:25:12 +00:00
|
|
|
#ld: -r
|
|
|
|
#readelf: --relocs
|
|
|
|
|
|
|
|
Relocation section '\.rela\.text' .*
|
|
|
|
.*
|
|
|
|
#
|
|
|
|
# Relocations against tstarta
|
|
|
|
#
|
2008-12-03 14:51:00 +00:00
|
|
|
.* R_MIPS_HI16 .* \.text \- 8010
|
|
|
|
.* R_MIPS_LO16 .* \.text \- 8010
|
|
|
|
.* R_MIPS_HI16 .* \.text \- 8000
|
|
|
|
.* R_MIPS_LO16 .* \.text \- 8000
|
2003-12-18 10:25:12 +00:00
|
|
|
.* R_MIPS_HI16 .* \.text \+ 0
|
|
|
|
.* R_MIPS_LO16 .* \.text \+ 0
|
|
|
|
.* R_MIPS_HI16 .* \.text \+ 7ff0
|
|
|
|
.* R_MIPS_LO16 .* \.text \+ 7ff0
|
|
|
|
.* R_MIPS_HI16 .* \.text \+ 8010
|
|
|
|
.* R_MIPS_LO16 .* \.text \+ 8010
|
|
|
|
#
|
|
|
|
# Relocations against t32a
|
|
|
|
#
|
2008-12-03 14:51:00 +00:00
|
|
|
.* R_MIPS_HI16 .* \.text \- 7ff0
|
|
|
|
.* R_MIPS_LO16 .* \.text \- 7ff0
|
|
|
|
.* R_MIPS_HI16 .* \.text \- 7fe0
|
|
|
|
.* R_MIPS_LO16 .* \.text \- 7fe0
|
2003-12-18 10:25:12 +00:00
|
|
|
.* R_MIPS_HI16 .* \.text \+ 20
|
|
|
|
.* R_MIPS_LO16 .* \.text \+ 20
|
|
|
|
.* R_MIPS_HI16 .* \.text \+ 8010
|
|
|
|
.* R_MIPS_LO16 .* \.text \+ 8010
|
|
|
|
.* R_MIPS_HI16 .* \.text \+ 8030
|
|
|
|
.* R_MIPS_LO16 .* \.text \+ 8030
|
|
|
|
#
|
|
|
|
# Relocations against _start
|
|
|
|
#
|
2008-12-03 14:51:00 +00:00
|
|
|
.* R_MIPS_HI16 .* _start \- 8010
|
|
|
|
.* R_MIPS_LO16 .* _start \- 8010
|
|
|
|
.* R_MIPS_HI16 .* _start \- 8000
|
|
|
|
.* R_MIPS_LO16 .* _start \- 8000
|
2003-12-18 10:25:12 +00:00
|
|
|
.* R_MIPS_HI16 .* _start \+ 0
|
|
|
|
.* R_MIPS_LO16 .* _start \+ 0
|
|
|
|
.* R_MIPS_HI16 .* _start \+ 7ff0
|
|
|
|
.* R_MIPS_LO16 .* _start \+ 7ff0
|
|
|
|
.* R_MIPS_HI16 .* _start \+ 8010
|
|
|
|
.* R_MIPS_LO16 .* _start \+ 8010
|
|
|
|
#
|
|
|
|
# Relocations against tstarta
|
|
|
|
#
|
2008-12-03 14:51:00 +00:00
|
|
|
.* R_MIPS_GOT16 .* \.text \- 8010
|
|
|
|
.* R_MIPS_LO16 .* \.text \- 8010
|
|
|
|
.* R_MIPS_GOT16 .* \.text \- 8000
|
|
|
|
.* R_MIPS_LO16 .* \.text \- 8000
|
2003-12-18 10:25:12 +00:00
|
|
|
.* R_MIPS_GOT16 .* \.text \+ 0
|
|
|
|
.* R_MIPS_LO16 .* \.text \+ 0
|
|
|
|
.* R_MIPS_GOT16 .* \.text \+ 7ff0
|
|
|
|
.* R_MIPS_LO16 .* \.text \+ 7ff0
|
|
|
|
.* R_MIPS_GOT16 .* \.text \+ 8010
|
|
|
|
.* R_MIPS_LO16 .* \.text \+ 8010
|
|
|
|
#
|
|
|
|
# Relocations against t32a
|
|
|
|
#
|
2008-12-03 14:51:00 +00:00
|
|
|
.* R_MIPS_GOT16 .* \.text \- 7ff0
|
|
|
|
.* R_MIPS_LO16 .* \.text \- 7ff0
|
|
|
|
.* R_MIPS_GOT16 .* \.text \- 7fe0
|
|
|
|
.* R_MIPS_LO16 .* \.text \- 7fe0
|
2003-12-18 10:25:12 +00:00
|
|
|
.* R_MIPS_GOT16 .* \.text \+ 20
|
|
|
|
.* R_MIPS_LO16 .* \.text \+ 20
|
|
|
|
.* R_MIPS_GOT16 .* \.text \+ 8010
|
|
|
|
.* R_MIPS_LO16 .* \.text \+ 8010
|
|
|
|
.* R_MIPS_GOT16 .* \.text \+ 8030
|
|
|
|
.* R_MIPS_LO16 .* \.text \+ 8030
|
|
|
|
#
|
|
|
|
# Relocations against sdg
|
|
|
|
#
|
2008-12-03 14:51:00 +00:00
|
|
|
.* R_MIPS_GPREL16 .* sdg \- 4
|
2003-12-18 10:25:12 +00:00
|
|
|
.* R_MIPS_GPREL16 .* sdg \+ 0
|
|
|
|
.* R_MIPS_GPREL16 .* sdg \+ 4
|
|
|
|
#
|
|
|
|
# Relocations against sdla. .sdata should be the first piece of gp-relative
|
|
|
|
# data, which the linker script should put _gp - 0x7ff0.
|
|
|
|
#
|
2008-12-03 14:51:00 +00:00
|
|
|
.* R_MIPS_GPREL16 .* \.sdata \- 7fe4
|
|
|
|
.* R_MIPS_GPREL16 .* \.sdata \- 7fe0
|
|
|
|
.* R_MIPS_GPREL16 .* \.sdata \- 7fdc
|
2003-12-18 10:25:12 +00:00
|
|
|
#
|
|
|
|
# Relocations against tstarta
|
|
|
|
#
|
2008-12-03 14:51:00 +00:00
|
|
|
.* R_MIPS_26 .* \.text \- 4
|
2003-12-18 10:25:12 +00:00
|
|
|
.* R_MIPS_26 .* \.text \+ 0
|
|
|
|
.* R_MIPS_26 .* \.text \+ 4
|
|
|
|
#
|
|
|
|
# Relocations against t32a
|
|
|
|
#
|
|
|
|
.* R_MIPS_26 .* \.text \+ 1c
|
|
|
|
.* R_MIPS_26 .* \.text \+ 20
|
|
|
|
.* R_MIPS_26 .* \.text \+ 24
|
|
|
|
#
|
|
|
|
# Relocations against _start
|
|
|
|
#
|
2008-12-03 14:51:00 +00:00
|
|
|
.* R_MIPS_26 .* _start \- 4
|
2003-12-18 10:25:12 +00:00
|
|
|
.* R_MIPS_26 .* _start \+ 0
|
|
|
|
.* R_MIPS_26 .* _start \+ 4
|
|
|
|
#
|
|
|
|
# Relocations against tstartb
|
|
|
|
#
|
|
|
|
.* R_MIPS_HI16 .* \.text \+ 7fe0
|
|
|
|
.* R_MIPS_LO16 .* \.text \+ 7fe0
|
|
|
|
.* R_MIPS_HI16 .* \.text \+ 7ff0
|
|
|
|
.* R_MIPS_LO16 .* \.text \+ 7ff0
|
|
|
|
.* R_MIPS_HI16 .* \.text \+ fff0
|
|
|
|
.* R_MIPS_LO16 .* \.text \+ fff0
|
|
|
|
.* R_MIPS_HI16 .* \.text \+ 17fe0
|
|
|
|
.* R_MIPS_LO16 .* \.text \+ 17fe0
|
|
|
|
.* R_MIPS_HI16 .* \.text \+ 18000
|
|
|
|
.* R_MIPS_LO16 .* \.text \+ 18000
|
|
|
|
#
|
|
|
|
# Relocations against t32b
|
|
|
|
#
|
|
|
|
.* R_MIPS_HI16 .* \.text \+ 8000
|
|
|
|
.* R_MIPS_LO16 .* \.text \+ 8000
|
|
|
|
.* R_MIPS_HI16 .* \.text \+ 8010
|
|
|
|
.* R_MIPS_LO16 .* \.text \+ 8010
|
|
|
|
.* R_MIPS_HI16 .* \.text \+ 10010
|
|
|
|
.* R_MIPS_LO16 .* \.text \+ 10010
|
|
|
|
.* R_MIPS_HI16 .* \.text \+ 18000
|
|
|
|
.* R_MIPS_LO16 .* \.text \+ 18000
|
|
|
|
.* R_MIPS_HI16 .* \.text \+ 18020
|
|
|
|
.* R_MIPS_LO16 .* \.text \+ 18020
|
|
|
|
#
|
|
|
|
# Relocations against _start
|
|
|
|
#
|
2008-12-03 14:51:00 +00:00
|
|
|
.* R_MIPS_HI16 .* _start \- 8010
|
|
|
|
.* R_MIPS_LO16 .* _start \- 8010
|
|
|
|
.* R_MIPS_HI16 .* _start \- 8000
|
|
|
|
.* R_MIPS_LO16 .* _start \- 8000
|
2003-12-18 10:25:12 +00:00
|
|
|
.* R_MIPS_HI16 .* _start \+ 0
|
|
|
|
.* R_MIPS_LO16 .* _start \+ 0
|
|
|
|
.* R_MIPS_HI16 .* _start \+ 7ff0
|
|
|
|
.* R_MIPS_LO16 .* _start \+ 7ff0
|
|
|
|
.* R_MIPS_HI16 .* _start \+ 8010
|
|
|
|
.* R_MIPS_LO16 .* _start \+ 8010
|
|
|
|
#
|
|
|
|
# Relocations against tstartb
|
|
|
|
#
|
|
|
|
.* R_MIPS_GOT16 .* \.text \+ 7fe0
|
|
|
|
.* R_MIPS_LO16 .* \.text \+ 7fe0
|
|
|
|
.* R_MIPS_GOT16 .* \.text \+ 7ff0
|
|
|
|
.* R_MIPS_LO16 .* \.text \+ 7ff0
|
|
|
|
.* R_MIPS_GOT16 .* \.text \+ fff0
|
|
|
|
.* R_MIPS_LO16 .* \.text \+ fff0
|
|
|
|
.* R_MIPS_GOT16 .* \.text \+ 17fe0
|
|
|
|
.* R_MIPS_LO16 .* \.text \+ 17fe0
|
|
|
|
.* R_MIPS_GOT16 .* \.text \+ 18000
|
|
|
|
.* R_MIPS_LO16 .* \.text \+ 18000
|
|
|
|
#
|
|
|
|
# Relocations against t32b
|
|
|
|
#
|
|
|
|
.* R_MIPS_GOT16 .* \.text \+ 8000
|
|
|
|
.* R_MIPS_LO16 .* \.text \+ 8000
|
|
|
|
.* R_MIPS_GOT16 .* \.text \+ 8010
|
|
|
|
.* R_MIPS_LO16 .* \.text \+ 8010
|
|
|
|
.* R_MIPS_GOT16 .* \.text \+ 10010
|
|
|
|
.* R_MIPS_LO16 .* \.text \+ 10010
|
|
|
|
.* R_MIPS_GOT16 .* \.text \+ 18000
|
|
|
|
.* R_MIPS_LO16 .* \.text \+ 18000
|
|
|
|
.* R_MIPS_GOT16 .* \.text \+ 18020
|
|
|
|
.* R_MIPS_LO16 .* \.text \+ 18020
|
|
|
|
#
|
|
|
|
# Relocations against sdg
|
|
|
|
#
|
2008-12-03 14:51:00 +00:00
|
|
|
.* R_MIPS_GPREL16 .* sdg \- 4
|
2003-12-18 10:25:12 +00:00
|
|
|
.* R_MIPS_GPREL16 .* sdg \+ 0
|
|
|
|
.* R_MIPS_GPREL16 .* sdg \+ 4
|
|
|
|
#
|
|
|
|
# Relocations against sdlb
|
|
|
|
#
|
2008-12-03 14:51:00 +00:00
|
|
|
.* R_MIPS_GPREL16 .* \.sdata \- 7fc4
|
|
|
|
.* R_MIPS_GPREL16 .* \.sdata \- 7fc0
|
|
|
|
.* R_MIPS_GPREL16 .* \.sdata \- 7fbc
|
2003-12-18 10:25:12 +00:00
|
|
|
#
|
|
|
|
# Relocations against tstartb
|
|
|
|
#
|
|
|
|
.* R_MIPS_26 .* \.text \+ ffec
|
|
|
|
.* R_MIPS_26 .* \.text \+ fff0
|
|
|
|
.* R_MIPS_26 .* \.text \+ fff4
|
|
|
|
#
|
|
|
|
# Relocations against t32b
|
|
|
|
#
|
|
|
|
.* R_MIPS_26 .* \.text \+ 1000c
|
|
|
|
.* R_MIPS_26 .* \.text \+ 10010
|
|
|
|
.* R_MIPS_26 .* \.text \+ 10014
|
|
|
|
#
|
|
|
|
# Relocations against _start
|
|
|
|
#
|
2008-12-03 14:51:00 +00:00
|
|
|
.* R_MIPS_26 .* _start \- 4
|
2003-12-18 10:25:12 +00:00
|
|
|
.* R_MIPS_26 .* _start \+ 0
|
|
|
|
.* R_MIPS_26 .* _start \+ 4
|
|
|
|
#pass
|