This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug other/54182] -fvisibility=hidden shouldn't be disabled with -fPIE -pie


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]