OpenCores
URL https://opencores.org/ocsvn/open8_urisc/open8_urisc/trunk

Subversion Repositories open8_urisc

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /open8_urisc/trunk/gnu/binutils/ld/testsuite
    from Rev 157 to Rev 163
    Reverse comparison

Rev 157 → Rev 163

/ld-plugin/plugin-2.d
1,21 → 1,22
Hello from testplugin.
tv\[0\]: LDPT_MESSAGE func@0x.*
tv\[1\]: LDPT_API_VERSION value 0x1 \(1\)
tv\[2\]: LDPT_GNU_LD_VERSION value 0x.*
tv\[3\]: LDPT_LINKER_OUTPUT value 0x1 \(1\)
tv\[4\]: LDPT_OUTPUT_NAME 'tmpdir/main.x'
tv\[5\]: LDPT_REGISTER_CLAIM_FILE_HOOK func@0x.*
tv\[6\]: LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK func@0x.*
tv\[7\]: LDPT_REGISTER_CLEANUP_HOOK func@0x.*
tv\[8\]: LDPT_ADD_SYMBOLS func@0x.*
tv\[9\]: LDPT_GET_INPUT_FILE func@0x.*
tv\[10\]: LDPT_RELEASE_INPUT_FILE func@0x.*
tv\[11\]: LDPT_GET_SYMBOLS func@0x.*
tv\[12\]: LDPT_ADD_INPUT_FILE func@0x.*
tv\[13\]: LDPT_ADD_INPUT_LIBRARY func@0x.*
tv\[14\]: LDPT_SET_EXTRA_LIBRARY_PATH func@0x.*
tv\[15\]: LDPT_OPTION 'failonload'
tv\[16\]: LDPT_NULL value 0x0 \(0\)
.*: LDPT_MESSAGE func@0x.*
.*: LDPT_API_VERSION value 0x1 \(1\)
.*: LDPT_GNU_LD_VERSION value 0x.*
.*: LDPT_LINKER_OUTPUT value 0x1 \(1\)
.*: LDPT_OUTPUT_NAME 'tmpdir/main.x'
.*: LDPT_REGISTER_CLAIM_FILE_HOOK func@0x.*
.*: LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK func@0x.*
.*: LDPT_REGISTER_CLEANUP_HOOK func@0x.*
.*: LDPT_ADD_SYMBOLS func@0x.*
.*: LDPT_GET_INPUT_FILE func@0x.*
.*: LDPT_RELEASE_INPUT_FILE func@0x.*
.*: LDPT_GET_SYMBOLS func@0x.*
.*: LDPT_GET_SYMBOLS_V2 func@0x.*
.*: LDPT_ADD_INPUT_FILE func@0x.*
.*: LDPT_ADD_INPUT_LIBRARY func@0x.*
.*: LDPT_SET_EXTRA_LIBRARY_PATH func@0x.*
.*: LDPT_OPTION 'failonload'
.*: LDPT_NULL value 0x0 \(0\)
#...
.*ld.*:.*ldtestplug.*: error loading plugin
#...
/ld-plugin/plugin-3.d
1,22 → 1,23
Hello from testplugin.
tv\[0\]: LDPT_MESSAGE func@0x.*
tv\[1\]: LDPT_API_VERSION value 0x1 \(1\)
tv\[2\]: LDPT_GNU_LD_VERSION value 0x.*
tv\[3\]: LDPT_LINKER_OUTPUT value 0x1 \(1\)
tv\[4\]: LDPT_OUTPUT_NAME 'tmpdir/main.x'
tv\[5\]: LDPT_REGISTER_CLAIM_FILE_HOOK func@0x.*
tv\[6\]: LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK func@0x.*
tv\[7\]: LDPT_REGISTER_CLEANUP_HOOK func@0x.*
tv\[8\]: LDPT_ADD_SYMBOLS func@0x.*
tv\[9\]: LDPT_GET_INPUT_FILE func@0x.*
tv\[10\]: LDPT_RELEASE_INPUT_FILE func@0x.*
tv\[11\]: LDPT_GET_SYMBOLS func@0x.*
tv\[12\]: LDPT_ADD_INPUT_FILE func@0x.*
tv\[13\]: LDPT_ADD_INPUT_LIBRARY func@0x.*
tv\[14\]: LDPT_SET_EXTRA_LIBRARY_PATH func@0x.*
tv\[15\]: LDPT_OPTION 'registerallsymbolsread'
tv\[16\]: LDPT_OPTION 'failallsymbolsread'
tv\[17\]: LDPT_NULL value 0x0 \(0\)
.*: LDPT_MESSAGE func@0x.*
.*: LDPT_API_VERSION value 0x1 \(1\)
.*: LDPT_GNU_LD_VERSION value 0x.*
.*: LDPT_LINKER_OUTPUT value 0x1 \(1\)
.*: LDPT_OUTPUT_NAME 'tmpdir/main.x'
.*: LDPT_REGISTER_CLAIM_FILE_HOOK func@0x.*
.*: LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK func@0x.*
.*: LDPT_REGISTER_CLEANUP_HOOK func@0x.*
.*: LDPT_ADD_SYMBOLS func@0x.*
.*: LDPT_GET_INPUT_FILE func@0x.*
.*: LDPT_RELEASE_INPUT_FILE func@0x.*
.*: LDPT_GET_SYMBOLS func@0x.*
.*: LDPT_GET_SYMBOLS_V2 func@0x.*
.*: LDPT_ADD_INPUT_FILE func@0x.*
.*: LDPT_ADD_INPUT_LIBRARY func@0x.*
.*: LDPT_SET_EXTRA_LIBRARY_PATH func@0x.*
.*: LDPT_OPTION 'registerallsymbolsread'
.*: LDPT_OPTION 'failallsymbolsread'
.*: LDPT_NULL value 0x0 \(0\)
#...
.*ld.*:.*ldtestplug.*: plugin reported error after all symbols read
#...
/ld-plugin/plugin-4.d
1,22 → 1,23
Hello from testplugin.
tv\[0\]: LDPT_MESSAGE func@0x.*
tv\[1\]: LDPT_API_VERSION value 0x1 \(1\)
tv\[2\]: LDPT_GNU_LD_VERSION value 0x.*
tv\[3\]: LDPT_LINKER_OUTPUT value 0x1 \(1\)
tv\[4\]: LDPT_OUTPUT_NAME 'tmpdir/main.x'
tv\[5\]: LDPT_REGISTER_CLAIM_FILE_HOOK func@0x.*
tv\[6\]: LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK func@0x.*
tv\[7\]: LDPT_REGISTER_CLEANUP_HOOK func@0x.*
tv\[8\]: LDPT_ADD_SYMBOLS func@0x.*
tv\[9\]: LDPT_GET_INPUT_FILE func@0x.*
tv\[10\]: LDPT_RELEASE_INPUT_FILE func@0x.*
tv\[11\]: LDPT_GET_SYMBOLS func@0x.*
tv\[12\]: LDPT_ADD_INPUT_FILE func@0x.*
tv\[13\]: LDPT_ADD_INPUT_LIBRARY func@0x.*
tv\[14\]: LDPT_SET_EXTRA_LIBRARY_PATH func@0x.*
tv\[15\]: LDPT_OPTION 'failcleanup'
tv\[16\]: LDPT_OPTION 'registercleanup'
tv\[17\]: LDPT_NULL value 0x0 \(0\)
.*: LDPT_MESSAGE func@0x.*
.*: LDPT_API_VERSION value 0x1 \(1\)
.*: LDPT_GNU_LD_VERSION value 0x.*
.*: LDPT_LINKER_OUTPUT value 0x1 \(1\)
.*: LDPT_OUTPUT_NAME 'tmpdir/main.x'
.*: LDPT_REGISTER_CLAIM_FILE_HOOK func@0x.*
.*: LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK func@0x.*
.*: LDPT_REGISTER_CLEANUP_HOOK func@0x.*
.*: LDPT_ADD_SYMBOLS func@0x.*
.*: LDPT_GET_INPUT_FILE func@0x.*
.*: LDPT_RELEASE_INPUT_FILE func@0x.*
.*: LDPT_GET_SYMBOLS func@0x.*
.*: LDPT_GET_SYMBOLS_V2 func@0x.*
.*: LDPT_ADD_INPUT_FILE func@0x.*
.*: LDPT_ADD_INPUT_LIBRARY func@0x.*
.*: LDPT_SET_EXTRA_LIBRARY_PATH func@0x.*
.*: LDPT_OPTION 'failcleanup'
.*: LDPT_OPTION 'registercleanup'
.*: LDPT_NULL value 0x0 \(0\)
#...
hook called: cleanup.
.*ld.*:.*ldtestplug.*: error in plugin cleanup \(ignored\)
/ld-plugin/plugin-5.d
1,23 → 1,24
Hello from testplugin.
tv\[0\]: LDPT_MESSAGE func@0x.*
tv\[1\]: LDPT_API_VERSION value 0x1 \(1\)
tv\[2\]: LDPT_GNU_LD_VERSION value 0x.*
tv\[3\]: LDPT_LINKER_OUTPUT value 0x1 \(1\)
tv\[4\]: LDPT_OUTPUT_NAME 'tmpdir/main.x'
tv\[5\]: LDPT_REGISTER_CLAIM_FILE_HOOK func@0x.*
tv\[6\]: LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK func@0x.*
tv\[7\]: LDPT_REGISTER_CLEANUP_HOOK func@0x.*
tv\[8\]: LDPT_ADD_SYMBOLS func@0x.*
tv\[9\]: LDPT_GET_INPUT_FILE func@0x.*
tv\[10\]: LDPT_RELEASE_INPUT_FILE func@0x.*
tv\[11\]: LDPT_GET_SYMBOLS func@0x.*
tv\[12\]: LDPT_ADD_INPUT_FILE func@0x.*
tv\[13\]: LDPT_ADD_INPUT_LIBRARY func@0x.*
tv\[14\]: LDPT_SET_EXTRA_LIBRARY_PATH func@0x.*
tv\[15\]: LDPT_OPTION 'registerclaimfile'
tv\[16\]: LDPT_OPTION 'registerallsymbolsread'
tv\[17\]: LDPT_OPTION 'registercleanup'
tv\[18\]: LDPT_NULL value 0x0 \(0\)
.*: LDPT_MESSAGE func@0x.*
.*: LDPT_API_VERSION value 0x1 \(1\)
.*: LDPT_GNU_LD_VERSION value 0x.*
.*: LDPT_LINKER_OUTPUT value 0x1 \(1\)
.*: LDPT_OUTPUT_NAME 'tmpdir/main.x'
.*: LDPT_REGISTER_CLAIM_FILE_HOOK func@0x.*
.*: LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK func@0x.*
.*: LDPT_REGISTER_CLEANUP_HOOK func@0x.*
.*: LDPT_ADD_SYMBOLS func@0x.*
.*: LDPT_GET_INPUT_FILE func@0x.*
.*: LDPT_RELEASE_INPUT_FILE func@0x.*
.*: LDPT_GET_SYMBOLS func@0x.*
.*: LDPT_GET_SYMBOLS_V2 func@0x.*
.*: LDPT_ADD_INPUT_FILE func@0x.*
.*: LDPT_ADD_INPUT_LIBRARY func@0x.*
.*: LDPT_SET_EXTRA_LIBRARY_PATH func@0x.*
.*: LDPT_OPTION 'registerclaimfile'
.*: LDPT_OPTION 'registerallsymbolsread'
.*: LDPT_OPTION 'registercleanup'
.*: LDPT_NULL value 0x0 \(0\)
#...
hook called: claim_file tmpdir/main.o \[@0/.*
hook called: claim_file tmpdir/func.o \[@0/.*
/ld-plugin/plugin-6.d
1,24 → 1,25
Hello from testplugin.
tv\[0\]: LDPT_MESSAGE func@0x.*
tv\[1\]: LDPT_API_VERSION value 0x1 \(1\)
tv\[2\]: LDPT_GNU_LD_VERSION value 0x.*
tv\[3\]: LDPT_LINKER_OUTPUT value 0x1 \(1\)
tv\[4\]: LDPT_OUTPUT_NAME 'tmpdir/main.x'
tv\[5\]: LDPT_REGISTER_CLAIM_FILE_HOOK func@0x.*
tv\[6\]: LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK func@0x.*
tv\[7\]: LDPT_REGISTER_CLEANUP_HOOK func@0x.*
tv\[8\]: LDPT_ADD_SYMBOLS func@0x.*
tv\[9\]: LDPT_GET_INPUT_FILE func@0x.*
tv\[10\]: LDPT_RELEASE_INPUT_FILE func@0x.*
tv\[11\]: LDPT_GET_SYMBOLS func@0x.*
tv\[12\]: LDPT_ADD_INPUT_FILE func@0x.*
tv\[13\]: LDPT_ADD_INPUT_LIBRARY func@0x.*
tv\[14\]: LDPT_SET_EXTRA_LIBRARY_PATH func@0x.*
tv\[15\]: LDPT_OPTION 'registerclaimfile'
tv\[16\]: LDPT_OPTION 'registerallsymbolsread'
tv\[17\]: LDPT_OPTION 'registercleanup'
tv\[18\]: LDPT_OPTION 'claim:tmpdir/func.o'
tv\[19\]: LDPT_NULL value 0x0 \(0\)
.*: LDPT_MESSAGE func@0x.*
.*: LDPT_API_VERSION value 0x1 \(1\)
.*: LDPT_GNU_LD_VERSION value 0x.*
.*: LDPT_LINKER_OUTPUT value 0x1 \(1\)
.*: LDPT_OUTPUT_NAME 'tmpdir/main.x'
.*: LDPT_REGISTER_CLAIM_FILE_HOOK func@0x.*
.*: LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK func@0x.*
.*: LDPT_REGISTER_CLEANUP_HOOK func@0x.*
.*: LDPT_ADD_SYMBOLS func@0x.*
.*: LDPT_GET_INPUT_FILE func@0x.*
.*: LDPT_RELEASE_INPUT_FILE func@0x.*
.*: LDPT_GET_SYMBOLS func@0x.*
.*: LDPT_GET_SYMBOLS_V2 func@0x.*
.*: LDPT_ADD_INPUT_FILE func@0x.*
.*: LDPT_ADD_INPUT_LIBRARY func@0x.*
.*: LDPT_SET_EXTRA_LIBRARY_PATH func@0x.*
.*: LDPT_OPTION 'registerclaimfile'
.*: LDPT_OPTION 'registerallsymbolsread'
.*: LDPT_OPTION 'registercleanup'
.*: LDPT_OPTION 'claim:tmpdir/func.o'
.*: LDPT_NULL value 0x0 \(0\)
#...
hook called: claim_file tmpdir/main.o \[@0/.* not claimed
hook called: claim_file tmpdir/func.o \[@0/.* CLAIMED
/ld-plugin/plugin-7.d
1,25 → 1,26
Hello from testplugin.
tv\[0\]: LDPT_MESSAGE func@0x.*
tv\[1\]: LDPT_API_VERSION value 0x1 \(1\)
tv\[2\]: LDPT_GNU_LD_VERSION value 0x.*
tv\[3\]: LDPT_LINKER_OUTPUT value 0x1 \(1\)
tv\[4\]: LDPT_OUTPUT_NAME 'tmpdir/main.x'
tv\[5\]: LDPT_REGISTER_CLAIM_FILE_HOOK func@0x.*
tv\[6\]: LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK func@0x.*
tv\[7\]: LDPT_REGISTER_CLEANUP_HOOK func@0x.*
tv\[8\]: LDPT_ADD_SYMBOLS func@0x.*
tv\[9\]: LDPT_GET_INPUT_FILE func@0x.*
tv\[10\]: LDPT_RELEASE_INPUT_FILE func@0x.*
tv\[11\]: LDPT_GET_SYMBOLS func@0x.*
tv\[12\]: LDPT_ADD_INPUT_FILE func@0x.*
tv\[13\]: LDPT_ADD_INPUT_LIBRARY func@0x.*
tv\[14\]: LDPT_SET_EXTRA_LIBRARY_PATH func@0x.*
tv\[15\]: LDPT_OPTION 'registerclaimfile'
tv\[16\]: LDPT_OPTION 'registerallsymbolsread'
tv\[17\]: LDPT_OPTION 'registercleanup'
tv\[18\]: LDPT_OPTION 'claim:tmpdir/func.o'
tv\[19\]: LDPT_OPTION 'sym:_?func::0:0:0'
tv\[20\]: LDPT_NULL value 0x0 \(0\)
.*: LDPT_MESSAGE func@0x.*
.*: LDPT_API_VERSION value 0x1 \(1\)
.*: LDPT_GNU_LD_VERSION value 0x.*
.*: LDPT_LINKER_OUTPUT value 0x1 \(1\)
.*: LDPT_OUTPUT_NAME 'tmpdir/main.x'
.*: LDPT_REGISTER_CLAIM_FILE_HOOK func@0x.*
.*: LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK func@0x.*
.*: LDPT_REGISTER_CLEANUP_HOOK func@0x.*
.*: LDPT_ADD_SYMBOLS func@0x.*
.*: LDPT_GET_INPUT_FILE func@0x.*
.*: LDPT_RELEASE_INPUT_FILE func@0x.*
.*: LDPT_GET_SYMBOLS func@0x.*
.*: LDPT_GET_SYMBOLS_V2 func@0x.*
.*: LDPT_ADD_INPUT_FILE func@0x.*
.*: LDPT_ADD_INPUT_LIBRARY func@0x.*
.*: LDPT_SET_EXTRA_LIBRARY_PATH func@0x.*
.*: LDPT_OPTION 'registerclaimfile'
.*: LDPT_OPTION 'registerallsymbolsread'
.*: LDPT_OPTION 'registercleanup'
.*: LDPT_OPTION 'claim:tmpdir/func.o'
.*: LDPT_OPTION 'sym:_?func::0:0:0'
.*: LDPT_NULL value 0x0 \(0\)
#...
hook called: claim_file tmpdir/main.o \[@0/.* not claimed
hook called: claim_file tmpdir/func.o \[@0/.* CLAIMED
/ld-plugin/plugin-8.d
1,27 → 1,28
Hello from testplugin.
tv\[0\]: LDPT_MESSAGE func@0x.*
tv\[1\]: LDPT_API_VERSION value 0x1 \(1\)
tv\[2\]: LDPT_GNU_LD_VERSION value 0x.*
tv\[3\]: LDPT_LINKER_OUTPUT value 0x1 \(1\)
tv\[4\]: LDPT_OUTPUT_NAME 'tmpdir/main.x'
tv\[5\]: LDPT_REGISTER_CLAIM_FILE_HOOK func@0x.*
tv\[6\]: LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK func@0x.*
tv\[7\]: LDPT_REGISTER_CLEANUP_HOOK func@0x.*
tv\[8\]: LDPT_ADD_SYMBOLS func@0x.*
tv\[9\]: LDPT_GET_INPUT_FILE func@0x.*
tv\[10\]: LDPT_RELEASE_INPUT_FILE func@0x.*
tv\[11\]: LDPT_GET_SYMBOLS func@0x.*
tv\[12\]: LDPT_ADD_INPUT_FILE func@0x.*
tv\[13\]: LDPT_ADD_INPUT_LIBRARY func@0x.*
tv\[14\]: LDPT_SET_EXTRA_LIBRARY_PATH func@0x.*
tv\[15\]: LDPT_OPTION 'registerclaimfile'
tv\[16\]: LDPT_OPTION 'registerallsymbolsread'
tv\[17\]: LDPT_OPTION 'registercleanup'
tv\[18\]: LDPT_OPTION 'claim:tmpdir/func.o'
tv\[19\]: LDPT_OPTION 'sym:_?func::0:0:0'
tv\[20\]: LDPT_OPTION 'sym:_?func2::0:0:0'
tv\[21\]: LDPT_OPTION 'dumpresolutions'
tv\[22\]: LDPT_NULL value 0x0 \(0\)
.*: LDPT_MESSAGE func@0x.*
.*: LDPT_API_VERSION value 0x1 \(1\)
.*: LDPT_GNU_LD_VERSION value 0x.*
.*: LDPT_LINKER_OUTPUT value 0x1 \(1\)
.*: LDPT_OUTPUT_NAME 'tmpdir/main.x'
.*: LDPT_REGISTER_CLAIM_FILE_HOOK func@0x.*
.*: LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK func@0x.*
.*: LDPT_REGISTER_CLEANUP_HOOK func@0x.*
.*: LDPT_ADD_SYMBOLS func@0x.*
.*: LDPT_GET_INPUT_FILE func@0x.*
.*: LDPT_RELEASE_INPUT_FILE func@0x.*
.*: LDPT_GET_SYMBOLS func@0x.*
.*: LDPT_GET_SYMBOLS_V2 func@0x.*
.*: LDPT_ADD_INPUT_FILE func@0x.*
.*: LDPT_ADD_INPUT_LIBRARY func@0x.*
.*: LDPT_SET_EXTRA_LIBRARY_PATH func@0x.*
.*: LDPT_OPTION 'registerclaimfile'
.*: LDPT_OPTION 'registerallsymbolsread'
.*: LDPT_OPTION 'registercleanup'
.*: LDPT_OPTION 'claim:tmpdir/func.o'
.*: LDPT_OPTION 'sym:_?func::0:0:0'
.*: LDPT_OPTION 'sym:_?func2::0:0:0'
.*: LDPT_OPTION 'dumpresolutions'
.*: LDPT_NULL value 0x0 \(0\)
#...
hook called: claim_file tmpdir/main.o \[@0/.* not claimed
hook called: claim_file tmpdir/func.o \[@0/.* CLAIMED
/ld-plugin/plugin-9.d
1,28 → 1,29
Hello from testplugin.
tv\[0\]: LDPT_MESSAGE func@0x.*
tv\[1\]: LDPT_API_VERSION value 0x1 \(1\)
tv\[2\]: LDPT_GNU_LD_VERSION value 0x.*
tv\[3\]: LDPT_LINKER_OUTPUT value 0x1 \(1\)
tv\[4\]: LDPT_OUTPUT_NAME 'tmpdir/main.x'
tv\[5\]: LDPT_REGISTER_CLAIM_FILE_HOOK func@0x.*
tv\[6\]: LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK func@0x.*
tv\[7\]: LDPT_REGISTER_CLEANUP_HOOK func@0x.*
tv\[8\]: LDPT_ADD_SYMBOLS func@0x.*
tv\[9\]: LDPT_GET_INPUT_FILE func@0x.*
tv\[10\]: LDPT_RELEASE_INPUT_FILE func@0x.*
tv\[11\]: LDPT_GET_SYMBOLS func@0x.*
tv\[12\]: LDPT_ADD_INPUT_FILE func@0x.*
tv\[13\]: LDPT_ADD_INPUT_LIBRARY func@0x.*
tv\[14\]: LDPT_SET_EXTRA_LIBRARY_PATH func@0x.*
tv\[15\]: LDPT_OPTION 'registerclaimfile'
tv\[16\]: LDPT_OPTION 'registerallsymbolsread'
tv\[17\]: LDPT_OPTION 'registercleanup'
tv\[18\]: LDPT_OPTION 'claim:tmpdir/func.o'
tv\[19\]: LDPT_OPTION 'sym:_?func::0:0:0'
tv\[20\]: LDPT_OPTION 'sym:_?func2::0:0:0'
tv\[21\]: LDPT_OPTION 'dumpresolutions'
tv\[22\]: LDPT_OPTION 'add:tmpdir/func.o'
tv\[23\]: LDPT_NULL value 0x0 \(0\)
.*: LDPT_MESSAGE func@0x.*
.*: LDPT_API_VERSION value 0x1 \(1\)
.*: LDPT_GNU_LD_VERSION value 0x.*
.*: LDPT_LINKER_OUTPUT value 0x1 \(1\)
.*: LDPT_OUTPUT_NAME 'tmpdir/main.x'
.*: LDPT_REGISTER_CLAIM_FILE_HOOK func@0x.*
.*: LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK func@0x.*
.*: LDPT_REGISTER_CLEANUP_HOOK func@0x.*
.*: LDPT_ADD_SYMBOLS func@0x.*
.*: LDPT_GET_INPUT_FILE func@0x.*
.*: LDPT_RELEASE_INPUT_FILE func@0x.*
.*: LDPT_GET_SYMBOLS func@0x.*
.*: LDPT_GET_SYMBOLS_V2 func@0x.*
.*: LDPT_ADD_INPUT_FILE func@0x.*
.*: LDPT_ADD_INPUT_LIBRARY func@0x.*
.*: LDPT_SET_EXTRA_LIBRARY_PATH func@0x.*
.*: LDPT_OPTION 'registerclaimfile'
.*: LDPT_OPTION 'registerallsymbolsread'
.*: LDPT_OPTION 'registercleanup'
.*: LDPT_OPTION 'claim:tmpdir/func.o'
.*: LDPT_OPTION 'sym:_?func::0:0:0'
.*: LDPT_OPTION 'sym:_?func2::0:0:0'
.*: LDPT_OPTION 'dumpresolutions'
.*: LDPT_OPTION 'add:tmpdir/func.o'
.*: LDPT_NULL value 0x0 \(0\)
#...
hook called: claim_file tmpdir/main.o \[@0/.* not claimed
hook called: claim_file tmpdir/func.o \[@0/.* CLAIMED
/ld-plugin/plugin-10.d
1,28 → 1,29
Hello from testplugin.
tv\[0\]: LDPT_MESSAGE func@0x.*
tv\[1\]: LDPT_API_VERSION value 0x1 \(1\)
tv\[2\]: LDPT_GNU_LD_VERSION value 0x.*
tv\[3\]: LDPT_LINKER_OUTPUT value 0x1 \(1\)
tv\[4\]: LDPT_OUTPUT_NAME 'tmpdir/main.x'
tv\[5\]: LDPT_REGISTER_CLAIM_FILE_HOOK func@0x.*
tv\[6\]: LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK func@0x.*
tv\[7\]: LDPT_REGISTER_CLEANUP_HOOK func@0x.*
tv\[8\]: LDPT_ADD_SYMBOLS func@0x.*
tv\[9\]: LDPT_GET_INPUT_FILE func@0x.*
tv\[10\]: LDPT_RELEASE_INPUT_FILE func@0x.*
tv\[11\]: LDPT_GET_SYMBOLS func@0x.*
tv\[12\]: LDPT_ADD_INPUT_FILE func@0x.*
tv\[13\]: LDPT_ADD_INPUT_LIBRARY func@0x.*
tv\[14\]: LDPT_SET_EXTRA_LIBRARY_PATH func@0x.*
tv\[15\]: LDPT_OPTION 'registerclaimfile'
tv\[16\]: LDPT_OPTION 'registerallsymbolsread'
tv\[17\]: LDPT_OPTION 'registercleanup'
tv\[18\]: LDPT_OPTION 'claim:tmpdir/func.o'
tv\[19\]: LDPT_OPTION 'sym:_?func::0:0:0'
tv\[20\]: LDPT_OPTION 'sym:_?func2::0:0:0'
tv\[21\]: LDPT_OPTION 'dumpresolutions'
tv\[22\]: LDPT_OPTION 'add:tmpdir/func.o'
tv\[23\]: LDPT_NULL value 0x0 \(0\)
.*: LDPT_MESSAGE func@0x.*
.*: LDPT_API_VERSION value 0x1 \(1\)
.*: LDPT_GNU_LD_VERSION value 0x.*
.*: LDPT_LINKER_OUTPUT value 0x1 \(1\)
.*: LDPT_OUTPUT_NAME 'tmpdir/main.x'
.*: LDPT_REGISTER_CLAIM_FILE_HOOK func@0x.*
.*: LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK func@0x.*
.*: LDPT_REGISTER_CLEANUP_HOOK func@0x.*
.*: LDPT_ADD_SYMBOLS func@0x.*
.*: LDPT_GET_INPUT_FILE func@0x.*
.*: LDPT_RELEASE_INPUT_FILE func@0x.*
.*: LDPT_GET_SYMBOLS func@0x.*
.*: LDPT_GET_SYMBOLS_V2 func@0x.*
.*: LDPT_ADD_INPUT_FILE func@0x.*
.*: LDPT_ADD_INPUT_LIBRARY func@0x.*
.*: LDPT_SET_EXTRA_LIBRARY_PATH func@0x.*
.*: LDPT_OPTION 'registerclaimfile'
.*: LDPT_OPTION 'registerallsymbolsread'
.*: LDPT_OPTION 'registercleanup'
.*: LDPT_OPTION 'claim:tmpdir/func.o'
.*: LDPT_OPTION 'sym:_?func::0:0:0'
.*: LDPT_OPTION 'sym:_?func2::0:0:0'
.*: LDPT_OPTION 'dumpresolutions'
.*: LDPT_OPTION 'add:tmpdir/func.o'
.*: LDPT_NULL value 0x0 \(0\)
#...
hook called: claim_file tmpdir/main.o \[@0/.* not claimed
hook called: claim_file tmpdir/func.o \[@0/.* CLAIMED
/ld-plugin/plugin-11.d
1,31 → 1,32
Hello from testplugin.
tv\[0\]: LDPT_MESSAGE func@0x.*
tv\[1\]: LDPT_API_VERSION value 0x1 \(1\)
tv\[2\]: LDPT_GNU_LD_VERSION value 0x.*
tv\[3\]: LDPT_LINKER_OUTPUT value 0x1 \(1\)
tv\[4\]: LDPT_OUTPUT_NAME 'tmpdir/main.x'
tv\[5\]: LDPT_REGISTER_CLAIM_FILE_HOOK func@0x.*
tv\[6\]: LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK func@0x.*
tv\[7\]: LDPT_REGISTER_CLEANUP_HOOK func@0x.*
tv\[8\]: LDPT_ADD_SYMBOLS func@0x.*
tv\[9\]: LDPT_GET_INPUT_FILE func@0x.*
tv\[10\]: LDPT_RELEASE_INPUT_FILE func@0x.*
tv\[11\]: LDPT_GET_SYMBOLS func@0x.*
tv\[12\]: LDPT_ADD_INPUT_FILE func@0x.*
tv\[13\]: LDPT_ADD_INPUT_LIBRARY func@0x.*
tv\[14\]: LDPT_SET_EXTRA_LIBRARY_PATH func@0x.*
tv\[15\]: LDPT_OPTION 'registerclaimfile'
tv\[16\]: LDPT_OPTION 'registerallsymbolsread'
tv\[17\]: LDPT_OPTION 'registercleanup'
tv\[18\]: LDPT_OPTION 'claim:tmpdir/func.o'
tv\[19\]: LDPT_OPTION 'sym:_?func::0:0:0'
tv\[20\]: LDPT_OPTION 'sym:_?func2::0:0:0'
tv\[21\]: LDPT_OPTION 'dumpresolutions'
tv\[22\]: LDPT_OPTION 'add:tmpdir/func.o'
tv\[23\]: LDPT_OPTION 'claim:tmpdir/libtext.a'
tv\[24\]: LDPT_OPTION 'sym:_?text::0:0:0'
tv\[25\]: LDPT_OPTION 'add:tmpdir/text.o'
tv\[26\]: LDPT_NULL value 0x0 \(0\)
.*: LDPT_MESSAGE func@0x.*
.*: LDPT_API_VERSION value 0x1 \(1\)
.*: LDPT_GNU_LD_VERSION value 0x.*
.*: LDPT_LINKER_OUTPUT value 0x1 \(1\)
.*: LDPT_OUTPUT_NAME 'tmpdir/main.x'
.*: LDPT_REGISTER_CLAIM_FILE_HOOK func@0x.*
.*: LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK func@0x.*
.*: LDPT_REGISTER_CLEANUP_HOOK func@0x.*
.*: LDPT_ADD_SYMBOLS func@0x.*
.*: LDPT_GET_INPUT_FILE func@0x.*
.*: LDPT_RELEASE_INPUT_FILE func@0x.*
.*: LDPT_GET_SYMBOLS func@0x.*
.*: LDPT_GET_SYMBOLS_V2 func@0x.*
.*: LDPT_ADD_INPUT_FILE func@0x.*
.*: LDPT_ADD_INPUT_LIBRARY func@0x.*
.*: LDPT_SET_EXTRA_LIBRARY_PATH func@0x.*
.*: LDPT_OPTION 'registerclaimfile'
.*: LDPT_OPTION 'registerallsymbolsread'
.*: LDPT_OPTION 'registercleanup'
.*: LDPT_OPTION 'claim:tmpdir/func.o'
.*: LDPT_OPTION 'sym:_?func::0:0:0'
.*: LDPT_OPTION 'sym:_?func2::0:0:0'
.*: LDPT_OPTION 'dumpresolutions'
.*: LDPT_OPTION 'add:tmpdir/func.o'
.*: LDPT_OPTION 'claim:tmpdir/libtext.a'
.*: LDPT_OPTION 'sym:_?text::0:0:0'
.*: LDPT_OPTION 'add:tmpdir/text.o'
.*: LDPT_NULL value 0x0 \(0\)
#...
hook called: claim_file tmpdir/main.o \[@0/.* not claimed
hook called: claim_file tmpdir/func.o \[@0/.* CLAIMED
/ld-plugin/plugin-1.d
1,18 → 1,19
Hello from testplugin.
tv\[0\]: LDPT_MESSAGE func@0x.*
tv\[1\]: LDPT_API_VERSION value 0x1 \(1\)
tv\[2\]: LDPT_GNU_LD_VERSION value 0x.*
tv\[3\]: LDPT_LINKER_OUTPUT value 0x1 \(1\)
tv\[4\]: LDPT_OUTPUT_NAME 'tmpdir/main.x'
tv\[5\]: LDPT_REGISTER_CLAIM_FILE_HOOK func@0x.*
tv\[6\]: LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK func@0x.*
tv\[7\]: LDPT_REGISTER_CLEANUP_HOOK func@0x.*
tv\[8\]: LDPT_ADD_SYMBOLS func@0x.*
tv\[9\]: LDPT_GET_INPUT_FILE func@0x.*
tv\[10\]: LDPT_RELEASE_INPUT_FILE func@0x.*
tv\[11\]: LDPT_GET_SYMBOLS func@0x.*
tv\[12\]: LDPT_ADD_INPUT_FILE func@0x.*
tv\[13\]: LDPT_ADD_INPUT_LIBRARY func@0x.*
tv\[14\]: LDPT_SET_EXTRA_LIBRARY_PATH func@0x.*
tv\[15\]: LDPT_NULL value 0x0 \(0\)
.*: LDPT_MESSAGE func@0x.*
.*: LDPT_API_VERSION value 0x1 \(1\)
.*: LDPT_GNU_LD_VERSION value 0x.*
.*: LDPT_LINKER_OUTPUT value 0x1 \(1\)
.*: LDPT_OUTPUT_NAME 'tmpdir/main.x'
.*: LDPT_REGISTER_CLAIM_FILE_HOOK func@0x.*
.*: LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK func@0x.*
.*: LDPT_REGISTER_CLEANUP_HOOK func@0x.*
.*: LDPT_ADD_SYMBOLS func@0x.*
.*: LDPT_GET_INPUT_FILE func@0x.*
.*: LDPT_RELEASE_INPUT_FILE func@0x.*
.*: LDPT_GET_SYMBOLS func@0x.*
.*: LDPT_GET_SYMBOLS_V2 func@0x.*
.*: LDPT_ADD_INPUT_FILE func@0x.*
.*: LDPT_ADD_INPUT_LIBRARY func@0x.*
.*: LDPT_SET_EXTRA_LIBRARY_PATH func@0x.*
.*: LDPT_NULL value 0x0 \(0\)
#...
/ld-arm/ifunc-9.dd
16,7 → 16,7
#------------------------------------------------------------------------------
#------ f2's .plt entry
#------------------------------------------------------------------------------
9014: e28fc600 add ip, pc, #0
9014: e28fc600 add ip, pc, #0, 12
9018: e28cca07 add ip, ip, #28672 ; 0x7000
901c: e5bcfff0 ldr pc, \[ip, #4080\]! ; 0xff0
 
26,12 → 26,12
#------------------------------------------------------------------------------
#------ f1's .iplt entry
#------------------------------------------------------------------------------
9020: e28fc600 add ip, pc, #0
9020: e28fc600 add ip, pc, #0, 12
9024: e28cca07 add ip, ip, #28672 ; 0x7000
9028: e5bcffe8 ldr pc, \[ip, #4072\]! ; 0xfe8
 
0000902c <f3>:
902c: e28fc600 add ip, pc, #0
902c: e28fc600 add ip, pc, #0, 12
9030: e28cca07 add ip, ip, #28672 ; 0x7000
9034: e5bcffe0 ldr pc, \[ip, #4064\]! ; 0xfe0
 
/ld-arm/cortex-a8-fix-bl-rel-plt.d
10,8 → 10,8
8e08: e08fe00e add lr, pc, lr
8e0c: e5bef008 ldr pc, \[lr, #8\]!
8e10: 0000827c \.word 0x0000827c
8e14: e28fc600 add ip, pc, #0
8e18: e28cca08 add ip, ip, #32768 ; 0x8000
8e14: e28fc600 add ip, pc, #0, 12
8e18: e28cca08 add ip, ip, #8, 20 ; 0x8000
8e1c: e5bcf27c ldr pc, \[ip, #636\]! ; 0x27c
 
Disassembly of section \.text:
/ld-arm/ifunc-4.dd
21,7 → 21,7
#------------------------------------------------------------------------------
#------ atf2's .plt entry
#------------------------------------------------------------------------------
9018: e28fc600 add ip, pc, #0
9018: e28fc600 add ip, pc, #0, 12
901c: e28cca07 add ip, ip, #28672 ; 0x7000
9020: e5bcffec ldr pc, \[ip, #4076\]! ; 0xfec
#------------------------------------------------------------------------------
32,7 → 32,7
#------------------------------------------------------------------------------
#------ ttf2's .plt entry
#------------------------------------------------------------------------------
9028: e28fc600 add ip, pc, #0
9028: e28fc600 add ip, pc, #0, 12
902c: e28cca07 add ip, ip, #28672 ; 0x7000
9030: e5bcffe0 ldr pc, \[ip, #4064\]! ; 0xfe0
#------------------------------------------------------------------------------
43,19 → 43,19
#------------------------------------------------------------------------------
#------ tbf2's .plt entry
#------------------------------------------------------------------------------
9038: e28fc600 add ip, pc, #0
9038: e28fc600 add ip, pc, #0, 12
903c: e28cca07 add ip, ip, #28672 ; 0x7000
9040: e5bcffd4 ldr pc, \[ip, #4052\]! ; 0xfd4
#------------------------------------------------------------------------------
#------ taf2's .plt entry
#------------------------------------------------------------------------------
9044: e28fc600 add ip, pc, #0
9044: e28fc600 add ip, pc, #0, 12
9048: e28cca07 add ip, ip, #28672 ; 0x7000
904c: e5bcffcc ldr pc, \[ip, #4044\]! ; 0xfcc
#------------------------------------------------------------------------------
#------ aaf2's .plt entry
#------------------------------------------------------------------------------
9050: e28fc600 add ip, pc, #0
9050: e28fc600 add ip, pc, #0, 12
9054: e28cca07 add ip, ip, #28672 ; 0x7000
9058: e5bcffc4 ldr pc, \[ip, #4036\]! ; 0xfc4
#------------------------------------------------------------------------------
66,7 → 66,7
#------------------------------------------------------------------------------
#------ abf2's .plt entry
#------------------------------------------------------------------------------
9060: e28fc600 add ip, pc, #0
9060: e28fc600 add ip, pc, #0, 12
9064: e28cca07 add ip, ip, #28672 ; 0x7000
9068: e5bcffb8 ldr pc, \[ip, #4024\]! ; 0xfb8
 
76,7 → 76,7
#------------------------------------------------------------------------------
#------ aaf1's .iplt entry
#------------------------------------------------------------------------------
906c: e28fc600 add ip, pc, #0
906c: e28fc600 add ip, pc, #0, 12
9070: e28cca07 add ip, ip, #28672 ; 0x7000
9074: e5bcffb0 ldr pc, \[ip, #4016\]! ; 0xfb0
#------------------------------------------------------------------------------
87,7 → 87,7
#------------------------------------------------------------------------------
#------ atf1's .iplt entry
#------------------------------------------------------------------------------
907c: e28fc600 add ip, pc, #0
907c: e28fc600 add ip, pc, #0, 12
9080: e28cca07 add ip, ip, #28672 ; 0x7000
9084: e5bcffa4 ldr pc, \[ip, #4004\]! ; 0xfa4
#------------------------------------------------------------------------------
98,13 → 98,13
#------------------------------------------------------------------------------
#------ abf1's .iplt entry
#------------------------------------------------------------------------------
908c: e28fc600 add ip, pc, #0
908c: e28fc600 add ip, pc, #0, 12
9090: e28cca07 add ip, ip, #28672 ; 0x7000
9094: e5bcff98 ldr pc, \[ip, #3992\]! ; 0xf98
#------------------------------------------------------------------------------
#------ taf1's .iplt entry
#------------------------------------------------------------------------------
9098: e28fc600 add ip, pc, #0
9098: e28fc600 add ip, pc, #0, 12
909c: e28cca07 add ip, ip, #28672 ; 0x7000
90a0: e5bcff90 ldr pc, \[ip, #3984\]! ; 0xf90
#------------------------------------------------------------------------------
115,7 → 115,7
#------------------------------------------------------------------------------
#------ ttf1's .iplt entry
#------------------------------------------------------------------------------
90a8: e28fc600 add ip, pc, #0
90a8: e28fc600 add ip, pc, #0, 12
90ac: e28cca07 add ip, ip, #28672 ; 0x7000
90b0: e5bcff84 ldr pc, \[ip, #3972\]! ; 0xf84
#------------------------------------------------------------------------------
126,13 → 126,13
#------------------------------------------------------------------------------
#------ tbf1's .iplt entry
#------------------------------------------------------------------------------
90b8: e28fc600 add ip, pc, #0
90b8: e28fc600 add ip, pc, #0, 12
90bc: e28cca07 add ip, ip, #28672 ; 0x7000
90c0: e5bcff78 ldr pc, \[ip, #3960\]! ; 0xf78
#------------------------------------------------------------------------------
#------ aaf4's .iplt entry
#------------------------------------------------------------------------------
90c4: e28fc600 add ip, pc, #0
90c4: e28fc600 add ip, pc, #0, 12
90c8: e28cca07 add ip, ip, #28672 ; 0x7000
90cc: e5bcff70 ldr pc, \[ip, #3952\]! ; 0xf70
#------------------------------------------------------------------------------
143,7 → 143,7
#------------------------------------------------------------------------------
#------ atf3's .iplt entry
#------------------------------------------------------------------------------
90d4: e28fc600 add ip, pc, #0
90d4: e28fc600 add ip, pc, #0, 12
90d8: e28cca07 add ip, ip, #28672 ; 0x7000
90dc: e5bcff64 ldr pc, \[ip, #3940\]! ; 0xf64
#------------------------------------------------------------------------------
154,7 → 154,7
#------------------------------------------------------------------------------
#------ abf3's .iplt entry
#------------------------------------------------------------------------------
90e4: e28fc600 add ip, pc, #0
90e4: e28fc600 add ip, pc, #0, 12
90e8: e28cca07 add ip, ip, #28672 ; 0x7000
90ec: e5bcff58 ldr pc, \[ip, #3928\]! ; 0xf58
#------------------------------------------------------------------------------
165,7 → 165,7
#------------------------------------------------------------------------------
#------ ttf3's .iplt entry
#------------------------------------------------------------------------------
90f4: e28fc600 add ip, pc, #0
90f4: e28fc600 add ip, pc, #0, 12
90f8: e28cca07 add ip, ip, #28672 ; 0x7000
90fc: e5bcff4c ldr pc, \[ip, #3916\]! ; 0xf4c
#------------------------------------------------------------------------------
176,13 → 176,13
#------------------------------------------------------------------------------
#------ tbf3's .iplt entry
#------------------------------------------------------------------------------
9104: e28fc600 add ip, pc, #0
9104: e28fc600 add ip, pc, #0, 12
9108: e28cca07 add ip, ip, #28672 ; 0x7000
910c: e5bcff40 ldr pc, \[ip, #3904\]! ; 0xf40
#------------------------------------------------------------------------------
#------ taf3's .iplt entry
#------------------------------------------------------------------------------
9110: e28fc600 add ip, pc, #0
9110: e28fc600 add ip, pc, #0, 12
9114: e28cca07 add ip, ip, #28672 ; 0x7000
9118: e5bcff38 ldr pc, \[ip, #3896\]! ; 0xf38
#------------------------------------------------------------------------------
193,7 → 193,7
#------------------------------------------------------------------------------
#------ abf4's .iplt entry
#------------------------------------------------------------------------------
9120: e28fc600 add ip, pc, #0
9120: e28fc600 add ip, pc, #0, 12
9124: e28cca07 add ip, ip, #28672 ; 0x7000
9128: e5bcff2c ldr pc, \[ip, #3884\]! ; 0xf2c
#------------------------------------------------------------------------------
204,7 → 204,7
#------------------------------------------------------------------------------
#------ tbf4's .iplt entry
#------------------------------------------------------------------------------
9130: e28fc600 add ip, pc, #0
9130: e28fc600 add ip, pc, #0, 12
9134: e28cca07 add ip, ip, #28672 ; 0x7000
9138: e5bcff20 ldr pc, \[ip, #3872\]! ; 0xf20
#------------------------------------------------------------------------------
215,13 → 215,13
#------------------------------------------------------------------------------
#------ ttf4's .iplt entry
#------------------------------------------------------------------------------
9140: e28fc600 add ip, pc, #0
9140: e28fc600 add ip, pc, #0, 12
9144: e28cca07 add ip, ip, #28672 ; 0x7000
9148: e5bcff14 ldr pc, \[ip, #3860\]! ; 0xf14
#------------------------------------------------------------------------------
#------ aaf3's .iplt entry
#------------------------------------------------------------------------------
914c: e28fc600 add ip, pc, #0
914c: e28fc600 add ip, pc, #0, 12
9150: e28cca07 add ip, ip, #28672 ; 0x7000
9154: e5bcff0c ldr pc, \[ip, #3852\]! ; 0xf0c
#------------------------------------------------------------------------------
232,13 → 232,13
#------------------------------------------------------------------------------
#------ atf4's .iplt entry
#------------------------------------------------------------------------------
915c: e28fc600 add ip, pc, #0
915c: e28fc600 add ip, pc, #0, 12
9160: e28cca07 add ip, ip, #28672 ; 0x7000
9164: e5bcff00 ldr pc, \[ip, #3840\]! ; 0xf00
#------------------------------------------------------------------------------
#------ taf4's .iplt entry
#------------------------------------------------------------------------------
9168: e28fc600 add ip, pc, #0
9168: e28fc600 add ip, pc, #0, 12
916c: e28cca07 add ip, ip, #28672 ; 0x7000
9170: e5bcfef8 ldr pc, \[ip, #3832\]! ; 0xef8
 
/ld-arm/rodata-merge-map.ld
0,0 → 1,9
/* Script for ld testsuite */
OUTPUT_ARCH(arm)
SECTIONS
{
.rodata :
{
*(.rodata*)
}
}
/ld-arm/cortex-a8-fix-b-plt.d
12,8 → 12,8
8010: 00000ffc \.word 0x00000ffc
8014: 4778 bx pc
8016: 46c0 nop ; \(mov r8, r8\)
8018: e28fc600 add ip, pc, #0
801c: e28cca00 add ip, ip, #0
8018: e28fc600 add ip, pc, #0, 12
801c: e28cca00 add ip, ip, #0, 20
8020: e5bcfff8 ldr pc, \[ip, #4088\]! ; 0xff8
 
Disassembly of section \.text:
/ld-arm/ifunc-5.dd
8,19 → 8,19
#------------------------------------------------------------------------------
#------ f1's .iplt entry
#------------------------------------------------------------------------------
9000: e28fc600 add ip, pc, #0
9004: e28cca08 add ip, ip, #32768 ; 0x8000
9000: e28fc600 add ip, pc, #0, 12
9004: e28cca08 add ip, ip, #8, 20 ; 0x8000
9008: e5bcf004 ldr pc, \[ip, #4\]!
#------------------------------------------------------------------------------
#------ f3's .iplt entry
#------------------------------------------------------------------------------
900c: e28fc600 add ip, pc, #0
900c: e28fc600 add ip, pc, #0, 12
9010: e28cca07 add ip, ip, #28672 ; 0x7000
9014: e5bcfffc ldr pc, \[ip, #4092\]! ; 0xffc
#------------------------------------------------------------------------------
#------ f2's .iplt entry
#------------------------------------------------------------------------------
9018: e28fc600 add ip, pc, #0
9018: e28fc600 add ip, pc, #0, 12
901c: e28cca07 add ip, ip, #28672 ; 0x7000
9020: e5bcfff4 ldr pc, \[ip, #4084\]! ; 0xff4
 
/ld-arm/ifunc-6.dd
13,13 → 13,13
#------------------------------------------------------------------------------
#------ f3's .iplt entry
#------------------------------------------------------------------------------
9004: e28fc600 add ip, pc, #0
9008: e28cca08 add ip, ip, #32768 ; 0x8000
9004: e28fc600 add ip, pc, #0, 12
9008: e28cca08 add ip, ip, #8, 20 ; 0x8000
900c: e5bcf000 ldr pc, \[ip, #0\]!
#------------------------------------------------------------------------------
#------ f2's .iplt entry
#------------------------------------------------------------------------------
9010: e28fc600 add ip, pc, #0
9010: e28fc600 add ip, pc, #0, 12
9014: e28cca07 add ip, ip, #28672 ; 0x7000
9018: e5bcfff8 ldr pc, \[ip, #4088\]! ; 0xff8
#------------------------------------------------------------------------------
30,13 → 30,13
#------------------------------------------------------------------------------
#------ f4's .iplt entry
#------------------------------------------------------------------------------
9020: e28fc600 add ip, pc, #0
9020: e28fc600 add ip, pc, #0, 12
9024: e28cca07 add ip, ip, #28672 ; 0x7000
9028: e5bcffec ldr pc, \[ip, #4076\]! ; 0xfec
#------------------------------------------------------------------------------
#------ f1's .iplt entry
#------------------------------------------------------------------------------
902c: e28fc600 add ip, pc, #0
902c: e28fc600 add ip, pc, #0, 12
9030: e28cca07 add ip, ip, #28672 ; 0x7000
9034: e5bcffe4 ldr pc, \[ip, #4068\]! ; 0xfe4
 
/ld-arm/jump-reloc-veneers.s
9,4 → 9,4
.section destsect, "x"
.thumb_func
dest:
b dest
b.n dest
/ld-arm/ifunc-1.dd
8,17 → 8,17
#------------------------------------------------------------------------------
#------ f1's .iplt entry
#------------------------------------------------------------------------------
9000: e28fc600 add ip, pc, #0
9004: e28cca08 add ip, ip, #32768 ; 0x8000
9000: e28fc600 add ip, pc, #0, 12
9004: e28cca08 add ip, ip, #8, 20 ; 0x8000
9008: e5bcf004 ldr pc, \[ip, #4\]!
 
0000900c <f3>:
900c: e28fc600 add ip, pc, #0
900c: e28fc600 add ip, pc, #0, 12
9010: e28cca07 add ip, ip, #28672 ; 0x7000
9014: e5bcfffc ldr pc, \[ip, #4092\]! ; 0xffc
 
00009018 <f2>:
9018: e28fc600 add ip, pc, #0
9018: e28fc600 add ip, pc, #0, 12
901c: e28cca07 add ip, ip, #28672 ; 0x7000
9020: e5bcfff4 ldr pc, \[ip, #4084\]! ; 0xff4
 
/ld-arm/ifunc-14.dd
16,13 → 16,13
#------------------------------------------------------------------------------
#------ f2t's .plt entry
#------------------------------------------------------------------------------
9014: e28fc600 add ip, pc, #0
9014: e28fc600 add ip, pc, #0, 12
9018: e28cca07 add ip, ip, #28672 ; 0x7000
901c: e5bcfff0 ldr pc, \[ip, #4080\]! ; 0xff0
#------------------------------------------------------------------------------
#------ f2's .plt entry
#------------------------------------------------------------------------------
9020: e28fc600 add ip, pc, #0
9020: e28fc600 add ip, pc, #0, 12
9024: e28cca07 add ip, ip, #28672 ; 0x7000
9028: e5bcffe8 ldr pc, \[ip, #4072\]! ; 0xfe8
 
32,23 → 32,23
#------------------------------------------------------------------------------
#------ f1's .iplt entry
#------------------------------------------------------------------------------
902c: e28fc600 add ip, pc, #0
902c: e28fc600 add ip, pc, #0, 12
9030: e28cca07 add ip, ip, #28672 ; 0x7000
9034: e5bcffe0 ldr pc, \[ip, #4064\]! ; 0xfe0
#------------------------------------------------------------------------------
#------ f1t's .iplt entry
#------------------------------------------------------------------------------
9038: e28fc600 add ip, pc, #0
9038: e28fc600 add ip, pc, #0, 12
903c: e28cca07 add ip, ip, #28672 ; 0x7000
9040: e5bcffd8 ldr pc, \[ip, #4056\]! ; 0xfd8
 
00009044 <f3>:
9044: e28fc600 add ip, pc, #0
9044: e28fc600 add ip, pc, #0, 12
9048: e28cca07 add ip, ip, #28672 ; 0x7000
904c: e5bcffd0 ldr pc, \[ip, #4048\]! ; 0xfd0
 
00009050 <f3t>:
9050: e28fc600 add ip, pc, #0
9050: e28fc600 add ip, pc, #0, 12
9054: e28cca07 add ip, ip, #28672 ; 0x7000
9058: e5bcffc8 ldr pc, \[ip, #4040\]! ; 0xfc8
 
/ld-arm/ifunc-7.dd
16,13 → 16,13
#------------------------------------------------------------------------------
#------ f2's .plt entry
#------------------------------------------------------------------------------
9014: e28fc600 add ip, pc, #0
9014: e28fc600 add ip, pc, #0, 12
9018: e28cca07 add ip, ip, #28672 ; 0x7000
901c: e5bcfff0 ldr pc, \[ip, #4080\]! ; 0xff0
#------------------------------------------------------------------------------
#------ f4's .plt entry
#------------------------------------------------------------------------------
9020: e28fc600 add ip, pc, #0
9020: e28fc600 add ip, pc, #0, 12
9024: e28cca07 add ip, ip, #28672 ; 0x7000
9028: e5bcffe8 ldr pc, \[ip, #4072\]! ; 0xfe8
 
32,13 → 32,13
#------------------------------------------------------------------------------
#------ f1's .iplt entry
#------------------------------------------------------------------------------
902c: e28fc600 add ip, pc, #0
902c: e28fc600 add ip, pc, #0, 12
9030: e28cca07 add ip, ip, #28672 ; 0x7000
9034: e5bcffe0 ldr pc, \[ip, #4064\]! ; 0xfe0
#------------------------------------------------------------------------------
#------ f3's .iplt entry
#------------------------------------------------------------------------------
9038: e28fc600 add ip, pc, #0
9038: e28fc600 add ip, pc, #0, 12
903c: e28cca07 add ip, ip, #28672 ; 0x7000
9040: e5bcffd8 ldr pc, \[ip, #4056\]! ; 0xfd8
 
/ld-arm/rodata-merge-map1.s
0,0 → 1,8
@ Test to ensure that no nameless mapping symbol is inserted
@ within a merged section.
@ This file contains the 1st contribution, which is expected to
@ generate a $d symbol at its beginning.
 
.section .rodata.str1.1,"aMS",%progbits,1
.LC0:
.string "Hello world"
/ld-arm/ifunc-2.dd
8,13 → 8,13
#------------------------------------------------------------------------------
#------ f1's .iplt entry
#------------------------------------------------------------------------------
9000: e28fc600 add ip, pc, #0
9004: e28cca08 add ip, ip, #32768 ; 0x8000
9000: e28fc600 add ip, pc, #0, 12
9004: e28cca08 add ip, ip, #8, 20 ; 0x8000
9008: e5bcf004 ldr pc, \[ip, #4\]!
#------------------------------------------------------------------------------
#------ f2's .iplt entry
#------------------------------------------------------------------------------
900c: e28fc600 add ip, pc, #0
900c: e28fc600 add ip, pc, #0, 12
9010: e28cca07 add ip, ip, #28672 ; 0x7000
9014: e5bcfffc ldr pc, \[ip, #4092\]! ; 0xffc
#------------------------------------------------------------------------------
25,7 → 25,7
#------------------------------------------------------------------------------
#------ f3's .iplt entry
#------------------------------------------------------------------------------
901c: e28fc600 add ip, pc, #0
901c: e28fc600 add ip, pc, #0, 12
9020: e28cca07 add ip, ip, #28672 ; 0x7000
9024: e5bcfff0 ldr pc, \[ip, #4080\]! ; 0xff0
#------------------------------------------------------------------------------
36,7 → 36,7
#------------------------------------------------------------------------------
#------ f4's .iplt entry
#------------------------------------------------------------------------------
902c: e28fc600 add ip, pc, #0
902c: e28fc600 add ip, pc, #0, 12
9030: e28cca07 add ip, ip, #28672 ; 0x7000
9034: e5bcffe4 ldr pc, \[ip, #4068\]! ; 0xfe4
#------------------------------------------------------------------------------
46,12 → 46,12
903a: 46c0 nop ; \(mov r8, r8\)
 
0000903c <f7>:
903c: e28fc600 add ip, pc, #0
903c: e28fc600 add ip, pc, #0, 12
9040: e28cca07 add ip, ip, #28672 ; 0x7000
9044: e5bcffd8 ldr pc, \[ip, #4056\]! ; 0xfd8
 
00009048 <f5>:
9048: e28fc600 add ip, pc, #0
9048: e28fc600 add ip, pc, #0, 12
904c: e28cca07 add ip, ip, #28672 ; 0x7000
9050: e5bcffd0 ldr pc, \[ip, #4048\]! ; 0xfd0
#------------------------------------------------------------------------------
61,12 → 61,12
9056: 46c0 nop ; \(mov r8, r8\)
 
00009058 <f8>:
9058: e28fc600 add ip, pc, #0
9058: e28fc600 add ip, pc, #0, 12
905c: e28cca07 add ip, ip, #28672 ; 0x7000
9060: e5bcffc4 ldr pc, \[ip, #4036\]! ; 0xfc4
 
00009064 <f6>:
9064: e28fc600 add ip, pc, #0
9064: e28fc600 add ip, pc, #0, 12
9068: e28cca07 add ip, ip, #28672 ; 0x7000
906c: e5bcffbc ldr pc, \[ip, #4028\]! ; 0xfbc
 
/ld-arm/cortex-a8-fix-blx-plt.d
10,8 → 10,8
8008: e08fe00e add lr, pc, lr
800c: e5bef008 ldr pc, \[lr, #8\]!
8010: 00000ffc \.word 0x00000ffc
8014: e28fc600 add ip, pc, #0
8018: e28cca00 add ip, ip, #0
8014: e28fc600 add ip, pc, #0, 12
8018: e28cca00 add ip, ip, #0, 20
801c: e5bcfffc ldr pc, \[ip, #4092\]! ; 0xffc
 
Disassembly of section \.text:
/ld-arm/ifunc-15.dd
16,13 → 16,13
#------------------------------------------------------------------------------
#------ f2t's .plt entry
#------------------------------------------------------------------------------
9014: e28fc600 add ip, pc, #0
9014: e28fc600 add ip, pc, #0, 12
9018: e28cca07 add ip, ip, #28672 ; 0x7000
901c: e5bcfff0 ldr pc, \[ip, #4080\]! ; 0xff0
#------------------------------------------------------------------------------
#------ f2's .plt entry
#------------------------------------------------------------------------------
9020: e28fc600 add ip, pc, #0
9020: e28fc600 add ip, pc, #0, 12
9024: e28cca07 add ip, ip, #28672 ; 0x7000
9028: e5bcffe8 ldr pc, \[ip, #4072\]! ; 0xfe8
 
32,23 → 32,23
#------------------------------------------------------------------------------
#------ f1's .iplt entry
#------------------------------------------------------------------------------
902c: e28fc600 add ip, pc, #0
902c: e28fc600 add ip, pc, #0, 12
9030: e28cca07 add ip, ip, #28672 ; 0x7000
9034: e5bcffe0 ldr pc, \[ip, #4064\]! ; 0xfe0
#------------------------------------------------------------------------------
#------ f1t's .iplt entry
#------------------------------------------------------------------------------
9038: e28fc600 add ip, pc, #0
9038: e28fc600 add ip, pc, #0, 12
903c: e28cca07 add ip, ip, #28672 ; 0x7000
9040: e5bcffd8 ldr pc, \[ip, #4056\]! ; 0xfd8
 
00009044 <f3>:
9044: e28fc600 add ip, pc, #0
9044: e28fc600 add ip, pc, #0, 12
9048: e28cca07 add ip, ip, #28672 ; 0x7000
904c: e5bcffd0 ldr pc, \[ip, #4048\]! ; 0xfd0
 
00009050 <f3t>:
9050: e28fc600 add ip, pc, #0
9050: e28fc600 add ip, pc, #0, 12
9054: e28cca07 add ip, ip, #28672 ; 0x7000
9058: e5bcffc8 ldr pc, \[ip, #4040\]! ; 0xfc8
 
/ld-arm/rodata-merge-map.sym
0,0 → 1,8
 
Symbol table '.symtab' contains 5 entries:
Num: Value Size Type Bind Vis Ndx Name
0: 00000000 0 NOTYPE LOCAL DEFAULT UND
1: 00000000 0 SECTION LOCAL DEFAULT 1
2: 00000000 0 SECTION LOCAL DEFAULT 2
3: 00000000 0 NOTYPE LOCAL DEFAULT 1 \$d
4: 0000000c 0 NOTYPE LOCAL DEFAULT 1 \$d
/ld-arm/rodata-merge-map2.s
0,0 → 1,9
@ This file contains the 2nd contribution, which is expected to
@ be fully merged into the 1st contribution (from
@ rodata-merge-map1.s), and generate no mapping symbol (which
@ would otherwise be converted in a symbol table entry with no
@ name).
 
.section .rodata.str1.1,"aMS",%progbits,1
.LC0:
.string "world"
/ld-arm/ifunc-10.dd
21,13 → 21,13
#------------------------------------------------------------------------------
#------ atf2's .plt entry
#------------------------------------------------------------------------------
9018: e28fc600 add ip, pc, #0
9018: e28fc600 add ip, pc, #0, 12
901c: e28cca07 add ip, ip, #28672 ; 0x7000
9020: e5bcffec ldr pc, \[ip, #4076\]! ; 0xfec
#------------------------------------------------------------------------------
#------ aaf4's .plt entry
#------------------------------------------------------------------------------
9024: e28fc600 add ip, pc, #0
9024: e28fc600 add ip, pc, #0, 12
9028: e28cca07 add ip, ip, #28672 ; 0x7000
902c: e5bcffe4 ldr pc, \[ip, #4068\]! ; 0xfe4
#------------------------------------------------------------------------------
38,7 → 38,7
#------------------------------------------------------------------------------
#------ ttf2's .plt entry
#------------------------------------------------------------------------------
9034: e28fc600 add ip, pc, #0
9034: e28fc600 add ip, pc, #0, 12
9038: e28cca07 add ip, ip, #28672 ; 0x7000
903c: e5bcffd8 ldr pc, \[ip, #4056\]! ; 0xfd8
#------------------------------------------------------------------------------
49,19 → 49,19
#------------------------------------------------------------------------------
#------ tbf2's .plt entry
#------------------------------------------------------------------------------
9044: e28fc600 add ip, pc, #0
9044: e28fc600 add ip, pc, #0, 12
9048: e28cca07 add ip, ip, #28672 ; 0x7000
904c: e5bcffcc ldr pc, \[ip, #4044\]! ; 0xfcc
#------------------------------------------------------------------------------
#------ taf2's .plt entry
#------------------------------------------------------------------------------
9050: e28fc600 add ip, pc, #0
9050: e28fc600 add ip, pc, #0, 12
9054: e28cca07 add ip, ip, #28672 ; 0x7000
9058: e5bcffc4 ldr pc, \[ip, #4036\]! ; 0xfc4
#------------------------------------------------------------------------------
#------ aaf2's .plt entry
#------------------------------------------------------------------------------
905c: e28fc600 add ip, pc, #0
905c: e28fc600 add ip, pc, #0, 12
9060: e28cca07 add ip, ip, #28672 ; 0x7000
9064: e5bcffbc ldr pc, \[ip, #4028\]! ; 0xfbc
#------------------------------------------------------------------------------
72,7 → 72,7
#------------------------------------------------------------------------------
#------ abf4's .plt entry
#------------------------------------------------------------------------------
906c: e28fc600 add ip, pc, #0
906c: e28fc600 add ip, pc, #0, 12
9070: e28cca07 add ip, ip, #28672 ; 0x7000
9074: e5bcffb0 ldr pc, \[ip, #4016\]! ; 0xfb0
#------------------------------------------------------------------------------
83,7 → 83,7
#------------------------------------------------------------------------------
#------ tbf4's .plt entry
#------------------------------------------------------------------------------
907c: e28fc600 add ip, pc, #0
907c: e28fc600 add ip, pc, #0, 12
9080: e28cca07 add ip, ip, #28672 ; 0x7000
9084: e5bcffa4 ldr pc, \[ip, #4004\]! ; 0xfa4
#------------------------------------------------------------------------------
94,7 → 94,7
#------------------------------------------------------------------------------
#------ ttf4's .plt entry
#------------------------------------------------------------------------------
908c: e28fc600 add ip, pc, #0
908c: e28fc600 add ip, pc, #0, 12
9090: e28cca07 add ip, ip, #28672 ; 0x7000
9094: e5bcff98 ldr pc, \[ip, #3992\]! ; 0xf98
#------------------------------------------------------------------------------
105,13 → 105,13
#------------------------------------------------------------------------------
#------ atf4's .plt entry
#------------------------------------------------------------------------------
909c: e28fc600 add ip, pc, #0
909c: e28fc600 add ip, pc, #0, 12
90a0: e28cca07 add ip, ip, #28672 ; 0x7000
90a4: e5bcff8c ldr pc, \[ip, #3980\]! ; 0xf8c
#------------------------------------------------------------------------------
#------ taf4's .plt entry
#------------------------------------------------------------------------------
90a8: e28fc600 add ip, pc, #0
90a8: e28fc600 add ip, pc, #0, 12
90ac: e28cca07 add ip, ip, #28672 ; 0x7000
90b0: e5bcff84 ldr pc, \[ip, #3972\]! ; 0xf84
#------------------------------------------------------------------------------
122,7 → 122,7
#------------------------------------------------------------------------------
#------ abf2's .plt entry
#------------------------------------------------------------------------------
90b8: e28fc600 add ip, pc, #0
90b8: e28fc600 add ip, pc, #0, 12
90bc: e28cca07 add ip, ip, #28672 ; 0x7000
90c0: e5bcff78 ldr pc, \[ip, #3960\]! ; 0xf78
 
132,7 → 132,7
#------------------------------------------------------------------------------
#------ aaf1's .iplt entry
#------------------------------------------------------------------------------
90c4: e28fc600 add ip, pc, #0
90c4: e28fc600 add ip, pc, #0, 12
90c8: e28cca07 add ip, ip, #28672 ; 0x7000
90cc: e5bcff70 ldr pc, \[ip, #3952\]! ; 0xf70
#------------------------------------------------------------------------------
143,7 → 143,7
#------------------------------------------------------------------------------
#------ atf1's .iplt entry
#------------------------------------------------------------------------------
90d4: e28fc600 add ip, pc, #0
90d4: e28fc600 add ip, pc, #0, 12
90d8: e28cca07 add ip, ip, #28672 ; 0x7000
90dc: e5bcff64 ldr pc, \[ip, #3940\]! ; 0xf64
#------------------------------------------------------------------------------
154,13 → 154,13
#------------------------------------------------------------------------------
#------ abf1's .iplt entry
#------------------------------------------------------------------------------
90e4: e28fc600 add ip, pc, #0
90e4: e28fc600 add ip, pc, #0, 12
90e8: e28cca07 add ip, ip, #28672 ; 0x7000
90ec: e5bcff58 ldr pc, \[ip, #3928\]! ; 0xf58
#------------------------------------------------------------------------------
#------ taf1's .iplt entry
#------------------------------------------------------------------------------
90f0: e28fc600 add ip, pc, #0
90f0: e28fc600 add ip, pc, #0, 12
90f4: e28cca07 add ip, ip, #28672 ; 0x7000
90f8: e5bcff50 ldr pc, \[ip, #3920\]! ; 0xf50
#------------------------------------------------------------------------------
171,7 → 171,7
#------------------------------------------------------------------------------
#------ ttf1's .iplt entry
#------------------------------------------------------------------------------
9100: e28fc600 add ip, pc, #0
9100: e28fc600 add ip, pc, #0, 12
9104: e28cca07 add ip, ip, #28672 ; 0x7000
9108: e5bcff44 ldr pc, \[ip, #3908\]! ; 0xf44
#------------------------------------------------------------------------------
182,7 → 182,7
#------------------------------------------------------------------------------
#------ tbf1's .iplt entry
#------------------------------------------------------------------------------
9110: e28fc600 add ip, pc, #0
9110: e28fc600 add ip, pc, #0, 12
9114: e28cca07 add ip, ip, #28672 ; 0x7000
9118: e5bcff38 ldr pc, \[ip, #3896\]! ; 0xf38
#------------------------------------------------------------------------------
192,7 → 192,7
911e: 46c0 nop ; \(mov r8, r8\)
 
00009120 <atf3>:
9120: e28fc600 add ip, pc, #0
9120: e28fc600 add ip, pc, #0, 12
9124: e28cca07 add ip, ip, #28672 ; 0x7000
9128: e5bcff2c ldr pc, \[ip, #3884\]! ; 0xf2c
#------------------------------------------------------------------------------
202,7 → 202,7
912e: 46c0 nop ; \(mov r8, r8\)
 
00009130 <abf3>:
9130: e28fc600 add ip, pc, #0
9130: e28fc600 add ip, pc, #0, 12
9134: e28cca07 add ip, ip, #28672 ; 0x7000
9138: e5bcff20 ldr pc, \[ip, #3872\]! ; 0xf20
#------------------------------------------------------------------------------
212,7 → 212,7
913e: 46c0 nop ; \(mov r8, r8\)
 
00009140 <ttf3>:
9140: e28fc600 add ip, pc, #0
9140: e28fc600 add ip, pc, #0, 12
9144: e28cca07 add ip, ip, #28672 ; 0x7000
9148: e5bcff14 ldr pc, \[ip, #3860\]! ; 0xf14
#------------------------------------------------------------------------------
222,17 → 222,17
914e: 46c0 nop ; \(mov r8, r8\)
 
00009150 <tbf3>:
9150: e28fc600 add ip, pc, #0
9150: e28fc600 add ip, pc, #0, 12
9154: e28cca07 add ip, ip, #28672 ; 0x7000
9158: e5bcff08 ldr pc, \[ip, #3848\]! ; 0xf08
 
0000915c <taf3>:
915c: e28fc600 add ip, pc, #0
915c: e28fc600 add ip, pc, #0, 12
9160: e28cca07 add ip, ip, #28672 ; 0x7000
9164: e5bcff00 ldr pc, \[ip, #3840\]! ; 0xf00
 
00009168 <aaf3>:
9168: e28fc600 add ip, pc, #0
9168: e28fc600 add ip, pc, #0, 12
916c: e28cca07 add ip, ip, #28672 ; 0x7000
9170: e5bcfef8 ldr pc, \[ip, #3832\]! ; 0xef8
 
/ld-arm/arm-elf.exp
323,6 → 323,9
{"Data only mapping symbols" "-T data-only-map.ld -Map map" "" {data-only-map.s}
{{objdump -dr data-only-map.d}}
"data-only-map"}
{"Data only mapping symbols for merged sections" "-T rodata-merge-map.ld" "" {rodata-merge-map1.s rodata-merge-map2.s rodata-merge-map3.s}
{{readelf -s rodata-merge-map.sym}}
"rodata-merge-map"}
{"GOT relocations in executables (setup)" "-shared"
"" {exec-got-1a.s}
{}
/ld-arm/ifunc-8.dd
21,13 → 21,13
#------------------------------------------------------------------------------
#------ atf2's .plt entry
#------------------------------------------------------------------------------
9018: e28fc600 add ip, pc, #0
9018: e28fc600 add ip, pc, #0, 12
901c: e28cca07 add ip, ip, #28672 ; 0x7000
9020: e5bcffec ldr pc, \[ip, #4076\]! ; 0xfec
#------------------------------------------------------------------------------
#------ aaf4's .plt entry
#------------------------------------------------------------------------------
9024: e28fc600 add ip, pc, #0
9024: e28fc600 add ip, pc, #0, 12
9028: e28cca07 add ip, ip, #28672 ; 0x7000
902c: e5bcffe4 ldr pc, \[ip, #4068\]! ; 0xfe4
#------------------------------------------------------------------------------
38,7 → 38,7
#------------------------------------------------------------------------------
#------ ttf2's .plt entry
#------------------------------------------------------------------------------
9034: e28fc600 add ip, pc, #0
9034: e28fc600 add ip, pc, #0, 12
9038: e28cca07 add ip, ip, #28672 ; 0x7000
903c: e5bcffd8 ldr pc, \[ip, #4056\]! ; 0xfd8
#------------------------------------------------------------------------------
49,19 → 49,19
#------------------------------------------------------------------------------
#------ tbf2's .plt entry
#------------------------------------------------------------------------------
9044: e28fc600 add ip, pc, #0
9044: e28fc600 add ip, pc, #0, 12
9048: e28cca07 add ip, ip, #28672 ; 0x7000
904c: e5bcffcc ldr pc, \[ip, #4044\]! ; 0xfcc
#------------------------------------------------------------------------------
#------ taf2's .plt entry
#------------------------------------------------------------------------------
9050: e28fc600 add ip, pc, #0
9050: e28fc600 add ip, pc, #0, 12
9054: e28cca07 add ip, ip, #28672 ; 0x7000
9058: e5bcffc4 ldr pc, \[ip, #4036\]! ; 0xfc4
#------------------------------------------------------------------------------
#------ aaf2's .plt entry
#------------------------------------------------------------------------------
905c: e28fc600 add ip, pc, #0
905c: e28fc600 add ip, pc, #0, 12
9060: e28cca07 add ip, ip, #28672 ; 0x7000
9064: e5bcffbc ldr pc, \[ip, #4028\]! ; 0xfbc
#------------------------------------------------------------------------------
72,7 → 72,7
#------------------------------------------------------------------------------
#------ abf4's .plt entry
#------------------------------------------------------------------------------
906c: e28fc600 add ip, pc, #0
906c: e28fc600 add ip, pc, #0, 12
9070: e28cca07 add ip, ip, #28672 ; 0x7000
9074: e5bcffb0 ldr pc, \[ip, #4016\]! ; 0xfb0
#------------------------------------------------------------------------------
83,7 → 83,7
#------------------------------------------------------------------------------
#------ tbf4's .plt entry
#------------------------------------------------------------------------------
907c: e28fc600 add ip, pc, #0
907c: e28fc600 add ip, pc, #0, 12
9080: e28cca07 add ip, ip, #28672 ; 0x7000
9084: e5bcffa4 ldr pc, \[ip, #4004\]! ; 0xfa4
#------------------------------------------------------------------------------
94,7 → 94,7
#------------------------------------------------------------------------------
#------ ttf4's .plt entry
#------------------------------------------------------------------------------
908c: e28fc600 add ip, pc, #0
908c: e28fc600 add ip, pc, #0, 12
9090: e28cca07 add ip, ip, #28672 ; 0x7000
9094: e5bcff98 ldr pc, \[ip, #3992\]! ; 0xf98
#------------------------------------------------------------------------------
105,13 → 105,13
#------------------------------------------------------------------------------
#------ atf4's .plt entry
#------------------------------------------------------------------------------
909c: e28fc600 add ip, pc, #0
909c: e28fc600 add ip, pc, #0, 12
90a0: e28cca07 add ip, ip, #28672 ; 0x7000
90a4: e5bcff8c ldr pc, \[ip, #3980\]! ; 0xf8c
#------------------------------------------------------------------------------
#------ taf4's .plt entry
#------------------------------------------------------------------------------
90a8: e28fc600 add ip, pc, #0
90a8: e28fc600 add ip, pc, #0, 12
90ac: e28cca07 add ip, ip, #28672 ; 0x7000
90b0: e5bcff84 ldr pc, \[ip, #3972\]! ; 0xf84
#------------------------------------------------------------------------------
122,7 → 122,7
#------------------------------------------------------------------------------
#------ abf2's .plt entry
#------------------------------------------------------------------------------
90b8: e28fc600 add ip, pc, #0
90b8: e28fc600 add ip, pc, #0, 12
90bc: e28cca07 add ip, ip, #28672 ; 0x7000
90c0: e5bcff78 ldr pc, \[ip, #3960\]! ; 0xf78
 
132,7 → 132,7
#------------------------------------------------------------------------------
#------ aaf1's .iplt entry
#------------------------------------------------------------------------------
90c4: e28fc600 add ip, pc, #0
90c4: e28fc600 add ip, pc, #0, 12
90c8: e28cca07 add ip, ip, #28672 ; 0x7000
90cc: e5bcff70 ldr pc, \[ip, #3952\]! ; 0xf70
#------------------------------------------------------------------------------
143,7 → 143,7
#------------------------------------------------------------------------------
#------ atf1's .iplt entry
#------------------------------------------------------------------------------
90d4: e28fc600 add ip, pc, #0
90d4: e28fc600 add ip, pc, #0, 12
90d8: e28cca07 add ip, ip, #28672 ; 0x7000
90dc: e5bcff64 ldr pc, \[ip, #3940\]! ; 0xf64
#------------------------------------------------------------------------------
154,13 → 154,13
#------------------------------------------------------------------------------
#------ abf1's .iplt entry
#------------------------------------------------------------------------------
90e4: e28fc600 add ip, pc, #0
90e4: e28fc600 add ip, pc, #0, 12
90e8: e28cca07 add ip, ip, #28672 ; 0x7000
90ec: e5bcff58 ldr pc, \[ip, #3928\]! ; 0xf58
#------------------------------------------------------------------------------
#------ taf1's .iplt entry
#------------------------------------------------------------------------------
90f0: e28fc600 add ip, pc, #0
90f0: e28fc600 add ip, pc, #0, 12
90f4: e28cca07 add ip, ip, #28672 ; 0x7000
90f8: e5bcff50 ldr pc, \[ip, #3920\]! ; 0xf50
#------------------------------------------------------------------------------
171,7 → 171,7
#------------------------------------------------------------------------------
#------ ttf1's .iplt entry
#------------------------------------------------------------------------------
9100: e28fc600 add ip, pc, #0
9100: e28fc600 add ip, pc, #0, 12
9104: e28cca07 add ip, ip, #28672 ; 0x7000
9108: e5bcff44 ldr pc, \[ip, #3908\]! ; 0xf44
#------------------------------------------------------------------------------
182,7 → 182,7
#------------------------------------------------------------------------------
#------ tbf1's .iplt entry
#------------------------------------------------------------------------------
9110: e28fc600 add ip, pc, #0
9110: e28fc600 add ip, pc, #0, 12
9114: e28cca07 add ip, ip, #28672 ; 0x7000
9118: e5bcff38 ldr pc, \[ip, #3896\]! ; 0xf38
#------------------------------------------------------------------------------
193,7 → 193,7
#------------------------------------------------------------------------------
#------ atf3's .iplt entry
#------------------------------------------------------------------------------
9120: e28fc600 add ip, pc, #0
9120: e28fc600 add ip, pc, #0, 12
9124: e28cca07 add ip, ip, #28672 ; 0x7000
9128: e5bcff2c ldr pc, \[ip, #3884\]! ; 0xf2c
#------------------------------------------------------------------------------
204,7 → 204,7
#------------------------------------------------------------------------------
#------ abf3's .iplt entry
#------------------------------------------------------------------------------
9130: e28fc600 add ip, pc, #0
9130: e28fc600 add ip, pc, #0, 12
9134: e28cca07 add ip, ip, #28672 ; 0x7000
9138: e5bcff20 ldr pc, \[ip, #3872\]! ; 0xf20
#------------------------------------------------------------------------------
215,7 → 215,7
#------------------------------------------------------------------------------
#------ ttf3's .iplt entry
#------------------------------------------------------------------------------
9140: e28fc600 add ip, pc, #0
9140: e28fc600 add ip, pc, #0, 12
9144: e28cca07 add ip, ip, #28672 ; 0x7000
9148: e5bcff14 ldr pc, \[ip, #3860\]! ; 0xf14
#------------------------------------------------------------------------------
226,19 → 226,19
#------------------------------------------------------------------------------
#------ tbf3's .iplt entry
#------------------------------------------------------------------------------
9150: e28fc600 add ip, pc, #0
9150: e28fc600 add ip, pc, #0, 12
9154: e28cca07 add ip, ip, #28672 ; 0x7000
9158: e5bcff08 ldr pc, \[ip, #3848\]! ; 0xf08
#------------------------------------------------------------------------------
#------ taf3's .iplt entry
#------------------------------------------------------------------------------
915c: e28fc600 add ip, pc, #0
915c: e28fc600 add ip, pc, #0, 12
9160: e28cca07 add ip, ip, #28672 ; 0x7000
9164: e5bcff00 ldr pc, \[ip, #3840\]! ; 0xf00
#------------------------------------------------------------------------------
#------ aaf3's .iplt entry
#------------------------------------------------------------------------------
9168: e28fc600 add ip, pc, #0
9168: e28fc600 add ip, pc, #0, 12
916c: e28cca07 add ip, ip, #28672 ; 0x7000
9170: e5bcfef8 ldr pc, \[ip, #3832\]! ; 0xef8
 
/ld-arm/cortex-a8-fix-bcc-plt.d
12,7 → 12,7
8010: 00001004 \.word 0x00001004
8014: 4778 bx pc
8016: 46c0 nop ; \(mov r8, r8\)
8018: e28fc600 add ip, pc, #0
8018: e28fc600 add ip, pc, #0, 12
801c: e28cca01 add ip, ip, #4096 ; 0x1000
8020: e5bcf000 ldr pc, \[ip, #0\]!
 
/ld-arm/cortex-a8-fix-bl-plt.d
10,8 → 10,8
8008: e08fe00e add lr, pc, lr
800c: e5bef008 ldr pc, \[lr, #8\]!
8010: 00000ffc \.word 0x00000ffc
8014: e28fc600 add ip, pc, #0
8018: e28cca00 add ip, ip, #0
8014: e28fc600 add ip, pc, #0, 12
8018: e28cca00 add ip, ip, #0, 20
801c: e5bcfffc ldr pc, \[ip, #4092\]! ; 0xffc
 
Disassembly of section \.text:
/ld-arm/ifunc-3.dd
16,7 → 16,7
#------------------------------------------------------------------------------
#------ f2's .plt entry
#------------------------------------------------------------------------------
9014: e28fc600 add ip, pc, #0
9014: e28fc600 add ip, pc, #0, 12
9018: e28cca07 add ip, ip, #28672 ; 0x7000
901c: e5bcfff0 ldr pc, \[ip, #4080\]! ; 0xff0
 
26,19 → 26,19
#------------------------------------------------------------------------------
#------ f1's .iplt entry
#------------------------------------------------------------------------------
9020: e28fc600 add ip, pc, #0
9020: e28fc600 add ip, pc, #0, 12
9024: e28cca07 add ip, ip, #28672 ; 0x7000
9028: e5bcffe8 ldr pc, \[ip, #4072\]! ; 0xfe8
#------------------------------------------------------------------------------
#------ f3's .iplt entry
#------------------------------------------------------------------------------
902c: e28fc600 add ip, pc, #0
902c: e28fc600 add ip, pc, #0, 12
9030: e28cca07 add ip, ip, #28672 ; 0x7000
9034: e5bcffe0 ldr pc, \[ip, #4064\]! ; 0xfe0
#------------------------------------------------------------------------------
#------ f4's .iplt entry
#------------------------------------------------------------------------------
9038: e28fc600 add ip, pc, #0
9038: e28fc600 add ip, pc, #0, 12
903c: e28cca07 add ip, ip, #28672 ; 0x7000
9040: e5bcffd8 ldr pc, \[ip, #4056\]! ; 0xfd8
 
/ld-arm/rodata-merge-map3.s
0,0 → 1,9
@ This file contains the 3rd contribution, which is expected to
@ be partially merged into the 1st contribution (from
@ rodata-merge-map1.s), and generate a (redundant, but harmless)
@ $d mapping symbol.
 
.section .rodata.str1.1,"aMS",%progbits,1
.LC0:
.string "foo"
.string "world"
/ld-arm/ifunc-16.dd
8,33 → 8,33
#------------------------------------------------------------------------------
#------ f1's .iplt entry
#------------------------------------------------------------------------------
9000: e28fc600 add ip, pc, #0
9004: e28cca08 add ip, ip, #32768 ; 0x8000
9000: e28fc600 add ip, pc, #0, 12
9004: e28cca08 add ip, ip, #8, 20 ; 0x8000
9008: e5bcf004 ldr pc, \[ip, #4\]!
#------------------------------------------------------------------------------
#------ f1t's .iplt entry
#------------------------------------------------------------------------------
900c: e28fc600 add ip, pc, #0
900c: e28fc600 add ip, pc, #0, 12
9010: e28cca07 add ip, ip, #28672 ; 0x7000
9014: e5bcfffc ldr pc, \[ip, #4092\]! ; 0xffc
 
00009018 <f2t>:
9018: e28fc600 add ip, pc, #0
9018: e28fc600 add ip, pc, #0, 12
901c: e28cca07 add ip, ip, #28672 ; 0x7000
9020: e5bcfff4 ldr pc, \[ip, #4084\]! ; 0xff4
 
00009024 <f3>:
9024: e28fc600 add ip, pc, #0
9024: e28fc600 add ip, pc, #0, 12
9028: e28cca07 add ip, ip, #28672 ; 0x7000
902c: e5bcffec ldr pc, \[ip, #4076\]! ; 0xfec
 
00009030 <f2>:
9030: e28fc600 add ip, pc, #0
9030: e28fc600 add ip, pc, #0, 12
9034: e28cca07 add ip, ip, #28672 ; 0x7000
9038: e5bcffe4 ldr pc, \[ip, #4068\]! ; 0xfe4
 
0000903c <f3t>:
903c: e28fc600 add ip, pc, #0
903c: e28fc600 add ip, pc, #0, 12
9040: e28cca07 add ip, ip, #28672 ; 0x7000
9044: e5bcffdc ldr pc, \[ip, #4060\]! ; 0xfdc
 
/ld-powerpc/tlsexe.g
7,6 → 7,6
.*: +file format elf64-powerpc
 
Contents of section \.got:
.* 00000000 10018610 ffffffff ffff8018 .*
.* 00000000 10018620 ffffffff ffff8018 .*
.* 00000000 00000000 00000000 00000000 .*
.* 00000000 00000000 00000000 00000000 .*
/ld-powerpc/tocopt.d
2,10 → 2,10
.*: file format .*
 
Contents of section \.text:
100000b0 60000000 e9228018 60000000 38a28020 .*
100000c0 e8c50000 60000000 3ba08028 7c62e82a .*
100000d0 60000000 39228033 60000000 38a28008 .*
100000e0 e8c50000 60000000 3ba08010 7c62e82a .*
100000b0 3d220000 e9298018 3c820000 38a48020 .*
100000c0 e8c50000 3fa00000 3bbd8028 7c62e82a .*
100000d0 3d220000 39298033 3c820000 38a48008 .*
100000e0 e8c50000 3fa00000 3bbd8010 7c62e82a .*
Contents of section \.got:
100100f0 00000000 100180f0 00000000 10010124 .*
10010100 00000000 10010125 00000000 10010120 .*
/ld-powerpc/tlsexe.r
16,7 → 16,7
+\[[ 0-9]+\] \.dynstr +.*
+\[[ 0-9]+\] \.rela\.dyn +.*
+\[[ 0-9]+\] \.rela\.plt +.*
+\[[ 0-9]+\] \.text +PROGBITS .* 0+128 0+ +AX +0 +0 +8
+\[[ 0-9]+\] \.text +PROGBITS .* 0+128 0+ +AX +0 +0 +32
+\[[ 0-9]+\] \.tdata +PROGBITS .* 0+38 0+ WAT +0 +0 +8
+\[[ 0-9]+\] \.tbss +NOBITS .* 0+38 0+ WAT +0 +0 +8
+\[[ 0-9]+\] \.dynamic +DYNAMIC .* 0+160 10 +WA +4 +0 +8
/ld-powerpc/tocopt.out
0,0 → 1,4
.*
\(\.text\+0x14\): .* 0x3fa00000 .*
.*
\(\.text\+0x34\): .* 0x3fa00010 .*
/ld-powerpc/powerpc.exp
204,7 → 204,7
{"sym@tocbase" "-shared -melf64ppc" "-a64" {symtocbase-1.s symtocbase-2.s}
{{objdump -dj.data symtocbase.d}} "symtocbase.so"}
{"TOC opt" "-melf64ppc" "-a64" {tocopt.s}
{{objdump -s tocopt.d}} "tocopt"}
{{ld tocopt.out} {objdump -s tocopt.d}} "tocopt"}
{"TOC opt2" "-melf64ppc --defsym x=2" "-a64" {tocopt2.s}
{{ld tocopt2.out} {objdump -s tocopt2.d}} "tocopt2"}
{"TOC opt3" "-melf64ppc -no-keep-memory --defsym x=2" "-a64" {tocopt3.s}
211,6 → 211,8
{{objdump -s tocopt3.d}} "tocopt3"}
{"TOC opt4" "-melf64ppc -no-keep-memory --defsym x=2" "-a64"
{tocopt4a.s tocopt4b.s} {{objdump -s tocopt4.d}} "tocopt4"}
{"TOC opt5" "-melf64ppc" "-a64" {tocopt5.s}
{{objdump -s tocopt5.d}} "tocopt5"}
}
 
 
/ld-powerpc/relbrlt.d
7,7 → 7,7
 
Disassembly of section \.text:
 
0*100000b0 <_start>:
0*100000c0 <_start>:
[0-9a-f ]*: 49 bf 00 2d bl .*
[0-9a-f ]*: R_PPC64_REL24 \.text\+0x37e003c
[0-9a-f ]*: 60 00 00 00 nop
23,38 → 23,38
 
[0-9a-f ]*<.*plt_branch.*>:
[0-9a-f ]*: e9 62 80 00 ld r11,-32768\(r2\)
[0-9a-f ]*: R_PPC64_TOC16_DS \*ABS\*\+0x157f00d8
[0-9a-f ]*: R_PPC64_TOC16_DS \*ABS\*\+0x157f00e8
[0-9a-f ]*: 7d 69 03 a6 mtctr r11
[0-9a-f ]*: 4e 80 04 20 bctr
 
[0-9a-f ]*<.*long_branch.*>:
[0-9a-f ]*: 49 bf 00 10 b .* <far>
[0-9a-f ]*: R_PPC64_REL24 \*ABS\*\+0x137e00ec
[0-9a-f ]*: R_PPC64_REL24 \*ABS\*\+0x137e00fc
 
[0-9a-f ]*<.*plt_branch.*>:
[0-9a-f ]*: e9 62 80 08 ld r11,-32760\(r2\)
[0-9a-f ]*: R_PPC64_TOC16_DS \*ABS\*\+0x157f00e0
[0-9a-f ]*: R_PPC64_TOC16_DS \*ABS\*\+0x157f00f0
[0-9a-f ]*: 7d 69 03 a6 mtctr r11
[0-9a-f ]*: 4e 80 04 20 bctr
\.\.\.
 
0*137e00ec <far>:
0*137e00fc <far>:
[0-9a-f ]*: 4e 80 00 20 blr
\.\.\.
 
0*13bf00d0 <far2far>:
0*13bf00e0 <far2far>:
[0-9a-f ]*: 4e 80 00 20 blr
\.\.\.
 
0*157e00d4 <huge>:
0*157e00e4 <huge>:
[0-9a-f ]*: 4e 80 00 20 blr
 
Disassembly of section \.branch_lt:
 
0*157f00d8 <\.branch_lt>:
0*157f00e8 <\.branch_lt>:
[0-9a-f ]*: 00 00 00 00 .*
[0-9a-f ]*: R_PPC64_RELATIVE \*ABS\*\+0x13bf00d0
[0-9a-f ]*: 13 bf 00 d0 .*
[0-9a-f ]*: R_PPC64_RELATIVE \*ABS\*\+0x13bf00e0
[0-9a-f ]*: 13 bf 00 e0 .*
[0-9a-f ]*: 00 00 00 00 .*
[0-9a-f ]*: R_PPC64_RELATIVE \*ABS\*\+0x157e00d4
[0-9a-f ]*: 15 7e 00 d4 .*
[0-9a-f ]*: R_PPC64_RELATIVE \*ABS\*\+0x157e00e4
[0-9a-f ]*: 15 7e 00 e4 .*
/ld-powerpc/tlsso.g
7,7 → 7,7
.*: +file format elf64-powerpc
 
Contents of section \.got:
.* 00000000 00018778 00000000 00000000 .*
.* 00000000 00018780 00000000 00000000 .*
.* 00000000 00000000 00000000 00000000 .*
.* 00000000 00000000 00000000 00000000 .*
.* 00000000 00000000 00000000 00000000 .*
/ld-powerpc/tlsso.r
48,9 → 48,9
[0-9a-f ]+R_PPC64_TPREL16 +0+60 le0 \+ 0
[0-9a-f ]+R_PPC64_TPREL16_HA +0+68 le1 \+ 0
[0-9a-f ]+R_PPC64_TPREL16_LO +0+68 le1 \+ 0
[0-9a-f ]+R_PPC64_TPREL16_DS +0+105f0 \.tdata \+ 28
[0-9a-f ]+R_PPC64_TPREL16_HA +0+105f0 \.tdata \+ 30
[0-9a-f ]+R_PPC64_TPREL16_LO +0+105f0 \.tdata \+ 30
[0-9a-f ]+R_PPC64_TPREL16_DS +0+105f8 \.tdata \+ 28
[0-9a-f ]+R_PPC64_TPREL16_HA +0+105f8 \.tdata \+ 30
[0-9a-f ]+R_PPC64_TPREL16_LO +0+105f8 \.tdata \+ 30
[0-9a-f ]+R_PPC64_DTPMOD64 +0+
[0-9a-f ]+R_PPC64_DTPREL64 +0+
[0-9a-f ]+R_PPC64_DTPREL64 +0+18
/ld-powerpc/tlsexetoc.g
7,7 → 7,7
.*: +file format elf64-powerpc
 
Contents of section \.got:
.* 00000000 100185a8 00000000 00000000 .*
.* 00000000 100185c0 00000000 00000000 .*
.* 00000000 00000000 00000000 00000000 .*
.* 00000000 00000000 00000000 00000001 .*
.* 00000000 00000000 00000000 00000001 .*
/ld-powerpc/tlsexetoc.r
16,7 → 16,7
+\[[ 0-9]+\] \.dynstr +.*
+\[[ 0-9]+\] \.rela\.dyn +.*
+\[[ 0-9]+\] \.rela\.plt +.*
+\[[ 0-9]+\] \.text +PROGBITS .* 0+e8 0+ +AX +0 +0 +8
+\[[ 0-9]+\] \.text +PROGBITS .* 0+e8 0+ +AX +0 +0 +32
+\[[ 0-9]+\] \.tdata +PROGBITS .* 0+38 0+ WAT +0 +0 +8
+\[[ 0-9]+\] \.tbss +NOBITS .* 0+38 0+ WAT +0 +0 +8
+\[[ 0-9]+\] \.dynamic +DYNAMIC .* 0+160 10 +WA +4 +0 +8
/ld-powerpc/tocopt5.d
0,0 → 1,13
 
.*: file format .*
 
Contents of section \.text:
100000b0 60000000 e9228018 60000000 38a28020 .*
100000c0 e8c50000 60000000 3922802b 60000000 .*
100000d0 38a28008 e8c50000 .*
Contents of section \.got:
100100d8 00000000 100180d8 00000000 10010104 .*
100100e8 00000000 10010105 00000000 10010100 .*
100100f8 00000000 10010101 .*
Contents of section \.sdata:
10010100 01020304 0506 .*
/ld-powerpc/tocopt5.s
0,0 → 1,43
.section .toc,"aw"
x4t:
.quad x4
x5t:
.quad x5
x6t:
.quad x6
 
.section .sdata,"aw"
x1:
.byte 1
x2:
.byte 2
x3:
.byte 3
x4:
.byte 4
x5:
.byte 5
x6:
.byte 6
 
.globl _start
.text
_start:
# no need for got entry, optimise to nop,addi
# note: ld doesn't yet do got optimisation, so we get nop,ld
addis 9,2,x1@got@ha
ld 9,x1@got@l(9)
# must keep got entry, optimise to nop,addi,ld
addis 4,2,x2@got@ha
addi 5,4,x2@got@l
ld 6,0(5)
 
# no need for toc entry, optimise to nop,addi
addis 9,2,x4t@toc@ha
ld 9,x4t@toc@l(9)
# must keep toc entry, optimise to nop,addi,ld
# if we had a reloc tying the ld to x5/x5t then we could throw away
# the toc entry and optimise to nop,nop,addi
addis 4,2,x5t@toc@ha
addi 5,4,x5t@toc@l
ld 6,0(5)
/ld-i386/pr13302.d
0,0 → 1,12
#name: PR ld/13302
#as: --32
#ld: -pie -melf_i386
#readelf: -r --wide
 
Relocation section '.rel.dyn' at offset 0x[0-9a-f]+ contains 1 entries:
Offset Info Type Sym. Value Symbol's Name
[0-9a-f]+ +[0-9a-f]+ +R_386_RELATIVE +
 
Relocation section '.rel.plt' at offset 0x[0-9a-f]+ contains 1 entries:
Offset Info Type Sym. Value Symbol's Name
[0-9a-f]+ +[0-9a-f]+ +R_386_IRELATIVE +
/ld-i386/pr13302.s
0,0 → 1,11
.text
.globl _start
.type ifunc, @gnu_indirect_function
_start:
lea .Ljmp@GOTOFF(%ebx), %eax
ifunc:
jmp *(%eax)
.section .data.rel.ro.local,"aw",@progbits
.align 4
.Ljmp:
.long ifunc
/ld-i386/i386.exp
210,3 → 210,4
 
run_dump_test "compressed1"
run_dump_test "pr12627"
run_dump_test "pr13302"
/ChangeLog
1,3 → 1,183
2011-11-09 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
 
* ld-arm/jump-reloc-veneers.s: Update for changes to assembler output.
 
2011-11-08 Alan Modra <amodra@gmail.com>
 
* ld-powerpc/powerpc.exp: Expect ld warnings for tocopt test.
* ld-powerpc/tocopt.out: New file.
 
2011-10-25 Joern Rennecke <joern.rennecke@embecosm.com>
 
* ld-srec/srec.exp: xfail epiphany.
* lib/ld-lib.exp (check_shared_lib_support): Add Epiphany to list
of targets not supporting shared libraries.
 
2011-10-21 H.J. Lu <hongjiu.lu@intel.com>
 
PR ld/13302
* ld-i386/i386.exp: Run pr13302.
 
* ld-i386/pr13302.d: New.
* ld-i386/pr13302.s: Likewise.
 
* ld-x86-64/pr13082-5b.d: Updated.
* ld-x86-64/pr13082-6a.d: Likewise.
* ld-x86-64/pr13082-6b.d: Likewise.
 
2011-10-21 H.J. Lu <hongjiu.lu@intel.com>
 
PR ld/13302
* ld-ifunc/ifunc-16-i386.d: New.
* ld-ifunc/ifunc-16-x86-64.d: Likewise.
* ld-ifunc/ifunc-16-x86.s: Likewise.
 
2011-10-20 Alan Modra <amodra@gmail.com>
 
* ld-selective/selective.exp: Use check_gc_sections_available.
Remove redundant xfails.
* ld-selective/sel-dump.exp: Likewise.
 
2011-10-19 Alan Modra <amodra@gmail.com>
 
* ld-elf/elf.exp: Move test for shared lib support..
* lib/ld-lib.exp (check_shared_lib_support): ..to here. Add m68hc1*,
and s/ms1/mt/.
(check_gc_sections_available): Match hppa*64 not hppa64. Comment.
* ld-gc/libpersonality.s: New.
* ld-gc/personality.s, * ld-gc/personality.d: New.
* ld-gc/gc.exp: Run personality test.
 
2011-10-18 David S. Miller <davem@davemloft.net>
 
* ld-sparc/tlssunbin32.dd: Update for TLS call relaxation fix
for PR 13301.
* ld-sparc/tlssunbin64.dd: Likewise.
* ld-sparc/tlssunpic32.dd: Likewise.
* ld-sparc/tlssunpic64.dd: Likewise.
 
2011-10-18 Jie Zhang <jie@codesourcery.com>
Julian Brown <julian@codesourcery.com>
 
* ld-arm/cortex-a8-fix-b-plt.d: Adjust.
* ld-arm/cortex-a8-fix-bcc-plt.d: Adjust.
* ld-arm/cortex-a8-fix-bl-plt.d: Adjust.
* ld-arm/cortex-a8-fix-bl-rel-plt.d: Adjust.
* ld-arm/cortex-a8-fix-blx-plt.d: Adjust.
* ld-arm/ifunc-1.dd: Adjust.
* ld-arm/ifunc-2.dd: Adjust.
* ld-arm/ifunc-3.dd: Adjust.
* ld-arm/ifunc-4.dd: Adjust.
* ld-arm/ifunc-5.dd: Adjust.
* ld-arm/ifunc-6.dd: Adjust.
* ld-arm/ifunc-7.dd: Adjust.
* ld-arm/ifunc-8.dd: Adjust.
* ld-arm/ifunc-9.dd: Adjust.
* ld-arm/ifunc-10.dd: Adjust.
* ld-arm/ifunc-14.dd: Adjust.
* ld-arm/ifunc-15.dd: Adjust.
* ld-arm/ifunc-16.dd: Adjust.
 
2011-10-14 Hans-Peter Nilsson <hp@axis.com>
 
* ld-cris/pic-gc-72.d: Adjust for dropping unused undefined
dynamic symbol "dsofn".
 
2011-10-10 Alan Modra <amodra@gmail.com>
 
* ld-powerpc/relbrlt.d: Update for stub alignment change.
* ld-powerpc/tlsexe.g: Likewise.
* ld-powerpc/tlsexe.r: Likewise.
* ld-powerpc/tlsexetoc.g: Likewise.
* ld-powerpc/tlsexetoc.r: Likewise.
* ld-powerpc/tlsso.g: Likewise.
* ld-powerpc/tlsso.r: Likewise.
 
2011-10-08 H.J. Lu <hongjiu.lu@intel.com>
 
PR ld/13250
* ld-elf/shared.exp (build_tests): Add tests for PR ld/13250.
(run_tests): Likewise.
 
* ld-elf/pr13250-1.c: New.
* ld-elf/pr13250-2.c: Likewise.
* ld-elf/pr13250-3.c: Likewise.
 
2011-10-07 H.J. Lu <hongjiu.lu@intel.com>
 
* ld-elf/elf.exp: Run --gc-sections tests only if --gc-sections
is available.
 
2011-10-06 Alan Modra <amodra@gmail.com>
 
* ld-plugin/plugin-1.d, * ld-plugin/plugin-2.d, * ld-plugin/plugin-3.d,
* ld-plugin/plugin-4.d, * ld-plugin/plugin-5.d, * ld-plugin/plugin-6.d,
* ld-plugin/plugin-7.d, * ld-plugin/plugin-8.d, * ld-plugin/plugin-9.d,
* ld-plugin/plugin-10.d, * ld-plugin/plugin-11.d: Update.
 
2011-10-05 Nick Clifton <nickc@redhat.com>
 
* ld-scripts/phdrs.exp: Expect to fail for the RX.
 
2011-09-30 Alan Modra <amodra@gmail.com>
 
* ld-powerpc/tocopt.d: Update.
* ld-powerpc/tocopt5.d, * ld-powerpc/tocopt5.s: New test.
* ld-powerpc/powerpc.exp: Run new test.
 
2011-09-29 H.J. Lu <hongjiu.lu@intel.com>
 
PR ld/13195
* ld-elf/elf.exp: Add a C link testcase for PR ld/13195.
 
* ld-elf/pr13195.c: New.
* ld-elf/pr13195.d: Likewise.
* ld-elf/pr13195.s: Likewise.
* ld-elf/pr13195.t: Likewise.
 
2011-09-16 H.J. Lu <hongjiu.lu@intel.com>
 
* ld-elf/pr12975.d: Only run for *-*-linux* and *-*-gnu*
targets.
* ld-elf/pr13177.d: Likewise.
 
* ld-elf/pr13177.s: Avoid relocations in text sections.
 
2011-09-15 H.J. Lu <hongjiu.lu@intel.com>
 
PR ld/13177
* ld-elf/pr13177.d: New.
* ld-elf/pr13177.s: Likewise.
 
2011-09-15 H.J. Lu <hongjiu.lu@intel.com>
 
PR ld/12975
* ld-elf/pr12975.d: New.
* ld-elf/pr12975.s: Likewise.
* ld-elf/pr12975.t: Likewise.
 
2011-09-12 H.J. Lu <hongjiu.lu@intel.com>
 
PR ld/13178
* ld-ifunc/ifunc-13-i386.d: Updated.
* ld-ifunc/ifunc-13-x86-64.d: Likewise.
* ld-ifunc/ifunc-3a-x86.d: Likewise.
* ld-x86-64/pr13082-5a.d: Likewise.
 
* ld-ifunc/ifunc-15-i386.d: New.
* ld-ifunc/ifunc-15-i386.s: Likewise.
* ld-ifunc/ifunc-15-x86-64.d: Likewise.
* ld-ifunc/ifunc-15-x86-64.s: Likewise.
 
2011-09-01 Christophe Lyon <christophe.lyon@st.com>
 
* ld-arm/arm-elf.exp: Add new rodata-merge-map test.
* ld-arm/rodata-merge-map.ld: New file.
* ld-arm/rodata-merge-map.sym: Likewise.
* ld-arm/rodata-merge-map1.s Likewise.
* ld-arm/rodata-merge-map2.s: Likewise.
* ld-arm/rodata-merge-map3.s: Likewise.
 
2011-08-22 Alan Modra <amodra@gmail.com>
 
* ld-powerpc/tocopt4a.s, * ld-powerpc/tocopt4b.s,
/ld-sparc/tlssunbin64.dd
27,8 → 27,8
+101034: 01 00 00 00 nop *
+101038: d0 5d c0 12 ldx \[ %l7 \+ %l2 \], %o0
+10103c: 01 00 00 00 nop *
+101040: 90 01 c0 08 add %g7, %o0, %o0
+101044: 01 00 00 00 nop *
+101040: 01 00 00 00 nop *
+101044: 90 01 c0 08 add %g7, %o0, %o0
+101048: 01 00 00 00 nop *
+10104c: 01 00 00 00 nop *
+101050: 01 00 00 00 nop *
36,8 → 36,8
+101058: 11 00 00 00 sethi %hi\(0\), %o0
+10105c: 92 02 20 10 add %o0, 0x10, %o1 ! 10 <.*>
+101060: d0 5d c0 09 ldx \[ %l7 \+ %o1 \], %o0
+101064: 90 01 c0 08 add %g7, %o0, %o0
+101068: 01 00 00 00 nop *
+101064: 01 00 00 00 nop *
+101068: 90 01 c0 08 add %g7, %o0, %o0
+10106c: 01 00 00 00 nop *
+101070: 01 00 00 00 nop *
+101074: 01 00 00 00 nop *
/ld-sparc/tlssunpic32.dd
37,8 → 37,8
+1058: 11 00 00 00 sethi %hi\(0\), %o0
+105c: 92 02 20 3c add %o0, 0x3c, %o1 ! 3c <.*>
+1060: d0 05 c0 09 ld \[ %l7 \+ %o1 \], %o0
+1064: 90 01 c0 08 add %g7, %o0, %o0
+1068: 01 00 00 00 nop *
+1064: 01 00 00 00 nop *
+1068: 90 01 c0 08 add %g7, %o0, %o0
+106c: 01 00 00 00 nop *
+1070: 01 00 00 00 nop *
+1074: 01 00 00 00 nop *
55,8 → 55,8
+10a0: 11 00 00 00 sethi %hi\(0\), %o0
+10a4: 90 02 20 0c add %o0, 0xc, %o0 ! c <.*>
+10a8: d0 05 c0 08 ld \[ %l7 \+ %o0 \], %o0
+10ac: 90 01 c0 08 add %g7, %o0, %o0
+10b0: 01 00 00 00 nop *
+10ac: 01 00 00 00 nop *
+10b0: 90 01 c0 08 add %g7, %o0, %o0
+10b4: 01 00 00 00 nop *
+10b8: 01 00 00 00 nop *
+10bc: 01 00 00 00 nop *
73,8 → 73,8
+10e8: 11 00 00 00 sethi %hi\(0\), %o0
+10ec: 90 02 20 48 add %o0, 0x48, %o0 ! 48 <.*>
+10f0: d0 05 c0 08 ld \[ %l7 \+ %o0 \], %o0
+10f4: 90 01 c0 08 add %g7, %o0, %o0
+10f8: 01 00 00 00 nop *
+10f4: 01 00 00 00 nop *
+10f8: 90 01 c0 08 add %g7, %o0, %o0
+10fc: 01 00 00 00 nop *
+1100: 01 00 00 00 nop *
+1104: 01 00 00 00 nop *
91,8 → 91,8
+1130: 11 00 00 00 sethi %hi\(0\), %o0
+1134: 90 02 20 24 add %o0, 0x24, %o0 ! 24 <.*>
+1138: d0 05 c0 08 ld \[ %l7 \+ %o0 \], %o0
+113c: 90 01 c0 08 add %g7, %o0, %o0
+1140: 01 00 00 00 nop *
+113c: 01 00 00 00 nop *
+1140: 90 01 c0 08 add %g7, %o0, %o0
+1144: 01 00 00 00 nop *
+1148: 01 00 00 00 nop *
+114c: 01 00 00 00 nop *
/ld-sparc/tlssunpic64.dd
37,8 → 37,8
+1058: 11 00 00 00 sethi %hi\(0\), %o0
+105c: 92 02 20 78 add %o0, 0x78, %o1 ! 78 <.*>
+1060: d0 5d c0 09 ldx \[ %l7 \+ %o1 \], %o0
+1064: 90 01 c0 08 add %g7, %o0, %o0
+1068: 01 00 00 00 nop *
+1064: 01 00 00 00 nop *
+1068: 90 01 c0 08 add %g7, %o0, %o0
+106c: 01 00 00 00 nop *
+1070: 01 00 00 00 nop *
+1074: 01 00 00 00 nop *
55,8 → 55,8
+10a0: 11 00 00 00 sethi %hi\(0\), %o0
+10a4: 90 02 20 18 add %o0, 0x18, %o0 ! 18 <.*>
+10a8: d0 5d c0 08 ldx \[ %l7 \+ %o0 \], %o0
+10ac: 90 01 c0 08 add %g7, %o0, %o0
+10b0: 01 00 00 00 nop *
+10ac: 01 00 00 00 nop *
+10b0: 90 01 c0 08 add %g7, %o0, %o0
+10b4: 01 00 00 00 nop *
+10b8: 01 00 00 00 nop *
+10bc: 01 00 00 00 nop *
73,8 → 73,8
+10e8: 11 00 00 00 sethi %hi\(0\), %o0
+10ec: 90 02 20 90 add %o0, 0x90, %o0 ! 90 <.*>
+10f0: d0 5d c0 08 ldx \[ %l7 \+ %o0 \], %o0
+10f4: 90 01 c0 08 add %g7, %o0, %o0
+10f8: 01 00 00 00 nop *
+10f4: 01 00 00 00 nop *
+10f8: 90 01 c0 08 add %g7, %o0, %o0
+10fc: 01 00 00 00 nop *
+1100: 01 00 00 00 nop *
+1104: 01 00 00 00 nop *
91,8 → 91,8
+1130: 11 00 00 00 sethi %hi\(0\), %o0
+1134: 90 02 20 48 add %o0, 0x48, %o0 ! 48 <.*>
+1138: d0 5d c0 08 ldx \[ %l7 \+ %o0 \], %o0
+113c: 90 01 c0 08 add %g7, %o0, %o0
+1140: 01 00 00 00 nop *
+113c: 01 00 00 00 nop *
+1140: 90 01 c0 08 add %g7, %o0, %o0
+1144: 01 00 00 00 nop *
+1148: 01 00 00 00 nop *
+114c: 01 00 00 00 nop *
/ld-sparc/tlssunbin32.dd
27,8 → 27,8
+11034: 01 00 00 00 nop *
+11038: d0 05 c0 12 ld \[ %l7 \+ %l2 \], %o0
+1103c: 01 00 00 00 nop *
+11040: 90 01 c0 08 add %g7, %o0, %o0
+11044: 01 00 00 00 nop *
+11040: 01 00 00 00 nop *
+11044: 90 01 c0 08 add %g7, %o0, %o0
+11048: 01 00 00 00 nop *
+1104c: 01 00 00 00 nop *
+11050: 01 00 00 00 nop *
36,8 → 36,8
+11058: 11 00 00 00 sethi %hi\(0\), %o0
+1105c: 92 02 20 08 add %o0, 8, %o1 ! 8 <.*>
+11060: d0 05 c0 09 ld \[ %l7 \+ %o1 \], %o0
+11064: 90 01 c0 08 add %g7, %o0, %o0
+11068: 01 00 00 00 nop *
+11064: 01 00 00 00 nop *
+11068: 90 01 c0 08 add %g7, %o0, %o0
+1106c: 01 00 00 00 nop *
+11070: 01 00 00 00 nop *
+11074: 01 00 00 00 nop *
/ld-elf/pr13250-1.c
0,0 → 1,8
int common1[8];
void
foo ()
{
int i;
for (i = 0; i < sizeof (common1)/ sizeof (common1[0]); i++)
common1[i] = -1;
}
/ld-elf/shared.exp
157,6 → 157,15
{"Build libpr11138-2.o"
"-r -nostdlib" ""
{pr11138-2.c} {} "libpr11138-2.o"}
{"Build pr13250-1.so"
"-shared" "-fPIC"
{pr13250-1.c} {} "libpr13250-1.so"}
{"Build pr13250-2.so with libpr13250-1.so"
"-shared tmpdir/libpr13250-1.so" "-fPIC"
{pr13250-2.c} {} "libpr13250-2.so"}
{"Build libpr13250-3.o"
"-r -nostdlib" ""
{pr13250-3.c} {} "libpr13250-3.o"}
}
 
run_cc_link_tests $build_tests
283,6 → 292,9
{"Run with libpr11138-1.so pr11138-2.c"
"--version-script=pr11138-2.map tmpdir/libpr11138-1.so tmpdir/pr11138-2.o" ""
{dummy.c} "pr11138b" "pr11138.out"}
{"Run with pr13250-3.c, libpr13250-1.so and libpr13250-2.so"
"--as-needed tmpdir/pr13250-3.o tmpdir/libpr13250-1.so tmpdir/libpr13250-2.so" ""
{dummy.c} "pr13250" "pass.out"}
}
 
# NetBSD ELF systems do not currently support the .*_array sections.
/ld-elf/pr12975.d
0,0 → 1,11
#ld: --gc-sections -shared -version-script pr12975.t
#readelf: -s --wide
#target: *-*-linux* *-*-gnu*
#notarget: arc-*-* d30v-*-* dlx-*-* i960-*-* or32-*-* pj*-*-*
#notarget: hppa64-*-* i370-*-* i860-*-* ia64-*-* mep-*-* mn10200-*-*
# generic linker targets don't support --gc-sections, nor do a bunch of others
 
#failif
#...
+[0-9]+: +[0-9a-f]+ +[0-9]+ +FUNC +LOCAL +DEFAULT +[1-9]+ bar
#...
/ld-elf/pr12975.s
0,0 → 1,10
.section .text.foo,"ax",%progbits
.globl foo
.type foo, %function
foo:
.byte 0
.section .text.bar,"ax",%progbits
.type bar, %function
.globl bar
bar:
.byte 0
/ld-elf/pr12975.t
0,0 → 1,6
{
global:
foo;
local:
*;
};
/ld-elf/pr13250-2.c
0,0 → 1,10
extern int common1[8];
 
extern void foo ();
 
int
bar ()
{
foo ();
return common1[4];
}
/ld-elf/elf.exp
58,40 → 58,7
# should not seg-fault whilst creating the binary.
#
# Only run the test on targets thats support creating shared libraries.
if { ! [istarget arc-*-*]
&& ! [istarget avr-*-*]
&& ! [istarget cr16-*-*]
&& ! [istarget cris*-*-*]
&& ! [istarget crx-*-*]
&& ! [istarget d10v-*-*]
&& ! [istarget d30v-*-*]
&& ! [istarget dlx-*-*]
&& ! [istarget fr30-*-*]
&& ! [istarget frv-*-*]
&& ! [istarget h8300-*-*]
&& ! [istarget i860-*-*]
&& ! [istarget i960-*-*]
&& ! [istarget ip2k-*-*]
&& ! [istarget iq2000-*-*]
&& ! [istarget lm32-*-*]
&& ! [istarget m32c-*-*]
&& ! [istarget m32r-*-*]
&& ! [istarget mcore*-*-*]
&& ! [istarget mep-*-*]
&& ! [istarget microblaze-*-*]
&& ! [istarget mn10200-*-*]
&& ! [istarget moxie-*-*]
&& ! [istarget ms1-*-*]
&& ! [istarget msp430-*-*]
&& ! [istarget openrisc-*-*]
&& ! [istarget or32-*-*]
&& ! [istarget pj-*-*]
&& ! [istarget rx-*-*]
&& ! [istarget spu-*-*]
&& ! [istarget v850*-*-*]
&& ! [istarget xstormy16-*-*]
&& ! [istarget *-*-irix*]
&& ! [istarget *-*-rtems] } {
if { [check_shared_lib_support] } then {
run_ld_link_tests {
{"Build shared library for next test"
"-shared" "" "note-3.s" {} "note-3.so" }
138,6 → 105,13
return
}
 
if [check_gc_sections_available] {
run_cc_link_tests {
{"PR ld/13195" "-Wl,--gc-sections" ""
{pr13195.c} {} "pr13195"}
}
}
 
set array_tests {
{"preinit array" "" "" {preinit.c} "preinit" "preinit.out"}
{"init array" "" "" {init.c} "init" "init.out"}
/ld-elf/pr13250-3.c
0,0 → 1,22
#include <stdio.h>
#include <stdlib.h>
 
int common1[1];
char common2[2];
 
extern int bar ();
 
int
main ()
{
int i;
if (bar () != -1)
abort ();
if (common1[0] != -1)
abort ();
for (i = 0; i < sizeof (common2)/ sizeof (common2[0]); i++)
if (common2[i] != 0)
abort ();
printf ("PASS\n");
return 0;
}
/ld-elf/pr13177.d
0,0 → 1,12
#source: pr13177.s
#ld: --gc-sections -shared
#readelf: -s -D --wide
#target: *-*-linux* *-*-gnu*
#notarget: arc-*-* d30v-*-* dlx-*-* i960-*-* or32-*-* pj*-*-*
#notarget: hppa64-*-* i370-*-* i860-*-* ia64-*-* mep-*-* mn10200-*-*
# generic linker targets don't support --gc-sections, nor do a bunch of others
 
#failif
#...
.*: 0+0 +0 +NOTYPE +GLOBAL +DEFAULT +UND bar
#...
/ld-elf/pr13177.s
0,0 → 1,9
.section .text.foo,"ax",%progbits
.globl foo
.type foo, %function
foo:
.byte 0
.section .data.opt_out,"aw",%progbits
.type opt_out, %object
opt_out:
.dc.a bar
/ld-elf/pr13195.c
0,0 → 1,5
int
main ()
{
return 0;
}
/ld-elf/pr13195.d
0,0 → 1,10
#ld: --gc-sections -shared -version-script pr13195.t
#readelf: -s --wide -D
#target: *-*-linux* *-*-gnu*
#notarget: arc-*-* d30v-*-* dlx-*-* i960-*-* or32-*-* pj*-*-*
#notarget: hppa64-*-* i370-*-* i860-*-* ia64-*-* mep-*-* mn10200-*-*
# generic linker targets don't support --gc-sections, nor do a bunch of others
 
#...
+[0-9]+ +[0-9]+: +[0-9a-f]+ +[0-9]+ +FUNC +GLOBAL +DEFAULT +[1-9]+ foo
#pass
/ld-elf/pr13195.s
0,0 → 1,6
.section .text.new_foo,"ax",%progbits
.globl new_foo
.type new_foo, %function
new_foo:
.byte 0
.symver new_foo,foo@@VERS_2.0
/ld-elf/pr13195.t
0,0 → 1,6
VERS_2.0 {
global:
foo;
local:
*;
};
/lib/ld-lib.exp
1418,7 → 1418,7
|| [istarget or32-*-*]
|| [istarget pj*-*-*]
|| [istarget alpha-*-*]
|| [istarget hppa64-*-*]
|| [istarget hppa*64-*-*]
|| [istarget i370-*-*]
|| [istarget i860-*-*]
|| [istarget ia64-*-*]
1439,6 → 1439,8
}
 
# Check if the ld used by gcc supports --gc-sections.
# FIXME: this test is useless since ld --help always says
# --gc-sections is available
set ld_output [remote_exec host $ld "--help"]
if { [ string first "--gc-sections" $ld_output ] >= 0 } {
set gc_sections_available_saved 1
1449,6 → 1451,51
return $gc_sections_available_saved
}
 
# Returns true if -shared is supported on the target
# Only used and accurate for ELF targets at the moment
 
proc check_shared_lib_support { } {
if {![istarget arc-*-*]
&& ![istarget avr-*-*]
&& ![istarget cr16-*-*]
&& ![istarget cris*-*-*]
&& ![istarget crx-*-*]
&& ![istarget d10v-*-*]
&& ![istarget d30v-*-*]
&& ![istarget dlx-*-*]
&& ![istarget epiphany-*-*]
&& ![istarget fr30-*-*]
&& ![istarget frv-*-*]
&& ![istarget h8300-*-*]
&& ![istarget i860-*-*]
&& ![istarget i960-*-*]
&& ![istarget ip2k-*-*]
&& ![istarget iq2000-*-*]
&& ![istarget lm32-*-*]
&& ![istarget m32c-*-*]
&& ![istarget m32r-*-*]
&& ![istarget m68hc1*-*-*]
&& ![istarget mcore*-*-*]
&& ![istarget mep-*-*]
&& ![istarget microblaze-*-*]
&& ![istarget mn10200-*-*]
&& ![istarget moxie-*-*]
&& ![istarget msp430-*-*]
&& ![istarget mt-*-*]
&& ![istarget openrisc-*-*]
&& ![istarget or32-*-*]
&& ![istarget pj-*-*]
&& ![istarget rx-*-*]
&& ![istarget spu-*-*]
&& ![istarget v850*-*-*]
&& ![istarget xstormy16-*-*]
&& ![istarget *-*-irix*]
&& ![istarget *-*-rtems] } {
return 1
}
return 0
}
 
# Returns true if the target ld supports the plugin API.
proc check_plugin_api_available { } {
global plugin_api_available_saved
/ld-selective/sel-dump.exp
20,7 → 20,7
 
# Test for ELF here, so we don't have to qualify on ELF specifically
# in every .d-file.
if ![is_elf_format] {
if { ![is_elf_format] || ![check_gc_sections_available] } {
return
}
 
28,8 → 28,5
for { set i 0 } { $i < [llength $test_list] } { incr i } {
# We need to strip the ".d", but can leave the dirname.
verbose [file rootname [lindex $test_list $i]]
setup_xfail "am33*-*" "arc*-*" "d30v*-*" "dlx*-*"
setup_xfail "hppa*64-*-*" "i370*-*" "i860*-*" "i960*-*" "ia64*-*"
setup_xfail "m88*-*" "mn10200-*" "mep-*" "or32-*" "pj-*"
run_dump_test [file rootname [lindex $test_list $i]]
}
/ld-selective/selective.exp
23,22 → 23,10
# Make sure that constructors are handled correctly.
 
# Only ELF based ports support selective linking
if ![is_elf_format] {
if { ![is_elf_format] || ![check_gc_sections_available] } {
return
}
 
# These targets do not support selective linking
if {[istarget "am33*-*-*"] ||
[istarget "arc-*-*"] || [istarget "d30v-*-*"] ||
[istarget "dlx-*-*"] || [istarget "hppa*64*-*-*"] ||
[istarget "i370-*-*"] || [istarget "i860-*-*"] ||
[istarget "i960-*-*"] || [istarget "ia64-*-*"] ||
[istarget "m88*-*-*"] || [istarget "mn10200-*-*"] ||
[istarget "mep-*-*"] || [istarget "or32-*-*"] ||
[istarget "pj*-*-*"]} {
return
}
 
# List contains test-items with three items followed by four lists:
# 1:name 2:test-type (CC or C++; add as needed) 3:filename 4:ld-flags
# 5:must-have-symbols 6:must-not-have-symbols 7:xfail-targets.
101,8 → 89,6
foreach xfail_target $xfails {
setup_xfail $xfail_target
}
setup_xfail "arc*-*" "d30v*-*" "dlx*-*" "i370*-*" "i860*-*"
setup_xfail "i960*-*" "mn10200-*" "or32-*" "pj-*"
 
# It's either C or C++ at the moment.
if { $testtype == "C++" } {
/ld-scripts/phdrs.exp
60,6 → 60,14
set exec_output [prune_warnings $exec_output]
verbose -log $exec_output
 
# The RX port sets the p_paddr of loadable segments to 0 in order
# to be compatible with Renesas tools. When an RX executable is
# loaded into a BFD based tool the code tries to reconstruct the
# correct vaddr and paddr values. This is not always possible
# however and this test is one example of where the reconstruction
# fails.
setup_xfail rx-*-*
if [regexp $phdrs_regexp $exec_output] {
pass $testname
} else {
/ld-gc/libpersonality.s
0,0 → 1,11
.weak __gxx_personality_v0
.type __gxx_personality_v0,%function
__gxx_personality_v0:
.long 0
.size __gxx_personality_v0, . - __gxx_personality_v0
 
.globl __gxx_personality_v1
.type __gxx_personality_v1,%function
__gxx_personality_v1:
.long 0
.size __gxx_personality_v1, . - __gxx_personality_v1
/ld-gc/gc.exp
97,6 → 97,20
run_dump_test "noent"
run_dump_test "abi-note"
run_dump_test "start"
 
if { [is_elf_format] && [check_shared_lib_support] } then {
set gasopt ""
if { [istarget tic6x-*] } then {
set gasopt "-mpic -mpid=near"
}
if {![ld_assemble_flags $as $gasopt $srcdir/$subdir/libpersonality.s tmpdir/libpersonality.o]
|| ![ld_simple_link $ld tmpdir/libpersonality.so "-shared tmpdir/libpersonality.o"] } then {
fail libpersonality
} else {
run_dump_test "personality"
}
}
 
if { [is_remote host] || [which $CC] != 0 } {
if { [istarget "*-*-linux*"]
|| [istarget "*-*-gnu*"] } {
/ld-gc/personality.s
0,0 → 1,28
.section .text.loseme,"ax",%progbits
.globl loseme
.type loseme,%function
loseme:
.cfi_startproc
.cfi_personality 0,__gxx_personality_v0
.long 0
.cfi_endproc
.size loseme, . - loseme
 
.section .text.loseme2,"ax",%progbits
.globl loseme2
.type loseme2,%function
loseme2:
.cfi_startproc
.cfi_personality 0,__gxx_personality_v1
.long 0
.cfi_endproc
.size loseme2, . - loseme2
 
.section .text.main,"ax",%progbits
.globl main
.type main, %function
main:
.cfi_startproc
.long 0
.cfi_endproc
.size main, . - main
/ld-gc/personality.d
0,0 → 1,10
#name: --gc-sections with __gxx_personality
#ld: --gc-sections -e main -L tmpdir -lpersonality
#nm: -n
#xfail: bfin-*-* cris*-*-* frv-*-* mn10300-*-* vax-*-* xtensa-*-*
# above targets don't support cfi
 
#failif
#...
.*gxx_personality.*
#...
/ld-srec/srec.exp
270,6 → 270,12
set flags "$flags --no-toc-optimize"
}
 
# Epiphany needs some help too
if [istarget epiphany*-*-*] {
set flags "$flags --defsym _start=00000060"
setup_xfail "epiphany*-*-*"
}
 
if { ![ld_simple_link $ld tmpdir/sr1 "$flags $objs"] \
|| ![ld_simple_link $ld tmpdir/sr2.sr "$flags --oformat srec $objs"] } {
fail $test
/ld-cris/pic-gc-72.d
19,10 → 19,11
Contents of section .dynstr:
#...
Contents of section .text:
0188 0f050f05 .*
016e 0f050f05 .*
Contents of section .dynamic:
2174 .*
#...
Contents of section .got:
21e4 8c210000 00000000 00000000 .*
21cc 74210000 00000000 00000000 .*
Contents of section .data:
21f0 00000000 .*
21d8 00000000 .*
/ld-ifunc/ifunc-15-i386.d
0,0 → 1,13
#source: ifunc-15-i386.s
#ld: -shared -m elf_i386 -z nocombreloc
#as: --32
#readelf: -r --wide
#target: x86_64-*-* i?86-*-*
 
Relocation section '.rel.got' at offset 0x[0-9a-f]+ contains 1 entries:
[ ]+Offset[ ]+Info[ ]+Type[ ]+.*
[0-9a-f]+[ ]+[0-9a-f]+[ ]+R_386_GLOB_DAT[ ]+ifunc\(\)[ ]+ifunc
 
Relocation section '.rel.plt' at offset 0x[0-9a-f]+ contains 1 entries:
[ ]+Offset[ ]+Info[ ]+Type[ ]+.*
[0-9a-f]+[ ]+[0-9a-f]+[ ]+R_386_JUMP_SLOT[ ]+ifunc\(\)[ ]+ifunc
/ld-ifunc/ifunc-3a-x86.d
4,5 → 4,5
#target: x86_64-*-* i?86-*-*
 
#...
[ \t0-9a-f]+:[ \t0-9a-f]+call[ \t0-9a-fq]+<\*ABS\*(\+0x1b0|\+0x260|)@plt>
[ \t0-9a-f]+:[ \t0-9a-f]+call[ \t0-9a-fq]+<\*ABS\*(\+0x1b0|\+0x240|)@plt>
#pass
/ld-ifunc/ifunc-15-i386.s
0,0 → 1,10
.text
.type foo, @function
.global
foo:
movl ifunc@GOT(%ebx), %eax
ret
.type ifunc, @gnu_indirect_function
.globl ifunc
ifunc:
ret
/ld-ifunc/ifunc-15-x86-64.d
0,0 → 1,13
#source: ifunc-15-x86-64.s
#ld: -shared -m elf_x86_64 -z nocombreloc
#as: --64
#readelf: -r --wide
#target: x86_64-*-*
 
Relocation section '.rela.got' at offset 0x[0-9a-f]+ contains 1 entries:
[ ]+Offset[ ]+Info[ ]+Type[ ]+.*
[0-9a-f]+[ ]+[0-9a-f]+[ ]+R_X86_64_GLOB_DAT[ ]+ifunc\(\)[ ]+ifunc \+ 0
 
Relocation section '.rela.plt' at offset 0x[0-9a-f]+ contains 1 entries:
[ ]+Offset[ ]+Info[ ]+Type[ ]+.*
[0-9a-f]+[ ]+[0-9a-f]+[ ]+R_X86_64_JUMP_SLOT[ ]+ifunc\(\)[ ]+ifunc \+ 0
/ld-ifunc/ifunc-15-x86-64.s
0,0 → 1,10
.text
.type foo, @function
.global
foo:
movl ifunc@GOTPCREL(%rip), %eax
ret
.type ifunc, @gnu_indirect_function
.globl ifunc
ifunc:
ret
/ld-ifunc/ifunc-16-x86-64.d
0,0 → 1,10
#source: ifunc-16-x86.s
#as: --64
#ld: -shared -melf_x86_64
#readelf: -r --wide
#target: x86_64-*-*
 
Relocation section '.rela.plt' at .*
[ ]+Offset[ ]+Info[ ]+Type[ ]+.*
[0-9a-f]+[ ]+[0-9a-f]+[ ]+R_X86_64_JUMP_SLOT[ ]+0+[ ]+ifunc \+ 0
[0-9a-f]+[ ]+[0-9a-f]+[ ]+R_X86_64_IRELATIVE[ ]+[0-9a-f]*
/ld-ifunc/ifunc-13-i386.d
5,15 → 5,14
#readelf: -r --wide
#target: x86_64-*-* i?86-*-*
 
Relocation section '.rel.got' at .*
Relocation section '.rel.got' at offset 0x[0-9a-f]+ contains 1 entries:
[ ]+Offset[ ]+Info[ ]+Type[ ]+.*
#...
[0-9a-f]+[ ]+[0-9a-f]+[ ]+R_386_GLOB_DAT[ ]+ifunc\(\)[ ]+ifunc
#...
Relocation section '.rel.ifunc' at .*
[0-9a-f]+[ ]+[0-9a-f]+[ ]+R_386_RELATIVE[ ]+
 
Relocation section '.rel.ifunc' at offset 0x[0-9a-f]+ contains 1 entries:
[ ]+Offset[ ]+Info[ ]+Type[ ]+.*
[0-9a-f]+[ ]+[0-9a-f]+[ ]+R_386_32[ ]+ifunc\(\)[ ]+ifunc
#...
Relocation section '.rel.plt' at .*
 
Relocation section '.rel.plt' at offset 0x[0-9a-f]+ contains 1 entries:
[ ]+Offset[ ]+Info[ ]+Type[ ]+.*
[0-9a-f]+[ ]+[0-9a-f]+[ ]+R_386_JUMP_SLOT[ ]+ifunc\(\)[ ]+ifunc
/ld-ifunc/ifunc-13-x86-64.d
5,14 → 5,10
#readelf: -r --wide
#target: x86_64-*-*
 
Relocation section '.rela.got' at .*
Relocation section '.rela.ifunc' at offset 0x[0-9a-f]+ contains 1 entries:
[ ]+Offset[ ]+Info[ ]+Type[ ]+.*
[0-9a-f]+[ ]+[0-9a-f]+[ ]+R_X86_64_GLOB_DAT[ ]+ifunc\(\)[ ]+ifunc \+ 0
#...
Relocation section '.rela.ifunc' at .*
[ ]+Offset[ ]+Info[ ]+Type[ ]+.*
[0-9a-f]+[ ]+[0-9a-f]+[ ]+R_X86_64_64[ ]+ifunc\(\)[ ]+ifunc \+ 0
#...
Relocation section '.rela.plt' at .*
 
Relocation section '.rela.plt' at offset 0x[0-9a-f]+ contains 1 entries:
[ ]+Offset[ ]+Info[ ]+Type[ ]+.*
[0-9a-f]+[ ]+[0-9a-f]+[ ]+R_X86_64_JUMP_SLOT[ ]+ifunc\(\)[ ]+ifunc \+ 0
/ld-ifunc/ifunc-16-i386.d
0,0 → 1,10
#source: ifunc-16-x86.s
#ld: -shared -m elf_i386
#as: --32
#readelf: -r --wide
#target: x86_64-*-* i?86-*-*
 
Relocation section '.rel.plt' at .*
[ ]+Offset[ ]+Info[ ]+Type[ ]+.*
[0-9a-f]+[ ]+[0-9a-f]+[ ]+R_386_JUMP_SLOT[ ]+0+[ ]+ifunc
[0-9a-f]+[ ]+[0-9a-f]+[ ]+R_386_IRELATIVE[ ]*
/ld-ifunc/ifunc-16-x86.s
0,0 → 1,17
.text
.globl fct
.type fct, @gnu_indirect_function
.set fct,resolve
.hidden int_fct
.globl int_fct
.set int_fct,fct
.p2align 4,,15
.type resolve, @function
resolve:
call ifunc@PLT
.size resolve, .-resolve
.globl g
.type g, @function
g:
jmp int_fct@PLT
.size g, .-g
/ld-x86-64/pr13082-6b.d
6,7 → 6,7
 
Relocation section '.rela.dyn' at offset 0x[0-9a-f]+ contains 1 entries:
Offset Info Type Sym. Value Symbol's Name \+ Addend
[0-9a-f]+ +[0-9a-f]+ +R_X86_64_IRELATIVE +[0-9a-f]+
[0-9a-f]+ +[0-9a-f]+ +R_X86_64_RELATIVE +[0-9a-f]+
 
Relocation section '.rela.plt' at offset 0x[0-9a-f]+ contains 1 entries:
Offset Info Type Sym. Value Symbol's Name \+ Addend
/ld-x86-64/pr13082-5a.d
4,10 → 4,9
#ld: -shared -melf32_x86_64
#readelf: -r --wide
 
Relocation section '.rela.dyn' at offset 0x[0-9a-f]+ contains 2 entries:
Relocation section '.rela.dyn' at offset 0x[0-9a-f]+ contains 1 entries:
Offset Info Type Sym. Value Symbol's Name \+ Addend
[0-9a-f]+ +[0-9a-f]+ +R_X86_64_32 +ifunc\(\)+ +ifunc \+ 0
[0-9a-f]+ +[0-9a-f]+ +R_X86_64_GLOB_DAT +ifunc\(\)+ +ifunc \+ 0
 
Relocation section '.rela.plt' at offset 0x[0-9a-f]+ contains 1 entries:
Offset Info Type Sym. Value Symbol's Name \+ Addend
/ld-x86-64/pr13082-5b.d
6,7 → 6,7
 
Relocation section '.rela.dyn' at offset 0x[0-9a-f]+ contains 1 entries:
Offset Info Type Sym. Value Symbol's Name \+ Addend
[0-9a-f]+ +[0-9a-f]+ +R_X86_64_IRELATIVE +[0-9a-f]+
[0-9a-f]+ +[0-9a-f]+ +R_X86_64_RELATIVE +[0-9a-f]+
 
Relocation section '.rela.plt' at offset 0x[0-9a-f]+ contains 1 entries:
Offset Info Type Sym. Value Symbol's Name \+ Addend
/ld-x86-64/pr13082-6a.d
6,7 → 6,7
 
Relocation section '.rela.dyn' at offset 0x[0-9a-f]+ contains 1 entries:
Offset Info Type Sym. Value Symbol's Name \+ Addend
[0-9a-f]+ +[0-9a-f]+ +R_X86_64_IRELATIVE +[0-9a-f]+
[0-9a-f]+ +[0-9a-f]+ +R_X86_64_RELATIVE +[0-9a-f]+
 
Relocation section '.rela.plt' at offset 0x[0-9a-f]+ contains 1 entries:
Offset Info Type Sym. Value Symbol's Name \+ Addend

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.