[PATCH]: Support GC sections for HC11/HC12

Alan Modra amodra@bigpond.net.au
Sun Aug 18 23:33:00 GMT 2002


I'm turning off can_gc_sections for elf32-m68hc12.c.  It doesn't have
a hope of working at the moment since this backend uses the generic
linker.  The ELF gc functions need a hash table with
elf_link_hash_entry's, not generic_link_hash_entry's.

	* elf32-m68hc12.c (elf_backend_can_gc_sections): False.

Index: bfd/elf32-m68hc12.c
===================================================================
RCS file: /cvs/src/src/bfd/elf32-m68hc12.c,v
retrieving revision 1.6
diff -u -p -r1.6 elf32-m68hc12.c
--- bfd/elf32-m68hc12.c	13 Aug 2002 21:15:47 -0000	1.6
+++ bfd/elf32-m68hc12.c	19 Aug 2002 06:30:14 -0000
@@ -784,7 +784,8 @@ _bfd_m68hc12_elf_print_private_bfd_data 
 #define elf_backend_gc_sweep_hook    elf32_m68hc11_gc_sweep_hook
 #define elf_backend_object_p	0
 #define elf_backend_final_write_processing	0
-#define elf_backend_can_gc_sections		1
+/* Disabled as this backend uses the generic linker.  */
+#define elf_backend_can_gc_sections		0
 
 #define bfd_elf32_bfd_merge_private_bfd_data \
 					_bfd_m68hc12_elf_merge_private_bfd_data

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre



More information about the Binutils mailing list