diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2024-08-14 08:29:15 -0700 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2024-08-14 08:40:18 -0700 |
commit | 8be33827cdc57fd7c31e84966f3c445b986be4ff (patch) | |
tree | 877d4ca0b26df56942b735005d544d971d185580 /gdb/python/python.c | |
parent | b5e0214aad5de80f3d47406dc5182baeceffe1e0 (diff) | |
download | binutils-8be33827cdc57fd7c31e84966f3c445b986be4ff.zip binutils-8be33827cdc57fd7c31e84966f3c445b986be4ff.tar.gz binutils-8be33827cdc57fd7c31e84966f3c445b986be4ff.tar.bz2 |
ld: Add an LTO test for common symbol override
Linker checks if a symbol in an archive member is a real definition, not
common, before including the archive member in the link output so that
only a real definition in archive will override the common symbol in
object file. Add an LTO test to verify that a real definition in archive
overrides the common symbol in object file.
* testsuite/ld-plugin/common-1.c: New file.
* testsuite/ld-plugin/definition-1.c: Likewise.
* testsuite/ld-plugin/lto.exp: Run common tests.
Signed-off-by: H.J. Lu <hjl.tools@gmail.com>
Diffstat (limited to 'gdb/python/python.c')
0 files changed, 0 insertions, 0 deletions