mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-20 01:50:24 +08:00
* coff-i386.c (coff_i386_is_local_label_name): New static function
if TARGET_UNDERSCORE. (coff_bfd_is_local_label_name): Define if TARGET_UNDERSCORE. (i386coff_vec): Add SEC_CODE and SEC_DATA to section_flags.
This commit is contained in:
@ -1,3 +1,10 @@
|
|||||||
|
Mon Jul 7 16:41:20 1997 Ian Lance Taylor <ian@cygnus.com>
|
||||||
|
|
||||||
|
* coff-i386.c (coff_i386_is_local_label_name): New static function
|
||||||
|
if TARGET_UNDERSCORE.
|
||||||
|
(coff_bfd_is_local_label_name): Define if TARGET_UNDERSCORE.
|
||||||
|
(i386coff_vec): Add SEC_CODE and SEC_DATA to section_flags.
|
||||||
|
|
||||||
Mon Jun 30 14:29:26 1997 Ian Lance Taylor <ian@cygnus.com>
|
Mon Jun 30 14:29:26 1997 Ian Lance Taylor <ian@cygnus.com>
|
||||||
|
|
||||||
* elf32-m68k.c (howto_table): Use complain_overflow_bitfield, not
|
* elf32-m68k.c (howto_table): Use complain_overflow_bitfield, not
|
||||||
|
@ -417,10 +417,31 @@ coff_i386_reloc_type_lookup (abfd, code)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#define coff_rtype_to_howto coff_i386_rtype_to_howto
|
#define coff_rtype_to_howto coff_i386_rtype_to_howto
|
||||||
|
|
||||||
|
#ifdef TARGET_UNDERSCORE
|
||||||
|
|
||||||
|
/* If i386 gcc uses underscores for symbol names, then it does not use
|
||||||
|
a leading dot for local labels, so if TARGET_UNDERSCORE is defined
|
||||||
|
we treat all symbols starting with L as local. */
|
||||||
|
|
||||||
|
static boolean coff_i386_is_local_label_name PARAMS ((bfd *, const char *));
|
||||||
|
|
||||||
|
static boolean
|
||||||
|
coff_i386_is_local_label_name (abfd, name)
|
||||||
|
bfd *abfd;
|
||||||
|
const char *name;
|
||||||
|
{
|
||||||
|
if (name[0] == 'L')
|
||||||
|
return true;
|
||||||
|
|
||||||
|
return _bfd_coff_is_local_label_name (abfd, name);
|
||||||
|
}
|
||||||
|
|
||||||
|
#define coff_bfd_is_local_label_name coff_i386_is_local_label_name
|
||||||
|
|
||||||
|
#endif /* TARGET_UNDERSCORE */
|
||||||
|
|
||||||
#include "coffcode.h"
|
#include "coffcode.h"
|
||||||
|
|
||||||
static const bfd_target *
|
static const bfd_target *
|
||||||
@ -507,9 +528,11 @@ const bfd_target
|
|||||||
HAS_SYMS | HAS_LOCALS | WP_TEXT | D_PAGED),
|
HAS_SYMS | HAS_LOCALS | WP_TEXT | D_PAGED),
|
||||||
|
|
||||||
#ifndef COFF_WITH_PE
|
#ifndef COFF_WITH_PE
|
||||||
(SEC_HAS_CONTENTS | SEC_ALLOC | SEC_LOAD | SEC_RELOC), /* section flags */
|
(SEC_HAS_CONTENTS | SEC_ALLOC | SEC_LOAD | SEC_RELOC /* section flags */
|
||||||
|
| SEC_CODE | SEC_DATA),
|
||||||
#else
|
#else
|
||||||
(SEC_HAS_CONTENTS | SEC_ALLOC | SEC_LOAD | SEC_RELOC /* section flags */
|
(SEC_HAS_CONTENTS | SEC_ALLOC | SEC_LOAD | SEC_RELOC /* section flags */
|
||||||
|
| SEC_CODE | SEC_DATA
|
||||||
| SEC_LINK_ONCE | SEC_LINK_DUPLICATES),
|
| SEC_LINK_ONCE | SEC_LINK_DUPLICATES),
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user