bfd/elfnn-ia64.c: enable --gc-sections support

Message ID CAP5F8cK7LUi3Krnjo8eMb-1ECqPbu=gD3FHwFWYp7CGFTyDXcQ@mail.gmail.com
State New
Headers show
Series
  • bfd/elfnn-ia64.c: enable --gc-sections support
Related show

Commit Message

Jason Duerstock Feb. 17, 2018, 7:37 p.m.
As suggested in long ago in a galaxy far, far away [1], I tried
turning it on and it seems to work, as is evidenced by the Mesa
package in Debian/ia64.  Please enable it with the following patch.

Thanks,

Jason


[1] https://sourceware.org/ml/binutils/2007-07/msg00241.html

---

Comments

Nick Clifton Feb. 20, 2018, 1:23 p.m. | #1
Hi Jason,

> As suggested in long ago in a galaxy far, far away [1], I tried

> turning it on and it seems to work, as is evidenced by the Mesa

> package in Debian/ia64.  Please enable it with the following patch.


Done.

Cheers
  Nick

Patch

--- bfd/elfnn-ia64.c    2018-01-13 08:31:15.000000000 -0500
+++ bfd/elfnn-ia64.c    2018-02-16 19:58:31.395896126 -0500
@@ -5064,6 +5064,7 @@ 
        elfNN_ia64_print_private_bfd_data

 #define elf_backend_plt_readonly       1
+#define elf_backend_can_gc_sections    1
 #define elf_backend_want_plt_sym       0
 #define elf_backend_plt_alignment      5
 #define elf_backend_got_header_size    0