[Bug ld/13600] protected visibility creates bogus relocation

2012-01-19 Thread rguenth at gcc dot gnu.org
http://sourceware.org/bugzilla/show_bug.cgi?id=13600 --- Comment #5 from Richard Guenther 2012-01-19 09:16:32 UTC --- (In reply to comment #4) > Both ld and ld.so go extra efforts to make sure that > the same function pointer value is used for protected > function in the entire process. If we d

[Bug gold/13602] gold -Ttext and --section-start=.text mismatch

2012-01-19 Thread christophe.lyon at st dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=13602 --- Comment #2 from christophe.lyon at st dot com 2012-01-19 10:00:44 UTC --- Sorry, I thought gold was a drop-in replacement for bfd-ld. I could not find a gold man page in my binutils-2.22 install. Where should I look to have the actual gold

[Bug ld/13600] protected visibility creates bogus relocation

2012-01-19 Thread amodra at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=13600 --- Comment #6 from Alan Modra 2012-01-19 10:00:36 UTC --- In comment #2 I was forgetting what we do in an executable. In the main executable (which might be non-PIC), if we take the address of foo and the address of foo is written into a rea

[Bug ld/13600] protected visibility creates bogus relocation

2012-01-19 Thread rguenther at suse dot de
http://sourceware.org/bugzilla/show_bug.cgi?id=13600 --- Comment #7 from rguenther at suse dot de 2012-01-19 10:22:22 UTC --- On Thu, 19 Jan 2012, amodra at gmail dot com wrote: > http://sourceware.org/bugzilla/show_bug.cgi?id=13600 > > --- Comment #6 from Alan Modra 2012-01-19 10:00:36 > UTC

[Bug ld/13600] protected visibility creates bogus relocation

2012-01-19 Thread amodra at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=13600 --- Comment #8 from Alan Modra 2012-01-19 10:50:45 UTC --- const void *const p = (void *)foo; might be more interesting. Or const struct blah { int (*f) (); int x,y,z,w; } f = { .f = printf }; -- Configure bugmail: http://sourceware.or

[Bug ld/13600] protected visibility creates bogus relocation

2012-01-19 Thread rguenther at suse dot de
http://sourceware.org/bugzilla/show_bug.cgi?id=13600 --- Comment #9 from rguenther at suse dot de 2012-01-19 11:05:40 UTC --- On Thu, 19 Jan 2012, amodra at gmail dot com wrote: > http://sourceware.org/bugzilla/show_bug.cgi?id=13600 > > --- Comment #8 from Alan Modra 2012-01-19 10:50:45 > UTC

[Bug ld/13600] protected visibility creates bogus relocation

2012-01-19 Thread amodra at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=13600 --- Comment #10 from Alan Modra 2012-01-19 11:57:15 UTC --- That's why you make the address of foo the plt entry for foo in the executable. The address is fixed at link time. However, it does mean that address of a default or protected visib

[Bug ld/13600] protected visibility creates bogus relocation

2012-01-19 Thread rguenther at suse dot de
http://sourceware.org/bugzilla/show_bug.cgi?id=13600 --- Comment #11 from rguenther at suse dot de 2012-01-19 12:04:23 UTC --- On Thu, 19 Jan 2012, amodra at gmail dot com wrote: > http://sourceware.org/bugzilla/show_bug.cgi?id=13600 > > --- Comment #10 from Alan Modra 2012-01-19 11:57:15 > UT

[Bug ld/13600] protected visibility creates bogus relocation

2012-01-19 Thread amodra at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=13600 --- Comment #12 from Alan Modra 2012-01-19 12:49:02 UTC --- > Well, if I put that constant into a shared library _and_ I put one into > the executable I'm still lost, no? No, because shared libraries must be -fpic/PIC and as you note > Btw,

[Bug ld/13600] protected visibility creates bogus relocation

2012-01-19 Thread rguenther at suse dot de
http://sourceware.org/bugzilla/show_bug.cgi?id=13600 --- Comment #13 from rguenther at suse dot de 2012-01-19 13:22:03 UTC --- On Thu, 19 Jan 2012, amodra at gmail dot com wrote: > http://sourceware.org/bugzilla/show_bug.cgi?id=13600 > > --- Comment #12 from Alan Modra 2012-01-19 12:49:02 > UT

[Bug ld/12017] Would like to disable compiler warning re use of tmpnam

2012-01-19 Thread nickc at redhat dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=12017 Nick Clifton changed: What|Removed |Added CC||nickc at redhat dot com --- Comment #2

[Bug ld/12017] Would like to disable compiler warning re use of tmpnam

2012-01-19 Thread vapier at gentoo dot org
http://sourceware.org/bugzilla/show_bug.cgi?id=12017 Mike Frysinger changed: What|Removed |Added CC||vapier at gentoo dot org --- Comment

[Bug gold/13602] gold -Ttext and --section-start=.text mismatch

2012-01-19 Thread ian at airs dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=13602 Ian Lance Taylor changed: What|Removed |Added Status|NEW |RESOLVED Resolution|