diff options
author | Alan Modra <amodra@gmail.com> | 2011-10-06 10:07:17 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2011-10-06 10:07:17 +0000 |
commit | 69ee6ab254ad1fd822840f9fd2c1907e13620467 (patch) | |
tree | 25633ac79c973e056c1a863e134aae2d9472de8d /ld/testsuite/ld-plugin/plugin-9.d | |
parent | 989993d80a97a66f24c22a34ae9f28d9cd7387ca (diff) | |
download | gdb-69ee6ab254ad1fd822840f9fd2c1907e13620467.zip gdb-69ee6ab254ad1fd822840f9fd2c1907e13620467.tar.gz gdb-69ee6ab254ad1fd822840f9fd2c1907e13620467.tar.bz2 |
PR ld/13329
ld/
* plugin.c (tv_header_tags): Add LDPT_GET_SYMBOLS_V2.
(set_tv_header): Handle it. Adjust LDPT_GET_SYMBOLS. Return void.
(get_symbols): Add def_ironly_exp param. Return that value for
syms exported from shared libs.
(get_symbols_v1, get_symbols_v2): New wrapper functions.
* testplug.c: Update for above changes.
ld/testsuite/
* 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.
Diffstat (limited to 'ld/testsuite/ld-plugin/plugin-9.d')
-rw-r--r-- | ld/testsuite/ld-plugin/plugin-9.d | 49 |
1 files changed, 25 insertions, 24 deletions
diff --git a/ld/testsuite/ld-plugin/plugin-9.d b/ld/testsuite/ld-plugin/plugin-9.d index b74f4a6..c2ebc6b 100644 --- a/ld/testsuite/ld-plugin/plugin-9.d +++ b/ld/testsuite/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 |