This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug other/54182] -fvisibility=hidden shouldn't be disabled with -fPIE -pie
- From: "wbrana at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 10 Aug 2012 13:40:29 +0000
- Subject: [Bug other/54182] -fvisibility=hidden shouldn't be disabled with -fPIE -pie
- Auto-submitted: auto-generated
- References: <bug-54182-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54182
--- Comment #8 from wbrana <wbrana at gmail dot com> 2012-08-10 13:40:29 UTC ---
int func() {
return random();
}
int main(){
return func();
}
$ gcc-4.7.2 -O2 1.c -o 1
$ nm -CD ./1
w __gmon_start__
U __libc_start_main
U random
$ gcc-4.7.2 -O2 -fPIE -pie 1.c -o 1
$ nm -CD ./1
w _ITM_deregisterTMCloneTable
w _ITM_registerTMCloneTable
w _Jv_RegisterClasses
0000000000201040 B __bss_start
w __cxa_finalize
w __gmon_start__
00000000000008a0 T __libc_csu_fini
00000000000008b0 T __libc_csu_init
U __libc_start_main
0000000000201040 D _edata
0000000000201048 B _end
0000000000000760 T main
U random