support stabs on mach-o GAS.

bfd:

	* mach-o.c (bfd_mach_o_mangle_symbols): Put in the section index
	for stabd symbols.
	(bfd_mach_o_primary_symbol_sort_key): Adjust for stabs.
	(bfd_mach_o_cf_symbols): Likewise.

gas:

	* config/obj-macho.c (obj_macho_process_stab): New.
	* config/obj-macho.h (OBJ_PROCESS_STAB): Define.
	(obj_macho_process_stab): Declare.
This commit is contained in:
Iain Sandoe
2012-01-03 13:18:48 +00:00
parent f2b324f1f9
commit 68588f9540
5 changed files with 77 additions and 17 deletions

View File

@@ -1,5 +1,5 @@
/* Mach-O object file format for gas, the assembler.
Copyright 2009, 2011 Free Software Foundation, Inc.
Copyright 2009, 2011, 2012 Free Software Foundation, Inc.
This file is part of GAS, the GNU Assembler.
@@ -58,4 +58,7 @@ extern const pseudo_typeS mach_o_pseudo_table[];
#define EMIT_SECTION_SYMBOLS 0
#define OBJ_PROCESS_STAB(SEG,W,S,T,O,D) obj_mach_o_process_stab(W,S,T,O,D)
extern void obj_mach_o_process_stab (int, const char *,int, int, int);
#endif /* _OBJ_MACH_O_H */