summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* * pe-dll.h: New file.Ian Lance Taylor1999-09-128-26/+98
| | | | | | | | | | | | | | | | | | | | | | * pe-dll.c: Include "pe-dll.h". Mark unused arguments as needed to avoid warnings. (edata_sz, reloc_sz): Change from int to size_t. (pe_details_type): Change type of imagebase_reloc from int to unsigned int. (pe_detail_list): Fully initialize last entry. (pe_dll_id_target): Change parameter to const. (pe_dll_generate_def_file): Likewise. (pe_dll_generate_implib): Likewise. (pe_implied_import_dll): Likewise. Change dll_name to const. * emultempl/pe.em: Include "pe-dll.h". Remove declarations now in pe-dll.h. (init): Fully initialize __dll__ entry. (gld_${EMULATION_NAME}_after_open): Remove unused variables sequence, elt, and i. * deffile.h: Add preprocessor guard. * deffilep.y (def_debug): Remove. * Makefile.am: Rebuild dependencies. (HFILES): Add pe-dll.h.
* 1999-09-12 Donn Terry <donn@interix.com>Ian Lance Taylor1999-09-122-7/+46
| | | | | | | | | | * emultempl/pe.em (PE_DEF_SECTION_ALIGNMENT): If OVERRIDE_SECTION_ALIGNMENT is defined, change to that. (gld_${EMULATION_NAME}_before_parse): Use EXECUTABLE_NAME if it is defined, rather than a.exe. (init): Define __subsystem__ as ${SUBSYSTEM}. (set_pe_subsystem): Add ${INITIAL_SYMBOL_CHAR} before entry symbol name.
* * ldlang.c (open_output): Change local variable desired_endianIan Lance Taylor1999-09-122-1/+13
| | | | from int to enum bfd_endian.
* * emulparams/arm_epoc_pe.sh: Define SUBSYSTEM andIan Lance Taylor1999-09-125-1/+9
| | | | | | | | INITIAL_SYMBOL_CHAR. * emulparams/armpe.sh: Likewise. * emulparams/morepe.sh: Likewise. * emulparams/ppcpe.sh: Likewise. * emulparams/i386pe.sh (SUBSYSTEM): Define as PE_DEF_SUBSYSTEM.
* 1999-09-12 Donn Terry <donn@interix.com>Ian Lance Taylor1999-09-122-1/+6
| | | | | * libbfd.c (bfd_log2): Rewrite to avoid infinite loop if most significant bit is set.
* 1999-09-12 Donn Terry <donn@interix.com>Ian Lance Taylor1999-09-123-0/+7
| | | | | * gas/all/gas.exp: Run cofftag test for i*86-*-interix*. * lib/gas-defs.exp: Add perror if can not read .d file.
* 1999-09-11 Donn Terry <donn@interix.com>Ian Lance Taylor1999-09-122-0/+4
| | | | | * config/tc-i386.c (tc_i386_fix_adjustable): Don't adjust BFD_RELOC_RVA relocations.
* * config/tc-i386.c (md_apply_fix3): Add horrible adjustments toIan Lance Taylor1999-09-122-2/+33
| | | | the value if TE_PE and a global defined symbol.
* 1999-09-11 Donn Terry <donn@interix.com>Ian Lance Taylor1999-09-122-2/+8
| | | | | | * config/tc-i386.c (md_undefined_symbol): Compare the name against the macro GLOBAL_OFFSET_TABLE_NAME, rather than assuming that it starts with "_G".
* * write.c (write_relocs): Call SET_SECTION_RELOCS if it isIan Lance Taylor1999-09-125-0/+23
| | | | | | | defined. * config/obj-coff.h (SET_SECTION_RELOCS): Define. * doc/internals.texi (Object format backend): Document SET_SECTION_RELOCS.
* fix copyrightIan Lance Taylor1999-09-122-2/+3
|
* 1999-09-11 Donn Terry <donn@interix.com>Ian Lance Taylor1999-09-122-2/+6
| | | | | * config/tc-i386.c (tc_i386_fix_adjustable): Don't adjust relocations against global symbols if TE_PE.
* 1999-09-11 Donn Terry <donn@interix.com>Ian Lance Taylor1999-09-122-3/+34
| | | | | * config/obj-coff.c (obj_coff_ident): Add BFD_ASSEMBLER version. (obj_pseudo_table): Always handle ".ident" with obj-coff_ident.
* 1999-09-11 Donn Terry <donn@interix.com>Ian Lance Taylor1999-09-122-0/+8
| | | | | * config/obj-coff.c (coff_frob_symbol): Prohibit weak common symbols.
* 1999-09-11 Donn Terry <donn@interix.com>Ian Lance Taylor1999-09-122-4/+20
| | | | | | | * config/obj-coff.c (obj_coff_endef): Don't merge labels, or symbols which do not have a constant value, or tags with non-tags. Remove the symbol from the list before adding it at the end.
* 1999-09-11 Donn Terry <donn@interix.com>Ian Lance Taylor1999-09-122-10/+32
| | | | | | | | * config/obj-coff.c (obj_coff_endef) [BFD_ASSEMBLER]: Handle .ef C_FCN symbol differently if TE_PE. (obj_coff_line) [BFD_ASSEMBLER]: Always use the line number which appears in the pseudo-op, rather coff_line_base which is only set for a .bf symbol.
* 1999-09-11 Donn Terry <donn@interix.com>Ian Lance Taylor1999-09-122-0/+58
| | | | | * config/obj-coff.c (obj_coff_loc): New static function. (obj_pseudo_table): Add "loc".
* 1999-09-11 Donn Terry <donn@interix.com>Ian Lance Taylor1999-09-122-0/+9
| | | | | * config/obj-coff.c (add_lineno): Check that the line number is positive.
* 1999-09-11 Donn Terry <donn@interix.com>Ian Lance Taylor1999-09-124-15/+39
| | | | | | | * expr.c (expr): Change first parameter to int. * config/obj-coff.c: Add declarations for static functions. (coff_frob_symbol): Use SYM_AUXENT. * config/tc-i386.h (flag_16bit_code): Don't declare.
* comment changeIan Lance Taylor1999-09-121-4/+4
|
* 1999-09-11 Donn Terry <donn@interix.com>Ian Lance Taylor1999-09-124-4/+10
| | | | | | | | * config/atof-ieee.c (atof_ieee): Change what_kind to int. * config/atof-vax.c (flonum_gen2vax): Change format_letter to int. (md_atof): Return NULL rather than 0. * config/tc-i386.c (md_atof): Change type to int.
* 1999-09-11 Donn Terry <donn@interix.com>Ian Lance Taylor1999-09-122-4/+7
| | | | | * config/obj-coff.c (obj_coff_section): Default to setting SEC_LOAD. Don't set SEC_DATA for 'w' modifier.
* 1999-09-11 Donn Terry <donn@interix.com>Ian Lance Taylor1999-09-123-22/+86
| | | | | | | | * libpei.h (_bfd_pei_final_link_postscript): Declare. (coff_final_link_postscript): Define. * peigen.c (_bfd_pei_swap_aouthdr_out): Don't set value for data directory entries here. (_bfd_pei_final_link_postscript): New function.
* 1999-09-11 Donn Terry <donn@interix.com>Ian Lance Taylor1999-09-122-44/+3
| | | | | * peigen.c (_bfd_pei_swap_scnhdr_out): Remove code which sets section flags based on the section name.
* 1999-09-11 Donn Terry <donn@interix.com>Ian Lance Taylor1999-09-123-19/+60
| | | | | | | | * peicode.h (coff_swap_scnhdr_in): If COFF_IMAGE_WITH_PE, the get the overflow of the s_nlnno field from the s_nreloc field. * peigen.c (_bfd_pei_swap_scnhdr_out): If doing a final link, swap the s_nlnno overflow of the .text section into the s_nreloc field.
* 1999-09-11 Donn Terry <donn@interix.com>Ian Lance Taylor1999-09-122-95/+164
| | | | | | | | | | | | | | | | | * peigen.c (add_data_entry): Declare. (pei_swap_aouthdr_out): Get image size right. Set linker version more intuitively. (pei_swap_scnhdr_out): Test for UNINIT section, not .bss. (pe_print_idata): Code cleanup, print more info, get rid of (now) extraneous ImageBase. (pe_print_edata): Likewise. (pe_print_pdata): Likewise. Print exception entries. (pe_print_reloc): Likewise. Print MIPS_JMPADDR. (tbl): Make const, add "UNKNOWN". (_bfd_pe_print_private_bfd_data_common): Print timestamp. (_bfd_pe_bfd_copy_private_bfd_data_common): Don't copy deleted section data directory. (_bfd_pe_bfd_copy_private_section_data): Copy pe_flags.
* 1999-09-11 Donn Terry <donn@interix.com>Ian Lance Taylor1999-09-124-1/+24
| | | | | | * libpei.h (_bfd_pe_bfd_get_symbol_info): Declare. * peigen.c (_bfd_pe_bfd_get_symbol_info): New function. * peicode.h (coff_get_symbol_info): Define.
* 1999-09-11 Donn Terry <donn@interix.com>Ian Lance Taylor1999-09-113-5/+12
| | | | | | | | | * config.bfd (i[3456]86-*-interix*): Set targ_cflags to -DSTRICT_PE_FORMAT. * coffcode.h (styp_to_sec_flags): Check STRICT_PE_FORMAT rather than __INTERIX. (coff_classify_symbol): Re-revert 1999-08-08 patch if STRICT_PE_FORMAT.
* add some comments about peigen.cIan Lance Taylor1999-09-113-3/+10
|
* 1999-09-11 Donn Terry <donn@interix.com>Ian Lance Taylor1999-09-118-1989/+2188
| | | | | | | | | | | | | * libpei.h: New file, broken out of peicode.h. * peigen.c: New file, broken out of peicode.h. * peicode.h: A bunch of code moved out to libpei.h and peigen.c. * configure.in: Add peigen.lo to list of files required for each PE target. * Makefile.am: Rebuild dependencies. (BFD32_BACKENDS): Add peigen.lo. (BFD32_BACKENDS_CFILES): Add peigen.c. (SOURCE_HFILES): Add libpei.h. * configure, Makefile.in: Rebuild.
* 1999-09-11 Donn Terry <donn@interix.com>Ian Lance Taylor1999-09-112-6/+17
| | | | | | | * peicode.h (coff_swap_scnhdr_in): Don't check for a special section name of _BSS; check IMAGE_SCN_CNT_UNINITIALIZED_DATA instead. Don't clear the s_paddr field for an uninitialized data section.
* 1999-09-11 Donn Terry <donn@interix.com>Ian Lance Taylor1999-09-113-0/+8
| | | | | | * coffcode.h (coff_mkobject_hook): Set timestamp field in coff_data_type to f_timdat. * peicode.h (pe_mkobject_hook): Likewise.
* 1999-09-11 Donn Terry <donn@interix.com>Ian Lance Taylor1999-09-112-0/+18
| | | | | * peicode.h (coff_swap_filehdr_in): Check the NT executable magic number if COFF_IMAGE_WITH_PE.
* 1999-09-11 Donn Terry <donn@interix.com>Ian Lance Taylor1999-09-113-4/+28
| | | | | | | | | * coffcode.h (coff_mkobject_hook): If COFF_WITH_PE, set HAS_DEBUG to the reverse of IMAGE_FILE_DEBUG_STRIPPED. (coff_write_object_contents): Set IMAGE_FILE_DEBUG_STRIPPED if there is no SEC_DEBUGGING section. * peicode.h (pe_mkobject_hook): Set HAS_DEBUG to the reverse of IMAGE_FILE_DEBUG_STRIPPED.
* 1999-09-11 Donn Terry <donn@interix.com>Ian Lance Taylor1999-09-113-5/+21
| | | | | | | * pe-i386.c (COFF_LONG_FILENAMES): Define. (COFF_SECTION_ALIGNMENT_ENTRIES): Define. * pei-i386.c (COFF_LONG_FILENAMES): Define. (COFF_SECTION_ALIGNMENT_ENTRIES): Define.
* 1999-09-11 Donn Terry <donn@interix.com>Ian Lance Taylor1999-09-116-9/+6
| | | | | | | | * coffswap.h (IMAGE_BASE): Don't define. * pei-arm.c (IMAGE_BASE): Don't define. * pei-i386.c (IMAGE_BASE): Don't define. * pei-mcore.c (IMAGE_BASE): Don't define. * pei-ppc.c (IMAGE_BASE): Don't define.
* 1999-09-11 Donn Terry <donn@interix.com>Ian Lance Taylor1999-09-112-20/+71
| | | | | | | * cofflink.c (_bfd_coff_link_input_bfd): When writing out a symbol, switch on the class when determining whether to modify the value. For PE, don't modify the value of a C_FCN symbol not named .bf.
* 1999-09-11 Donn Terry <donn@interix.com>Ian Lance Taylor1999-09-114-0/+51
| | | | | | | * libbfd-in.h (_bfd_abort): Declare. (abort): Define. * bfd.c (_bfd_abort): New function. * libbfd.h: Rebuild.
* * coff-ppc.c (COFF_SECTION_ALIGNMENT_ENTRIES): Define.Ian Lance Taylor1999-09-113-32/+19
| | | | | | | 1999-09-11 Donn Terry <donn@interix.com> * coffcode.h (coff_set_alignment_hook): Delete POWERPC_LE_PE special handling.
* 1999-09-11 Donn Terry <donn@interix.com>Ian Lance Taylor1999-09-112-9/+27
| | | | | * cofflink.c (_bfd_coff_link_input_bfd): If a symbol is stripped, don't write out the associated line numbers.
* 1999-09-11 Donn Terry <donn@interix.com>Ian Lance Taylor1999-09-112-3/+59
| | | | | * cofflink.c (_bfd_coff_write_global_sym): Handle section symbol aux entries.
* 1999-09-11 Donn Terry <donn@interix.com>Ian Lance Taylor1999-09-112-2/+13
| | | | | | * coffcode.h (coff_slurp_symbol_table): If PE, set BSF_DEBUGGING for C_FCN/C_EFCN symbols, and set BSF_DEBUGGING_RELOC for such symbols named .bf.
* * elfcode.h (write_relocs): Handle an absolute symbol in RELIan Lance Taylor1999-09-112-0/+7
| | | | relocs as we do for RELA relocs.
* 1999-09-11 Donn Terry <donn@interix.com>Ian Lance Taylor1999-09-112-22/+41
| | | | | * cofflink.c (coff_link_add_symbols): Don't warn about symbol type changes when the base type is unknown.
* 1999-09-11 Donn Terry <donn@interix.com>Ian Lance Taylor1999-09-112-1/+19
| | | | | * coffgen.c (coff_print_symbol): Fix printing of aux record for function symbols.
* * write.c (dump_section_relocs): Call print_symbol_value_1 toIan Lance Taylor1999-09-112-15/+20
| | | | | | | | print the symbol, rather than printing it here. 1999-09-11 Donn Terry <donn@interix.com> * write.c (adjust_reloc_syms): Print adjusted fixup.
* 1999-09-11 Donn Terry <donn@interix.com>Ian Lance Taylor1999-09-114-3/+21
| | | | | | | * syms.c (BSF_DEBUGGING_RELOC): Define. * coffgen.c (fixup_symbol_value): Relocate a symbol which has BSF_DEBUGGING_RELOC set. * bfd-in2.h: Rebuild.
* 1999-09-11 Donn Terry <donn@interix.com>Ian Lance Taylor1999-09-112-1/+6
| | | | | * expr.c (integer_constant): Correct too_many_digits calculation in base 10 case.
* * ecoff.c (bfd_debug_section): Update initialization for newIan Lance Taylor1999-09-105-10/+36
| | | | | | | | | | | | comdat_info field. (_bfd_ecoff_styp_to_sec_flags): Add section parameter. * libecoff.h (_bfd_ecoff_styp_to_sec_flags): Update declaration. 1999-09-10 H.J. Lu <hjl@gnu.org> * coff-alpha.c (alpha_ecoff_backend_data): Initialize the new _bfd_filnmlen field. * coff-mips.c (mips_ecoff_backend_data): Likewise.
* * elf-hppa.h (elf_hppa_final_link_relocate): Create .opd entriesJeff Law1999-09-102-8/+99
| | | | for FPTR relocs involving local symbols.