[Bug target/105305] ARM32: gcc does not pass all library directories to linker

2022-11-02 Thread rui314 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105305

--- Comment #3 from Rui Ueyama  ---
By other ld's, what linkers did you have in your mind? If lld, mold and gold
don't hard code /usr and /usr/lib, then the only remaining linker is GNU ld.

It doesn't seem like POSIX says about the default library search paths. I don't
believe POSIX even mandates the existence of /usr and /usr/lib. macOS doesn't
have such directories, but IIUC macOS at least one point in the past certified
as POSIX compliant.

[Bug target/105305] ARM32: gcc does not pass all library directories to linker

2022-11-02 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105305

--- Comment #2 from Andrew Pinski  ---
>The code to explicitly exclude "obvious" directories is here

That code has been there since before 1993. So I wonder if all other ld's
always included /usr and /usr/lib by default. It is only the newer ones which
don't.

Does POSIX say anything about ld behavior?

[Bug target/105305] ARM32: gcc does not pass all library directories to linker

2022-04-19 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105305

Andrew Pinski  changed:

   What|Removed |Added

 Target||arm*-*-*

--- Comment #1 from Andrew Pinski  ---
Gold also didn't search any by default.