[PATCH] ld: Properly check static link of dynamic object
Alan Modra
amodra@gmail.com
Thu Mar 12 04:19:00 GMT 2020
More information about the Binutils mailing list
Thu Mar 12 04:19:00 GMT 2020
- Previous message (by thread): [PATCH] x86: Check static link of dynamic objects
- Next message (by thread): [PATCH] ld: Properly check static link of dynamic object
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Wed, Mar 11, 2020 at 04:57:52PM -0700, H.J. Lu via Binutils wrote: > When -static is passed to gcc, gcc passes it to linker before any input > files to create static executable. If -Bdynamic is also passed to linker > from command-line, linker should issue an error if dynamic object is used. I can't say I like the idea of giving -static special meaning when it occurs before input files, making its effect sticky. The sticky effect just seems wrong to me and liable to break some project somewhere. PR 24920 is really just a user being surprised when they misuse their tools. That and the default dynamic linker being wrong. Why not fix the x86_64 default dynamic linker? -- Alan Modra Australia Development Lab, IBM
- Previous message (by thread): [PATCH] x86: Check static link of dynamic objects
- Next message (by thread): [PATCH] ld: Properly check static link of dynamic object
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Binutils mailing list