1999-09-06 Donn Terry <donn@interix.com>
* coffcode.h (coff_set_custom_section_alignment): Add const to declaration to match definition. (coff_write_object_contents): Don't set F_AR32W(R)? if COFF_WITH_PE.
This commit is contained in:
parent
6fb72d08dc
commit
8a1ad8e793
|
@ -1,5 +1,14 @@
|
||||||
1999-09-06 Donn Terry <donn@interix.com>
|
1999-09-06 Donn Terry <donn@interix.com>
|
||||||
|
|
||||||
|
* coffcode.h (coff_set_custom_section_alignment): Add const to
|
||||||
|
declaration to match definition.
|
||||||
|
(coff_write_object_contents): Don't set F_AR32W(R)? if
|
||||||
|
COFF_WITH_PE.
|
||||||
|
|
||||||
|
* coff-i386.c (in_reloc_p): Add declaration.
|
||||||
|
(i386coff_vec): Simplify initialization of
|
||||||
|
application_section_flags.
|
||||||
|
|
||||||
* coffcode.h (sec_to_styp_flags): Write separate COFF_WITH_PE
|
* coffcode.h (sec_to_styp_flags): Write separate COFF_WITH_PE
|
||||||
version. Move COFF_WITH_PE specific code to new version.
|
version. Move COFF_WITH_PE specific code to new version.
|
||||||
(stype_to_sec_flags): Likewise. Add section parameter.
|
(stype_to_sec_flags): Likewise. Add section parameter.
|
||||||
|
|
|
@ -318,7 +318,7 @@ static flagword styp_to_sec_flags
|
||||||
static boolean coff_bad_format_hook PARAMS ((bfd *, PTR));
|
static boolean coff_bad_format_hook PARAMS ((bfd *, PTR));
|
||||||
static void coff_set_custom_section_alignment
|
static void coff_set_custom_section_alignment
|
||||||
PARAMS ((bfd *, asection *, const struct coff_section_alignment_entry *,
|
PARAMS ((bfd *, asection *, const struct coff_section_alignment_entry *,
|
||||||
unsigned int));
|
const unsigned int));
|
||||||
static boolean coff_new_section_hook PARAMS ((bfd *, asection *));
|
static boolean coff_new_section_hook PARAMS ((bfd *, asection *));
|
||||||
static boolean coff_set_arch_mach_hook PARAMS ((bfd *, PTR));
|
static boolean coff_set_arch_mach_hook PARAMS ((bfd *, PTR));
|
||||||
static boolean coff_write_relocs PARAMS ((bfd *, int));
|
static boolean coff_write_relocs PARAMS ((bfd *, int));
|
||||||
|
@ -3223,11 +3223,12 @@ coff_write_object_contents (abfd)
|
||||||
if (abfd->flags & EXEC_P)
|
if (abfd->flags & EXEC_P)
|
||||||
internal_f.f_flags |= F_EXEC;
|
internal_f.f_flags |= F_EXEC;
|
||||||
|
|
||||||
/* FIXME: this is wrong for PPC_PE! */
|
#ifndef COFF_WITH_PE
|
||||||
if (bfd_little_endian (abfd))
|
if (bfd_little_endian (abfd))
|
||||||
internal_f.f_flags |= F_AR32WR;
|
internal_f.f_flags |= F_AR32WR;
|
||||||
else
|
else
|
||||||
internal_f.f_flags |= F_AR32W;
|
internal_f.f_flags |= F_AR32W;
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef TIC80_TARGET_ID
|
#ifdef TIC80_TARGET_ID
|
||||||
internal_f.f_target_id = TIC80_TARGET_ID;
|
internal_f.f_target_id = TIC80_TARGET_ID;
|
||||||
|
|
Loading…
Reference in New Issue