ld has trouble parsing -z options specified with -Wl
The -Wl flag is supposed to be a way to pass options to the linker, indirectly via the compiler driver (e.g. gcc), but seeing as buggy build systems often pass it to ld support for it exists directly in the linker; the problem is support isn't good enough. The linker chokes on arguments in the form of -Wl,-z,assert-deflib (which is perfectly valid) because it's caught out by the second comma.
Updated by Electric Monk over 3 years ago
- Status changed from New to Closed
- % Done changed from 0 to 100
commit 202ca9ae460faf1825ede303c46abd4e1f6cee28 Author: Andrew Stormont <email@example.com> Date: 2017-09-07T18:14:48.000Z 8616 ld has trouble parsing -z options specified with -Wl Reviewed by: Toomas Soome <firstname.lastname@example.org> Reviewed by: Yuri Pankov <email@example.com> Approved by: Richard Lowe <firstname.lastname@example.org>