mirror of
https://frontier.innolan.net/github/amigaos-binutils.git
synced 2026-09-12 04:31:29 +00:00
Fix N_WARNING .stabs handling.
* gas/config/obj-aout.h (N_REGISTER): Use 18 as fake N_TYPE for SEG_REGISTER. * gas/config/obj-aout.c (N_TYPE_seg): Move SEG_REGISTER to its new position. * gas/symbols.h (N_REGISTER): Do not redefine if already present.
This commit is contained in:
@@ -65,9 +65,9 @@ const segT N_TYPE_seg[N_TYPE + 2] =
|
|||||||
SEG_BSS, /* N_BSS == 8 */
|
SEG_BSS, /* N_BSS == 8 */
|
||||||
SEG_GOOF,
|
SEG_GOOF,
|
||||||
SEG_GOOF, SEG_GOOF, SEG_GOOF, SEG_GOOF, SEG_GOOF, SEG_GOOF, SEG_GOOF, SEG_GOOF,
|
SEG_GOOF, SEG_GOOF, SEG_GOOF, SEG_GOOF, SEG_GOOF, SEG_GOOF, SEG_GOOF, SEG_GOOF,
|
||||||
SEG_GOOF, SEG_GOOF, SEG_GOOF, SEG_GOOF, SEG_GOOF, SEG_GOOF, SEG_GOOF, SEG_GOOF,
|
SEG_REGISTER, SEG_GOOF, SEG_GOOF, SEG_GOOF, SEG_GOOF, SEG_GOOF, SEG_GOOF, SEG_GOOF,
|
||||||
SEG_GOOF, SEG_GOOF, SEG_GOOF, SEG_GOOF,
|
SEG_GOOF, SEG_GOOF, SEG_GOOF, SEG_GOOF,
|
||||||
SEG_REGISTER, /* dummy N_REGISTER for regs = 30 */
|
SEG_GOOF,
|
||||||
SEG_GOOF,
|
SEG_GOOF,
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -44,6 +44,7 @@
|
|||||||
|
|
||||||
extern const short seg_N_TYPE[];
|
extern const short seg_N_TYPE[];
|
||||||
extern const segT N_TYPE_seg[];
|
extern const segT N_TYPE_seg[];
|
||||||
|
#define N_REGISTER 18 /* abuse N_COMM; 30 conflicts with N_WARNING! */
|
||||||
|
|
||||||
#ifndef DEFAULT_MAGIC_NUMBER_FOR_OBJECT_FILE
|
#ifndef DEFAULT_MAGIC_NUMBER_FOR_OBJECT_FILE
|
||||||
#define DEFAULT_MAGIC_NUMBER_FOR_OBJECT_FILE (OMAGIC)
|
#define DEFAULT_MAGIC_NUMBER_FOR_OBJECT_FILE (OMAGIC)
|
||||||
|
|||||||
@@ -144,7 +144,9 @@ extern const segT N_TYPE_seg[]; /* subseg.c */
|
|||||||
#define SEGMENT_TO_SYMBOL_TYPE(seg) ( seg_N_TYPE [(int) (seg)] )
|
#define SEGMENT_TO_SYMBOL_TYPE(seg) ( seg_N_TYPE [(int) (seg)] )
|
||||||
extern const short seg_N_TYPE[];/* subseg.c */
|
extern const short seg_N_TYPE[];/* subseg.c */
|
||||||
|
|
||||||
|
#ifndef N_REGISTER
|
||||||
#define N_REGISTER 30 /* Fake N_TYPE value for SEG_REGISTER */
|
#define N_REGISTER 30 /* Fake N_TYPE value for SEG_REGISTER */
|
||||||
|
#endif /* N_REGISTER */
|
||||||
|
|
||||||
void symbol_clear_list_pointers PARAMS ((symbolS * symbolP));
|
void symbol_clear_list_pointers PARAMS ((symbolS * symbolP));
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user