[Bug rtl-optimization/113617] [14 Regression] Symbol ... referenced in section `.data.rel.ro.local' of ...: defined in discarded section ... since r14-4944
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Mar 7 14:13:02 GMT 2024
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113617
--- Comment #24 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
(In reply to Francois-Xavier Coudert from comment #23)
> It's not being passed -shared on darwin:
Then that means the shared effective target doesn't work properly on darwin
then.
It even has hacks for darwin in it though:
# Darwin's linker defaults to error on undefined (which makes it look as
# if we do not support shared) but we can tell it to allow the symbols used
# here to be undefined.
set extra_flags ""
if { [istarget *-*-darwin\[912\]*] } {
set extra_flags "-Wl,-U,_foo,-U,_bar"
}
...
More information about the Gcc-bugs
mailing list