tech-toolchain archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

re: eh_globals.o in libstdc++.a not relocatable?



On Sun, 2 Apr 2023, matthew green wrote:

it was compiled with -fPIE... which i thought was a super-set of -fPIC,
but i see that the manual says otherwise.


Yeah, the compiler generates slightly different code to access
things like global vars. -- PC-relative (in the standard memory
model) for -fpie, but, GOT-PC-relative for -fpic -- and so uses
different relocation types in the `rela.*' sections ... which is
what the linker is complaining about here.

Q1: Why is this linking against the system libstdc++ instead of the
     recently compiled one?

this is the host compiler's libstdc++, building a host tool, so
that it's using it is expected..


I see, OK then..

-RVP


Home | Main Index | Thread Index | Old Index