3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/tools/misc/binutils
Matthew Justin Bauer 412e823f29
binutils: disable format hardening
This fails for me:

> compressed_output.cc:320:20: error: format string is not a string literal (potentially insecure) [-Werror,-Wformat-security]
>       gold_warning(_("not compressing section data: zlib error"));
>                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> ./system.h:40:20: note: expanded from macro '_'
> # define _(String) gettext (String)
>                    ^~~~~~~~~~~~~~~~
> compressed_output.cc:320:20: note: treat the string as an argument to avoid this
>       gold_warning(_("not compressing section data: zlib error"));
>                    ^
>                    "%s",
> ./system.h:40:20: note: expanded from macro '_'
> # define _(String) gettext (String)
                   ^

Disabling format hardening should hopefully be harmless here. If it's a problem we can also make it conditional.

/cc @Ericson2314
2018-06-12 22:54:10 -04:00
..
always-search-rpath.patch
build-components-separately.patch
default.nix binutils: disable format hardening 2018-06-12 22:54:10 -04:00
deterministic.patch
disambiguate-arm-targets.patch
dtneeded.patch
gold-symbol-visibility.patch binutils: Revert apparently-broken multiple-definition support in gold. 2018-03-20 17:22:10 -04:00
new-dtags.patch
no-plugins.patch
pt-pax-flags.patch
relax-R_AARCH64_ABS32-R_AARCH64_ABS16-absolute.patch binutils: apply patch on aarch64 to fix https://sourceware.org/bugzilla/show_bug.cgi?id=22764 2018-04-28 19:46:05 +01:00
support-ios.patch Add missing ios triples to bfd 2018-06-01 17:01:39 +01:00