more sysroot support in the linker
Alexandre Oliva
aoliva@redhat.com
Sun Mar 23 10:33:00 GMT 2003
More information about the Binutils mailing list
Sun Mar 23 10:33:00 GMT 2003
- Previous message (by thread): supply promotion item from china
- Next message (by thread): more sysroot support in the linker
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Sometimes GCC passes to the linker -L flags that point into the sysroot tree. In this case, our sysroot triggers didn't take effect, so full pathnames in say glibc libc.so linker scripts wouldn't be searched inside the sysroot. I found it confusing that -L flags would override sysroot. Also, a full pathname of such a linker script, specified in the linker command line, would not be regarded as inside the sysroot either. This patch fixes both cases, also making the error message that you get about the linker not having been able to find a full pathname inside the sys-root (even if it would be found if searched outside the sys-root, which we don't want to do; I ran into this because I still had an old libc.so in the sysroot tree, with pathnames containing the sysroot pathnames). It also removes a situation I consider wrong, which is that we'd iterate the search for a full pathname over all search directories. This is silly. We already do the search for full pathnames before entering the loop, so I just got us to return immediately when given full pathnames. Tested on athlon-pc-linux-gnu-x-mips64-linux-gnu. Ok to install? -------------- next part -------------- A non-text attachment was scrubbed... Name: ld-sysroot-implied.patch Type: text/x-patch Size: 5544 bytes Desc: not available URL: <https://sourceware.org/pipermail/binutils/attachments/20030323/f78ce323/attachment.bin> -------------- next part -------------- -- Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/ Red Hat GCC Developer aoliva@{redhat.com, gcc.gnu.org} CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org} Free Software Evangelist Professional serial bug killer
- Previous message (by thread): supply promotion item from china
- Next message (by thread): more sysroot support in the linker
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Binutils mailing list