[Bug driver/70419] descriptions of -fpic/-fPIC and -fpic/-fPIE aren't clear and contain syntax error

2016-11-06 Thread balint at balintreczey dot hu
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70419 --- Comment #2 from Balint Reczey --- (In reply to Balint Reczey from comment #1) > Also please fix the error message emitted when trying to link a non-PIE > non-PIC static library to a position independent executable: > > $ cat m.c > #include

[Bug driver/70419] descriptions of -fpic/-fPIC and -fpic/-fPIE aren't clear and contain syntax error

2016-11-06 Thread balint at balintreczey dot hu
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70419 Balint Reczey changed: What|Removed |Added CC||balint at balintreczey dot hu

[Bug middle-end/34475] TLS and PIE don't mix on x86_64

2016-11-06 Thread balint at balintreczey dot hu
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=34475 Balint Reczey changed: What|Removed |Added CC||balint at balintreczey dot hu

[Bug c/77464] gcc -no-pie breaks -shared

2016-09-21 Thread balint at balintreczey dot hu
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77464 --- Comment #11 from Balint Reczey --- (In reply to Manuel López-Ibáñez from comment #10) > (In reply to Andrew Pinski from comment #5) > > (In reply to Manuel López-Ibáñez from comment #3) > > > Or at least give a clearer error that mentions -fP

[Bug c/77464] gcc -no-pie breaks -shared

2016-09-03 Thread balint at balintreczey dot hu
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77464 --- Comment #7 from Balint Reczey --- (In reply to Andrew Pinski from comment #1) > You need -fPIC to create shared libraries. I know that the relevant options are -fPIC and -fno-PIC. I have opened the bug to handle -shared -no-pie and -no-pie -

[Bug c/77464] gcc -no-pie breaks -shared

2016-09-03 Thread balint at balintreczey dot hu
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77464 --- Comment #6 from Balint Reczey --- (In reply to Andrew Pinski from comment #5) > (In reply to Manuel López-Ibáñez from comment #3) > > Or at least give a clearer error that mentions -fPIC ... > > Actually this is not a driver issue just a bin

[Bug c/77464] New: gcc -no-pie breaks -shared

2016-09-02 Thread balint at balintreczey dot hu
: unassigned at gcc dot gnu.org Reporter: balint at balintreczey dot hu Target Milestone: --- Compiling shared libraries is broken with -no-pie, which should be a noop in this case. Test: # echo "int bar(void) {return 0;}" > foo.c # gcc -shared foo.c # gcc -shared -no-pie f