1*56bb7041Schristos #source: reloc-1a.s 2*56bb7041Schristos #source: reloc-1b.s 3*56bb7041Schristos #ld: -r 4*56bb7041Schristos #readelf: --relocs 5*56bb7041Schristos 6*56bb7041Schristos Relocation section '\.rela\.text' .* 7*56bb7041Schristos .* 8*56bb7041Schristos # 9*56bb7041Schristos # Relocations against tstarta 10*56bb7041Schristos # 11*56bb7041Schristos .* R_MIPS_HI16 .* \.text \- 8010 12*56bb7041Schristos .* R_MIPS_LO16 .* \.text \- 8010 13*56bb7041Schristos .* R_MIPS_HI16 .* \.text \- 8000 14*56bb7041Schristos .* R_MIPS_LO16 .* \.text \- 8000 15*56bb7041Schristos .* R_MIPS_HI16 .* \.text \+ 0 16*56bb7041Schristos .* R_MIPS_LO16 .* \.text \+ 0 17*56bb7041Schristos .* R_MIPS_HI16 .* \.text \+ 7ff0 18*56bb7041Schristos .* R_MIPS_LO16 .* \.text \+ 7ff0 19*56bb7041Schristos .* R_MIPS_HI16 .* \.text \+ 8010 20*56bb7041Schristos .* R_MIPS_LO16 .* \.text \+ 8010 21*56bb7041Schristos # 22*56bb7041Schristos # Relocations against t32a 23*56bb7041Schristos # 24*56bb7041Schristos .* R_MIPS_HI16 .* \.text \- 7ff0 25*56bb7041Schristos .* R_MIPS_LO16 .* \.text \- 7ff0 26*56bb7041Schristos .* R_MIPS_HI16 .* \.text \- 7fe0 27*56bb7041Schristos .* R_MIPS_LO16 .* \.text \- 7fe0 28*56bb7041Schristos .* R_MIPS_HI16 .* \.text \+ 20 29*56bb7041Schristos .* R_MIPS_LO16 .* \.text \+ 20 30*56bb7041Schristos .* R_MIPS_HI16 .* \.text \+ 8010 31*56bb7041Schristos .* R_MIPS_LO16 .* \.text \+ 8010 32*56bb7041Schristos .* R_MIPS_HI16 .* \.text \+ 8030 33*56bb7041Schristos .* R_MIPS_LO16 .* \.text \+ 8030 34*56bb7041Schristos # 35*56bb7041Schristos # Relocations against _start 36*56bb7041Schristos # 37*56bb7041Schristos .* R_MIPS_HI16 .* _start \- 8010 38*56bb7041Schristos .* R_MIPS_LO16 .* _start \- 8010 39*56bb7041Schristos .* R_MIPS_HI16 .* _start \- 8000 40*56bb7041Schristos .* R_MIPS_LO16 .* _start \- 8000 41*56bb7041Schristos .* R_MIPS_HI16 .* _start \+ 0 42*56bb7041Schristos .* R_MIPS_LO16 .* _start \+ 0 43*56bb7041Schristos .* R_MIPS_HI16 .* _start \+ 7ff0 44*56bb7041Schristos .* R_MIPS_LO16 .* _start \+ 7ff0 45*56bb7041Schristos .* R_MIPS_HI16 .* _start \+ 8010 46*56bb7041Schristos .* R_MIPS_LO16 .* _start \+ 8010 47*56bb7041Schristos # 48*56bb7041Schristos # Relocations against tstarta 49*56bb7041Schristos # 50*56bb7041Schristos .* R_MIPS_GOT16 .* \.text \- 8010 51*56bb7041Schristos .* R_MIPS_LO16 .* \.text \- 8010 52*56bb7041Schristos .* R_MIPS_GOT16 .* \.text \- 8000 53*56bb7041Schristos .* R_MIPS_LO16 .* \.text \- 8000 54*56bb7041Schristos .* R_MIPS_GOT16 .* \.text \+ 0 55*56bb7041Schristos .* R_MIPS_LO16 .* \.text \+ 0 56*56bb7041Schristos .* R_MIPS_GOT16 .* \.text \+ 7ff0 57*56bb7041Schristos .* R_MIPS_LO16 .* \.text \+ 7ff0 58*56bb7041Schristos .* R_MIPS_GOT16 .* \.text \+ 8010 59*56bb7041Schristos .* R_MIPS_LO16 .* \.text \+ 8010 60*56bb7041Schristos # 61*56bb7041Schristos # Relocations against t32a 62*56bb7041Schristos # 63*56bb7041Schristos .* R_MIPS_GOT16 .* \.text \- 7ff0 64*56bb7041Schristos .* R_MIPS_LO16 .* \.text \- 7ff0 65*56bb7041Schristos .* R_MIPS_GOT16 .* \.text \- 7fe0 66*56bb7041Schristos .* R_MIPS_LO16 .* \.text \- 7fe0 67*56bb7041Schristos .* R_MIPS_GOT16 .* \.text \+ 20 68*56bb7041Schristos .* R_MIPS_LO16 .* \.text \+ 20 69*56bb7041Schristos .* R_MIPS_GOT16 .* \.text \+ 8010 70*56bb7041Schristos .* R_MIPS_LO16 .* \.text \+ 8010 71*56bb7041Schristos .* R_MIPS_GOT16 .* \.text \+ 8030 72*56bb7041Schristos .* R_MIPS_LO16 .* \.text \+ 8030 73*56bb7041Schristos # 74*56bb7041Schristos # Relocations against sdg 75*56bb7041Schristos # 76*56bb7041Schristos .* R_MIPS_GPREL16 .* sdg \- 4 77*56bb7041Schristos .* R_MIPS_GPREL16 .* sdg \+ 0 78*56bb7041Schristos .* R_MIPS_GPREL16 .* sdg \+ 4 79*56bb7041Schristos # 80*56bb7041Schristos # Relocations against sdla. .sdata should be the first piece of gp-relative 81*56bb7041Schristos # data, which the linker script should put _gp - 0x7ff0. 82*56bb7041Schristos # 83*56bb7041Schristos .* R_MIPS_GPREL16 .* \.sdata \- 7fe4 84*56bb7041Schristos .* R_MIPS_GPREL16 .* \.sdata \- 7fe0 85*56bb7041Schristos .* R_MIPS_GPREL16 .* \.sdata \- 7fdc 86*56bb7041Schristos # 87*56bb7041Schristos # Relocations against tstarta 88*56bb7041Schristos # 89*56bb7041Schristos .* R_MIPS_26 .* \.text \- 4 90*56bb7041Schristos .* R_MIPS_26 .* \.text \+ 0 91*56bb7041Schristos .* R_MIPS_26 .* \.text \+ 4 92*56bb7041Schristos # 93*56bb7041Schristos # Relocations against t32a 94*56bb7041Schristos # 95*56bb7041Schristos .* R_MIPS_26 .* \.text \+ 1c 96*56bb7041Schristos .* R_MIPS_26 .* \.text \+ 20 97*56bb7041Schristos .* R_MIPS_26 .* \.text \+ 24 98*56bb7041Schristos # 99*56bb7041Schristos # Relocations against _start 100*56bb7041Schristos # 101*56bb7041Schristos .* R_MIPS_26 .* _start \- 4 102*56bb7041Schristos .* R_MIPS_26 .* _start \+ 0 103*56bb7041Schristos .* R_MIPS_26 .* _start \+ 4 104*56bb7041Schristos # 105*56bb7041Schristos # Relocations against tstartb 106*56bb7041Schristos # 107*56bb7041Schristos .* R_MIPS_HI16 .* \.text \+ 7fe0 108*56bb7041Schristos .* R_MIPS_LO16 .* \.text \+ 7fe0 109*56bb7041Schristos .* R_MIPS_HI16 .* \.text \+ 7ff0 110*56bb7041Schristos .* R_MIPS_LO16 .* \.text \+ 7ff0 111*56bb7041Schristos .* R_MIPS_HI16 .* \.text \+ fff0 112*56bb7041Schristos .* R_MIPS_LO16 .* \.text \+ fff0 113*56bb7041Schristos .* R_MIPS_HI16 .* \.text \+ 17fe0 114*56bb7041Schristos .* R_MIPS_LO16 .* \.text \+ 17fe0 115*56bb7041Schristos .* R_MIPS_HI16 .* \.text \+ 18000 116*56bb7041Schristos .* R_MIPS_LO16 .* \.text \+ 18000 117*56bb7041Schristos # 118*56bb7041Schristos # Relocations against t32b 119*56bb7041Schristos # 120*56bb7041Schristos .* R_MIPS_HI16 .* \.text \+ 8000 121*56bb7041Schristos .* R_MIPS_LO16 .* \.text \+ 8000 122*56bb7041Schristos .* R_MIPS_HI16 .* \.text \+ 8010 123*56bb7041Schristos .* R_MIPS_LO16 .* \.text \+ 8010 124*56bb7041Schristos .* R_MIPS_HI16 .* \.text \+ 10010 125*56bb7041Schristos .* R_MIPS_LO16 .* \.text \+ 10010 126*56bb7041Schristos .* R_MIPS_HI16 .* \.text \+ 18000 127*56bb7041Schristos .* R_MIPS_LO16 .* \.text \+ 18000 128*56bb7041Schristos .* R_MIPS_HI16 .* \.text \+ 18020 129*56bb7041Schristos .* R_MIPS_LO16 .* \.text \+ 18020 130*56bb7041Schristos # 131*56bb7041Schristos # Relocations against _start 132*56bb7041Schristos # 133*56bb7041Schristos .* R_MIPS_HI16 .* _start \- 8010 134*56bb7041Schristos .* R_MIPS_LO16 .* _start \- 8010 135*56bb7041Schristos .* R_MIPS_HI16 .* _start \- 8000 136*56bb7041Schristos .* R_MIPS_LO16 .* _start \- 8000 137*56bb7041Schristos .* R_MIPS_HI16 .* _start \+ 0 138*56bb7041Schristos .* R_MIPS_LO16 .* _start \+ 0 139*56bb7041Schristos .* R_MIPS_HI16 .* _start \+ 7ff0 140*56bb7041Schristos .* R_MIPS_LO16 .* _start \+ 7ff0 141*56bb7041Schristos .* R_MIPS_HI16 .* _start \+ 8010 142*56bb7041Schristos .* R_MIPS_LO16 .* _start \+ 8010 143*56bb7041Schristos # 144*56bb7041Schristos # Relocations against tstartb 145*56bb7041Schristos # 146*56bb7041Schristos .* R_MIPS_GOT16 .* \.text \+ 7fe0 147*56bb7041Schristos .* R_MIPS_LO16 .* \.text \+ 7fe0 148*56bb7041Schristos .* R_MIPS_GOT16 .* \.text \+ 7ff0 149*56bb7041Schristos .* R_MIPS_LO16 .* \.text \+ 7ff0 150*56bb7041Schristos .* R_MIPS_GOT16 .* \.text \+ fff0 151*56bb7041Schristos .* R_MIPS_LO16 .* \.text \+ fff0 152*56bb7041Schristos .* R_MIPS_GOT16 .* \.text \+ 17fe0 153*56bb7041Schristos .* R_MIPS_LO16 .* \.text \+ 17fe0 154*56bb7041Schristos .* R_MIPS_GOT16 .* \.text \+ 18000 155*56bb7041Schristos .* R_MIPS_LO16 .* \.text \+ 18000 156*56bb7041Schristos # 157*56bb7041Schristos # Relocations against t32b 158*56bb7041Schristos # 159*56bb7041Schristos .* R_MIPS_GOT16 .* \.text \+ 8000 160*56bb7041Schristos .* R_MIPS_LO16 .* \.text \+ 8000 161*56bb7041Schristos .* R_MIPS_GOT16 .* \.text \+ 8010 162*56bb7041Schristos .* R_MIPS_LO16 .* \.text \+ 8010 163*56bb7041Schristos .* R_MIPS_GOT16 .* \.text \+ 10010 164*56bb7041Schristos .* R_MIPS_LO16 .* \.text \+ 10010 165*56bb7041Schristos .* R_MIPS_GOT16 .* \.text \+ 18000 166*56bb7041Schristos .* R_MIPS_LO16 .* \.text \+ 18000 167*56bb7041Schristos .* R_MIPS_GOT16 .* \.text \+ 18020 168*56bb7041Schristos .* R_MIPS_LO16 .* \.text \+ 18020 169*56bb7041Schristos # 170*56bb7041Schristos # Relocations against sdg 171*56bb7041Schristos # 172*56bb7041Schristos .* R_MIPS_GPREL16 .* sdg \- 4 173*56bb7041Schristos .* R_MIPS_GPREL16 .* sdg \+ 0 174*56bb7041Schristos .* R_MIPS_GPREL16 .* sdg \+ 4 175*56bb7041Schristos # 176*56bb7041Schristos # Relocations against sdlb 177*56bb7041Schristos # 178*56bb7041Schristos .* R_MIPS_GPREL16 .* \.sdata \- 7fc4 179*56bb7041Schristos .* R_MIPS_GPREL16 .* \.sdata \- 7fc0 180*56bb7041Schristos .* R_MIPS_GPREL16 .* \.sdata \- 7fbc 181*56bb7041Schristos # 182*56bb7041Schristos # Relocations against tstartb 183*56bb7041Schristos # 184*56bb7041Schristos .* R_MIPS_26 .* \.text \+ ffec 185*56bb7041Schristos .* R_MIPS_26 .* \.text \+ fff0 186*56bb7041Schristos .* R_MIPS_26 .* \.text \+ fff4 187*56bb7041Schristos # 188*56bb7041Schristos # Relocations against t32b 189*56bb7041Schristos # 190*56bb7041Schristos .* R_MIPS_26 .* \.text \+ 1000c 191*56bb7041Schristos .* R_MIPS_26 .* \.text \+ 10010 192*56bb7041Schristos .* R_MIPS_26 .* \.text \+ 10014 193*56bb7041Schristos # 194*56bb7041Schristos # Relocations against _start 195*56bb7041Schristos # 196*56bb7041Schristos .* R_MIPS_26 .* _start \- 4 197*56bb7041Schristos .* R_MIPS_26 .* _start \+ 0 198*56bb7041Schristos .* R_MIPS_26 .* _start \+ 4 199*56bb7041Schristos #pass 200