mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-27 04:52:05 +08:00
9e2dec4710
Mark the unused plugin defined symbol in elf_link_input_bfd instead of _bfd_elf_fix_symbol_flags. Limit the PR ld/12365 test to x86 targets. bfd/ PR ld/12365 PR ld/14272 * elflink.c (_bfd_elf_fix_symbol_flags): Revert the last change. (elf_link_input_bfd): Mark the plugin symbol undefined if it is referenced from a non-IR file. ld/testsuite/ PR ld/12365 PR ld/14272 * ld-plugin/lto.exp: Run the PR ld/12365 test only for x86 targets. * ld-plugin/plugin-7.d: Updated. * ld-plugin/plugin-8.d: Likewise.
35 lines
1.2 KiB
Makefile
35 lines
1.2 KiB
Makefile
Hello from testplugin.
|
|
.*: 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_GET_VIEW 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
|
|
hook called: claim_file tmpdir/text.o \[@0/.* not claimed
|
|
#...
|
|
hook called: all symbols read.
|
|
tmpdir/main.o: In function `main':
|
|
.*main.c.*: undefined reference to `func'
|
|
hook called: cleanup.
|
|
#...
|