The stub size in GO32 executables has historically been fixed at 2048 bytes, due to hardcoded limitations in bfd. Recent patches to djgpp by Stas Sergeev (CC'd) have pushed the stub right up to this limit, so if any further expansion is desired, this must first be patched in bfd. This series includes three patches: The first changes the meaning of the bfd->origin field slightly, so that target code can use this to specify an offset into the file where the actual bfd is located. The second patch then uses this to enable support for variable-sized stubs in the coff-go32-exe format. The final patch is only a cleanup, it normalizes function and variable names in coff-stgo32.c so that they all begin with the same prefix. bfd * bfdio.c (bfd_bread, bfd_tell, bfd_seek, bfd_mmap): Always add bfd->origin to file offset. * bfdwin.c (bfd_get_file_window): Likewise. * bfd.c: Clarify the use of the bfd->origin field. * bfd-in2.h: Regenerate. * coff-i386.c: Don't include go32exe.h. Allow overriding coff_write_object_contents via COFF_WRITE_CONTENTS. * coff-stgo32.c (go32exe_cleanup, go32exe_mkobject) (go32exe_write_object_contents): New functions. (go32exe_temp_stub, go32exe_temp_stub_size): New static globals. (COFF_WRITE_CONTENTS, GO32EXE_DEFAULT_STUB_SIZE): Define. (create_go32_stub): Remove check for 2k size limit. Read stub from go32exe_temp_stub if present. (go32_stubbed_coff_bfd_copy_private_bfd_data): Allocate and copy variable-length stub. (go32_check_format): Read stub to go32exe_temp_stub, set origin, return go32exe_cleanup. (adjust_filehdr_in_post, adjust_filehdr_out_pre) (adjust_filehdr_out_post, adjust_scnhdr_in_post) (adjust_scnhdr_out_pre, adjust_scnhdr_out_post) (adjust_aux_in_post, adjust_aux_out_pre, adjust_aux_out_post): Remove functions and their associated #defines. * coffcode.h (coff_mkobject_hook): Remove stub copying code. * libcoff-in.h: (struct coff_tdata): New field stub_size. Rename field go32stub to stub. * libcoff.h: Regenerate. * coff-stgo32.c (go32_check_format): Rename to... (go32exe_check_format): ...this. (go32_stubbed_coff_bfd_copy_private_bfd_data): Rename to... (go32exe_copy_private_bfd_data): ...this. (stub_bytes): Rename to... (go32exe_default_stub): ...this. (create_go32_stub): Rename to... (go32exe_create_stub): ...this. * coff-stgo32.c (go32exe_copy_private_bfd_data): Avoid realloc when possible. include * coff/go32exe.h: Remove file. * coff/internal.h (struct internal_filehdr): Remove field go32stub. Remove flag F_GO32STUB.
232 lines
6.6 KiB
Plaintext
232 lines
6.6 KiB
Plaintext
2020-04-02 Jan W. Jagersma <jwjagersma@gmail.com>
|
||
|
||
* coff/go32exe.h: Remove file.
|
||
* coff/internal.h (struct internal_filehdr): Remove field
|
||
go32stub. Remove flag F_GO32STUB.
|
||
|
||
2020-04-01 Martin Liska <mliska@suse.cz>
|
||
Maciej W. Rozycki <macro@linux-mips.org>
|
||
|
||
PR lto/94249
|
||
* plugin-api.h: Fix a typo.
|
||
|
||
2020-03-30 Nelson Chu <nelson.chu@sifive.com>
|
||
|
||
* opcode/riscv-opc.h: Update CSR to 1.11.
|
||
|
||
2020-03-26 John Baldwin <jhb@FreeBSD.org>
|
||
|
||
* elf/common.h (AT_FREEBSD_BSDFLAGS): Define.
|
||
|
||
2020-03-24 Martin Liska <mliska@suse.cz>
|
||
|
||
PR lto/94249
|
||
* plugin-api.h: Add more robust endianess detection.
|
||
|
||
2020-03-21 Martin Liska <mliska@suse.cz>
|
||
|
||
* plugin-api.h (enum ld_plugin_symbol_type): Remove
|
||
comma after last value of an enum.
|
||
* lto-symtab.h (enum gcc_plugin_symbol_type): Likewise.
|
||
|
||
2020-03-19 Martin Liska <mliska@suse.cz>
|
||
|
||
* lto-symtab.h (enum gcc_plugin_symbol_type): New.
|
||
(enum gcc_plugin_symbol_section_kind): Likewise.
|
||
|
||
2020-03-19 Martin Liska <mliska@suse.cz>
|
||
|
||
* plugin-api.h (struct ld_plugin_symbol): Split
|
||
int def into 4 char fields.
|
||
(enum ld_plugin_symbol_type): New.
|
||
(enum ld_plugin_symbol_section_kind): New.
|
||
(enum ld_plugin_tag): Add LDPT_ADD_SYMBOLS_V2.
|
||
|
||
2020-03-13 Kamil Rytarowski <n54@gmx.com>
|
||
|
||
* elf/common.h (NT_NETBSDCORE_LWPSTATUS): New define.
|
||
|
||
2020-03-13 Kamil Rytarowski <n54@gmx.com>
|
||
|
||
* elf/common.h (NT_NETBSDCORE_AUXV): New define.
|
||
|
||
2020-03-13 Christophe Lyon <christophe.lyon@linaro.org>
|
||
|
||
* bfdlink.h (bfd_link_info): Add non_contiguous_regions and
|
||
non_contiguous_regions_warnings fields.
|
||
|
||
2020-03-13 Christian Eggers <ceggers@gmx.de>
|
||
|
||
* bfdlink.h (struct bfd_link_order): Add unit (bytes/octets) to
|
||
offset and size members.
|
||
* elf/internal.h (struct elf_internal_phdr): Likewise for
|
||
p_align member.
|
||
(struct elf_segment_map): Likewise for p_paddr and p_size
|
||
members
|
||
|
||
2020-03-13 Christian Eggers <ceggers@gmx.de>
|
||
|
||
* elf/internal.h (struct elf_internal_phdr): Add unit (octets)
|
||
to several member field comments.
|
||
(Elf_Internal_Shdr): likewise.
|
||
|
||
2020-03-10 Alan Modra <amodra@gmail.com>
|
||
|
||
* som/aout.h (SOM_AUX_ID_MANDATORY, SOM_SPACE_IS_LOADABLE),
|
||
(SOM_SYMBOL_HIDDEN, SOM_SYMBOL_HAS_LONG_RETURN): Use 1u << 31.
|
||
* som/lst.h (LST_SYMBOL_HIDDEN): Likewise.
|
||
|
||
2020-03-03 Luis Machado <luis.machado@linaro.org>
|
||
|
||
* elf/common.h (AT_L1I_CACHESIZE, AT_L1I_CACHEGEOMETRY)
|
||
(AT_L1D_CACHESIZE, AT_L1D_CACHEGEOMETRY, AT_L2_CACHESIZE)
|
||
(AT_L2_CACHEGEOMETRY, AT_L3_CACHESIZE, AT_L3_CACHEGEOMETRY)
|
||
(AT_MINSIGSTKSZ): New defines, imported from glibc.
|
||
|
||
2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
|
||
|
||
Import from gcc mainline:
|
||
2020-02-05 Andrew Burgess <andrew.burgess@embecosm.com>
|
||
|
||
* hashtab.h (htab_remove_elt): Make a parameter const.
|
||
(htab_remove_elt_with_hash): Likewise.
|
||
|
||
2020-02-20 Nelson Chu <nelson.chu@sifive.com>
|
||
|
||
* opcode/riscv-opc.h: Extend DECLARE_CSR and DECLARE_CSR_ALIAS to
|
||
record riscv_csr_class.
|
||
|
||
2020-02-10 Stam Markianos-Wright <stam.markianos-wright@arm.com>
|
||
Matthew Malcomson <matthew.malcomson@arm.com>
|
||
|
||
* opcode/arm.h (ARM_EXT2_CDE): New extension macro.
|
||
(ARM_EXT2_CDE0): New extension macro.
|
||
(ARM_EXT2_CDE1): New extension macro.
|
||
(ARM_EXT2_CDE2): New extension macro.
|
||
(ARM_EXT2_CDE3): New extension macro.
|
||
(ARM_EXT2_CDE4): New extension macro.
|
||
(ARM_EXT2_CDE5): New extension macro.
|
||
(ARM_EXT2_CDE6): New extension macro.
|
||
(ARM_EXT2_CDE7): New extension macro.
|
||
|
||
2020-02-07 Sergey Belyashov <sergey.belyashov@gmail.com>
|
||
|
||
PR 25469
|
||
* coff/internal.h (R_IMM16BE): Define.
|
||
* elf/z80.h (EF_Z80_MACH_Z80N): Define.
|
||
(R_Z80_16_BE): New reloc.
|
||
|
||
2020-02-04 Alan Modra <amodra@gmail.com>
|
||
|
||
* opcode/d30v.h (struct pd_reg): Make value field unsigned.
|
||
|
||
2020-01-16 Jon Turney <jon.turney@dronecode.org.uk>
|
||
|
||
* coff/internal.h (PE_IMAGE_DEBUG_TYPE_VC_FEATURE)
|
||
(PE_IMAGE_DEBUG_TYPE_POGO, PE_IMAGE_DEBUG_TYPE_ILTCG)
|
||
(PE_IMAGE_DEBUG_TYPE_MPX, PE_IMAGE_DEBUG_TYPE_REPRO): Add.
|
||
|
||
2020-01-18 Nick Clifton <nickc@redhat.com>
|
||
|
||
Binutils 2.34 branch created.
|
||
|
||
2020-01-17 Nick Clifton <nickc@redhat.com>
|
||
|
||
* Import from gcc mainline:
|
||
2019-06-10 Martin Liska <mliska@suse.cz>
|
||
|
||
* ansidecl.h (ATTRIBUTE_WARN_UNUSED_RESULT): New macro.
|
||
* libiberty.h (xmalloc): Use it.
|
||
(xrealloc): Likewise.
|
||
(xcalloc): Likewise.
|
||
(xstrdup): Likewise.
|
||
(xstrndup): Likewise.
|
||
(xmemdup): Likewise.
|
||
|
||
2019-06-10 Martin Liska <mliska@suse.cz>
|
||
|
||
* ansidecl.h:
|
||
(ATTRIBUTE_RESULT_SIZE_1): Define new macro.
|
||
(ATTRIBUTE_RESULT_SIZE_2): Likewise.
|
||
(ATTRIBUTE_RESULT_SIZE_1_2): Likewise.
|
||
* libiberty.h (xmalloc): Add RESULT_SIZE attribute.
|
||
(xrealloc): Likewise.
|
||
(xcalloc): Likewise.
|
||
|
||
2019-11-16 Tim Ruehsen <tim.ruehsen@gmx.de>
|
||
|
||
* demangle.h (struct demangle_component): Add member
|
||
d_counting.
|
||
|
||
2019-11-16 Eduard-Mihai Burtescu <eddyb@lyken.rs>
|
||
|
||
* demangle.h (rust_demangle_callback): Add.
|
||
|
||
2019-07-18 Eduard-Mihai Burtescu <eddyb@lyken.rs>
|
||
|
||
* demangle.h (rust_is_mangled): Move to libiberty/rust-demangle.h.
|
||
(rust_demangle_sym): Move to libiberty/rust-demangle.h.
|
||
|
||
2020-01-16 Andre Vieira <andre.simoesdiasvieira@arm.com>
|
||
|
||
PR 25376
|
||
* opcodes/arm.h (FPU_MVE, FPU_MVE_FPU): Move these features to...
|
||
(ARM_EXT2_MVE, ARM_EXT2_MVE_FP): ... the CORE_HIGH space.
|
||
(ARM_ANY): Redefine to not include any MVE bits.
|
||
(ARM_FEATURE_ALL): Removed.
|
||
|
||
2020-01-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
|
||
|
||
* opcode/msp430.h (enum msp430_expp_e): New.
|
||
(struct msp430_operand_s): Add expp member to struct.
|
||
|
||
2020-01-13 Claudiu Zissulescu <claziss@gmail.com>
|
||
|
||
* elf/arc-cpu.def: Update ARC cpu list.
|
||
|
||
2020-01-13 Alan Modra <amodra@gmail.com>
|
||
|
||
* opcode/tic4x.h (EXTR): Delete.
|
||
(EXTRU, EXTRS, INSERTU, INSERTS): Rewrite without zero/sign
|
||
extension using shifts. Do trim INSERTU value to specified bitfield.
|
||
|
||
2020-01-10 Alan Modra <amodra@gmail.com>
|
||
|
||
* opcode/spu.h: Formatting.
|
||
(UNSIGNED_EXTRACT): Use 1u.
|
||
(SIGNED_EXTRACT): Don't sign extend with shifts.
|
||
(DECODE_INSN_I9a, DECODE_INSN_I9b): Avoid left shift of signed value.
|
||
Keep result signed.
|
||
(DECODE_INSN_U9a, DECODE_INSN_U9b): Delete.
|
||
|
||
2020-01-07 Shahab Vahedi <shahab@synopsys.com>
|
||
|
||
* opcode/arc.h (insn_class_t): Add 'LLOCK' and 'SCOND'.
|
||
|
||
2020-01-02 Sergey Belyashov <sergey.belyashov@gmail.com>
|
||
|
||
* coff/internal.h: Add defintions of Z80 reloc names.
|
||
|
||
2020-01-02 Christian Biesinger <cbiesinger@google.com>
|
||
|
||
* opcode/s12z.h: Undef REG_Y.
|
||
|
||
2020-01-01 Alan Modra <amodra@gmail.com>
|
||
|
||
Update year range in copyright notice of all files.
|
||
|
||
For older changes see ChangeLog-2019
|
||
|
||
Copyright (C) 2020 Free Software Foundation, Inc.
|
||
|
||
Copying and distribution of this file, with or without modification,
|
||
are permitted in any medium without royalty provided the copyright
|
||
notice and this notice are preserved.
|
||
|
||
Local Variables:
|
||
mode: change-log
|
||
left-margin: 8
|
||
fill-column: 74
|
||
version-control: never
|
||
End:
|