diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2014-12-19 06:30:31 -0800 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2015-01-30 04:07:13 -0800 |
commit | ccf880ba92fe1ef7f29f17062ba6aa2aa7b52f50 (patch) | |
tree | c441cb798a33162ef9a86637678aa9806640cf84 | |
parent | b658fdd82b4524cf6a39881d092caa23f63d93ac (diff) | |
download | glibc-ccf880ba92fe1ef7f29f17062ba6aa2aa7b52f50.tar.gz glibc-ccf880ba92fe1ef7f29f17062ba6aa2aa7b52f50.tar.xz glibc-ccf880ba92fe1ef7f29f17062ba6aa2aa7b52f50.zip |
Compile vismain with -fPIC and link with -pie
-rw-r--r-- | elf/Makefile | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/elf/Makefile b/elf/Makefile index e5b142c7c6..02ab9d980a 100644 --- a/elf/Makefile +++ b/elf/Makefile @@ -130,7 +130,7 @@ endif tests += $(tests-static) ifeq (yes,$(build-shared)) tests += loadtest restest1 preloadtest loadfail multiload origtest resolvfail \ - constload1 order vismain noload filter unload \ + constload1 order noload filter unload \ reldep reldep2 reldep3 reldep4 nodelete nodelete2 \ nodlopen nodlopen2 neededtest neededtest2 \ neededtest3 neededtest4 unload2 lateglobal initfirst global \ @@ -218,6 +218,9 @@ ifeq (yesyes,$(have-fpie)$(build-shared)) modules-names += tst-piemod1 tests += tst-pie1 tst-pie2 tests-pie += tst-pie1 tst-pie2 +tests += vismain +tests-pie += vismain +CFLAGS-vismain.c = $(pic-ccflag) endif modules-execstack-yes = tst-execstack-mod extra-test-objs += $(addsuffix .os,$(strip $(modules-names))) |