diff options
author | Gabi Falk <gabifalk@gmx.com> | 2024-04-30 20:05:04 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2024-05-02 11:51:23 +0100 |
commit | ded2e0753e9c46debeb2e0d26c5e560d2581d314 (patch) | |
tree | 3d2ba85b29c038ebb4ea915c1ebf8b0f2234ebab /Makefile | |
parent | 5a2cf833f5772d6c37c7adac388dd9af9cc1c4b9 (diff) | |
download | glibc-ded2e0753e9c46debeb2e0d26c5e560d2581d314.zip glibc-ded2e0753e9c46debeb2e0d26c5e560d2581d314.tar.gz glibc-ded2e0753e9c46debeb2e0d26c5e560d2581d314.tar.bz2 |
Add a test to check for duplicate definitions in the static library
This change follows two previous fixes addressing multiple definitions
of __memcpy_chk and __mempcpy_chk functions on i586, and __memmove_chk
and __memset_chk functions on i686. The test is intended to prevent
such issues from occurring in the future.
Signed-off-by: Gabi Falk <gabifalk@gmx.com>
Reviewed-by: H.J. Lu <hjl.tools@gmail.com>
Reviewed-by: Dmitry V. Levin <ldv@altlinux.org>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -577,6 +577,13 @@ $(objpfx)lint-makefiles.out: scripts/lint-makefiles.sh $(SHELL) $< "$(PYTHON)" `pwd` > $@ ; \ $(evaluate-test) +# Link libc.a as a whole to verify that it does not contain multiple +# definitions of any symbols. +tests-special += $(objpfx)link-static-libc.out +$(objpfx)link-static-libc.out: + $(LINK.o) $(whole-archive) -r $(objpfx)libc.a -o /dev/null > $@ 2>&1; \ + $(evaluate-test) + # Print test summary for tests in $1 .sum file; # $2 is optional test identifier. # Fail if there are unexpected failures in the test results. |