diff options
author | Siddhesh Poyarekar <siddhesh@sourceware.org> | 2022-01-12 23:34:23 +0530 |
---|---|---|
committer | Siddhesh Poyarekar <siddhesh@sourceware.org> | 2022-01-12 23:34:23 +0530 |
commit | db27f1251b008280a29d540b4f8ab2a38a0d80af (patch) | |
tree | 5a4b377ce8dc2908a88f50cbf7cf7167b14e0df8 /Makerules | |
parent | f0ed50e1c783395c424e4d51587b0ade5c1c3006 (diff) | |
download | glibc-db27f1251b008280a29d540b4f8ab2a38a0d80af.zip glibc-db27f1251b008280a29d540b4f8ab2a38a0d80af.tar.gz glibc-db27f1251b008280a29d540b4f8ab2a38a0d80af.tar.bz2 |
debug: Autogenerate _FORTIFY_SOURCE tests
Rename debug/tst-chk1.c to debug/tst-fortify.c and add make hackery to
autogenerate tests with different macros enabled to build and run the
same test with different configurations as well as different
fortification levels.
The change also ends up expanding the -lfs tests to include
_FORTIFY_SOURCE=3.
Signed-off-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Diffstat (limited to 'Makerules')
-rw-r--r-- | Makerules | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -424,6 +424,12 @@ $(objpfx)%$o: $(objpfx)%.c $(before-compile); $$(compile-command.c) endef object-suffixes-left := $(all-object-suffixes) include $(o-iterator) + +define o-iterator-doit +$(objpfx)%$o: $(objpfx)%.cc $(before-compile); $$(compile-command.cc) +endef +object-suffixes-left := $(all-object-suffixes) +include $(o-iterator) endif # Generate .dT files as we compile. |