nixpkgs/pkgs/development/tools/misc/binutils/deterministic.patch
luc65r 3205b32bf6 Revert commits on binutils for OpenRISC 1000
This reverts commits
    ebd89f6de1894f3c3d22e4bb8cb879be7e9556b3
    c6f6db77ac53e84006353396283d271cb1b22460
    257fb62387f1324a9cb75465dceb3d84eefc2b4d
    dbe556af9cb9d00c6c50d76a1c1abade5455ab2f
2020-12-28 08:43:31 +01:00

13 lines
472 B
Diff

diff -ur orig/binutils-2.23.1/ld/ldlang.c binutils-2.23.1/ld/ldlang.c
--- orig/ld/ldlang.c
+++ new/ld/ldlang.c
@@ -3095,6 +3095,8 @@
ldfile_output_machine))
einfo (_("%P%F:%s: can not set architecture: %E\n"), name);
+ link_info.output_bfd->flags |= BFD_DETERMINISTIC_OUTPUT;
+
link_info.hash = bfd_link_hash_table_create (link_info.output_bfd);
if (link_info.hash == NULL)
einfo (_("%P%F: can not create hash table: %E\n"));