1# Deliberately create out-of-order relocs to test that ld -r sorts them. 2 .text 3 .long 0, 0, 0 4 .reloc 4, R_PPC64_REL24, __tls_get_addr 5 .reloc 4, R_PPC64_TLSGD, x 6 .reloc 0, R_PPC64_GOT_TLSGD16, x 7 .reloc 0, R_PPC64_NONE, 0 8 .reloc 0, R_PPC64_ADDR32, 1 9 .reloc 0, R_PPC64_ADDR24, 2 10 .reloc 8, R_PPC64_REL24, 10 11 .reloc 8, R_PPC64_REL14, 11 12 .reloc 8, R_PPC64_REL14_BRTAKEN, 12 13 .reloc 0, R_PPC64_ADDR16, 3 14 .reloc 0, R_PPC64_ADDR16_LO, 4 15 .reloc 0, R_PPC64_ADDR16_HI, 5 16 .reloc 0, R_PPC64_ADDR16_HA, 6 17 .reloc 0, R_PPC64_ADDR14, 7 18 .reloc 8, R_PPC64_REL14_BRNTAKEN, 13 19 .reloc 8, R_PPC64_GOT16, 14 20 .reloc 8, R_PPC64_GOT16_LO, 15 21 .reloc 8, R_PPC64_GOT16_HI, 16 22 .reloc 8, R_PPC64_GOT16_HA, 17 23 .reloc 8, R_PPC64_NONE, 18 24 .reloc 8, R_PPC64_COPY, 19 25 .reloc 0, R_PPC64_ADDR14_BRTAKEN, 8 26 .reloc 0, R_PPC64_ADDR14_BRNTAKEN, 9 27