OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

47 lines
1.7 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../binutils/hash-style-gnu.patch
  5. # Copyright (C) 2015 The OpenSDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This patch file is dual-licensed. It is available under the license the
  10. # patched project is licensed under, as long as it is an OpenSource license
  11. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  12. # of the GNU General Public License as published by the Free Software
  13. # Foundation; either version 2 of the License, or (at your option) any later
  14. # version.
  15. # --- SDE-COPYRIGHT-NOTE-END ---
  16. # DP: Default to --hash-style=gnu in ld.bfd and ld.gold.
  17. --- a/ld/ldmain.c
  18. +++ b/ld/ldmain.c
  19. @@ -287,6 +288,15 @@
  20. emulation = get_emulation (argc, argv);
  21. ldemul_choose_mode (emulation);
  22. default_target = ldemul_choose_target (argc, argv);
  23. +
  24. + /* Default to --hash-style=gnu */
  25. + if (strcmp (default_target, "elf32-tradbigmips") != 0
  26. + && strcmp (default_target, "elf32-tradlittlemips") != 0)
  27. + {
  28. + link_info.emit_gnu_hash = TRUE;
  29. + link_info.emit_hash = FALSE;
  30. + }
  31. +
  32. config.maxpagesize = bfd_emul_get_maxpagesize (default_target);
  33. config.commonpagesize = bfd_emul_get_commonpagesize (default_target);
  34. lang_init ();
  35. --- a/gold/options.h
  36. +++ b/gold/options.h
  37. @@ -794,7 +794,7 @@
  38. N_("Min fraction of empty buckets in dynamic hash"),
  39. N_("FRACTION"));
  40. - DEFINE_enum(hash_style, options::TWO_DASHES, '\0', "sysv",
  41. + DEFINE_enum(hash_style, options::TWO_DASHES, '\0', "gnu",
  42. N_("Dynamic hash style"), N_("[sysv,gnu,both]"),
  43. {"sysv", "gnu", "both"});