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
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70419
Balint Reczey changed:
What|Removed |Added
CC||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
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
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 -
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
: 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