Ian Lance Taylor
8828d86202
1999-09-11 Donn Terry <donn@interix.com>
...
* config/obj-coff.c (coff_frob_symbol): Prohibit weak common
symbols.
1999-09-12 02:59:54 +00:00
Ian Lance Taylor
9690c54dda
1999-09-11 Donn Terry <donn@interix.com>
...
* 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-12 02:55:58 +00:00
Ian Lance Taylor
23dab925ad
1999-09-11 Donn Terry <donn@interix.com>
...
* 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-12 02:49:28 +00:00
Ian Lance Taylor
28428223eb
1999-09-11 Donn Terry <donn@interix.com>
...
* config/obj-coff.c (obj_coff_loc): New static function.
(obj_pseudo_table): Add "loc".
1999-09-12 02:39:52 +00:00
Ian Lance Taylor
e8a3ab752d
1999-09-11 Donn Terry <donn@interix.com>
...
* config/obj-coff.c (add_lineno): Check that the line number is
positive.
1999-09-12 02:34:00 +00:00
Ian Lance Taylor
0561a208f8
1999-09-11 Donn Terry <donn@interix.com>
...
* 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.
1999-09-12 02:27:58 +00:00
Ian Lance Taylor
0723899b7e
comment change
1999-09-12 02:27:31 +00:00
Ian Lance Taylor
2ab9b79ef9
1999-09-11 Donn Terry <donn@interix.com>
...
* 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-12 02:12:38 +00:00
Ian Lance Taylor
5881e4aab3
1999-09-11 Donn Terry <donn@interix.com>
...
* config/obj-coff.c (obj_coff_section): Default to setting
SEC_LOAD. Don't set SEC_DATA for 'w' modifier.
1999-09-12 02:08:55 +00:00
Ian Lance Taylor
2fbadf2cf5
1999-09-11 Donn Terry <donn@interix.com>
...
* 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-12 00:45:26 +00:00
Ian Lance Taylor
8c42d01089
1999-09-11 Donn Terry <donn@interix.com>
...
* peigen.c (_bfd_pei_swap_scnhdr_out): Remove code which sets
section flags based on the section name.
1999-09-12 00:32:32 +00:00
Ian Lance Taylor
cb43721da5
1999-09-11 Donn Terry <donn@interix.com>
...
* 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-12 00:30:27 +00:00
Ian Lance Taylor
5933bdc9a1
1999-09-11 Donn Terry <donn@interix.com>
...
* 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-12 00:22:01 +00:00
Ian Lance Taylor
7d2b58d612
1999-09-11 Donn Terry <donn@interix.com>
...
* 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-12 00:02:11 +00:00
Ian Lance Taylor
0717ebb780
1999-09-11 Donn Terry <donn@interix.com>
...
* 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.
1999-09-11 23:46:09 +00:00
Ian Lance Taylor
650f5dd8d8
add some comments about peigen.c
1999-09-11 23:38:11 +00:00
Ian Lance Taylor
277d1b5e45
1999-09-11 Donn Terry <donn@interix.com>
...
* 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 23:37:28 +00:00
Ian Lance Taylor
e166a60fd9
1999-09-11 Donn Terry <donn@interix.com>
...
* 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 22:52:20 +00:00
Ian Lance Taylor
1135238bd0
1999-09-11 Donn Terry <donn@interix.com>
...
* coffcode.h (coff_mkobject_hook): Set timestamp field in
coff_data_type to f_timdat.
* peicode.h (pe_mkobject_hook): Likewise.
1999-09-11 22:46:37 +00:00
Ian Lance Taylor
05bf877ad1
1999-09-11 Donn Terry <donn@interix.com>
...
* peicode.h (coff_swap_filehdr_in): Check the NT executable magic
number if COFF_IMAGE_WITH_PE.
1999-09-11 22:41:54 +00:00
Ian Lance Taylor
4cfec37b92
1999-09-11 Donn Terry <donn@interix.com>
...
* 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 22:33:45 +00:00
Ian Lance Taylor
33d7d19757
1999-09-11 Donn Terry <donn@interix.com>
...
* 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 22:17:33 +00:00
Ian Lance Taylor
402ef9d421
1999-09-11 Donn Terry <donn@interix.com>
...
* 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 22:10:33 +00:00
Ian Lance Taylor
8add8e3099
1999-09-11 Donn Terry <donn@interix.com>
...
* 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 22:04:16 +00:00
Ian Lance Taylor
c0bed66d09
1999-09-11 Donn Terry <donn@interix.com>
...
* libbfd-in.h (_bfd_abort): Declare.
(abort): Define.
* bfd.c (_bfd_abort): New function.
* libbfd.h: Rebuild.
1999-09-11 21:51:55 +00:00
Ian Lance Taylor
a50f8417d5
* coff-ppc.c (COFF_SECTION_ALIGNMENT_ENTRIES): Define.
...
1999-09-11 Donn Terry <donn@interix.com>
* coffcode.h (coff_set_alignment_hook): Delete POWERPC_LE_PE
special handling.
1999-09-11 21:39:03 +00:00
Ian Lance Taylor
b545f675c1
1999-09-11 Donn Terry <donn@interix.com>
...
* cofflink.c (_bfd_coff_link_input_bfd): If a symbol is stripped,
don't write out the associated line numbers.
1999-09-11 21:27:15 +00:00
Ian Lance Taylor
2c546cd84f
1999-09-11 Donn Terry <donn@interix.com>
...
* cofflink.c (_bfd_coff_write_global_sym): Handle section symbol
aux entries.
1999-09-11 21:15:16 +00:00
Ian Lance Taylor
d510f9a69b
1999-09-11 Donn Terry <donn@interix.com>
...
* 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.
1999-09-11 21:04:09 +00:00
Ian Lance Taylor
eeaf533e61
* elfcode.h (write_relocs): Handle an absolute symbol in REL
...
relocs as we do for RELA relocs.
1999-09-11 20:14:57 +00:00
Ian Lance Taylor
5d3aaa749f
1999-09-11 Donn Terry <donn@interix.com>
...
* cofflink.c (coff_link_add_symbols): Don't warn about symbol type
changes when the base type is unknown.
1999-09-11 15:26:22 +00:00
Ian Lance Taylor
312191a689
1999-09-11 Donn Terry <donn@interix.com>
...
* coffgen.c (coff_print_symbol): Fix printing of aux record for
function symbols.
1999-09-11 15:16:14 +00:00
Ian Lance Taylor
e723ef7c5f
* write.c (dump_section_relocs): Call print_symbol_value_1 to
...
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 14:59:14 +00:00
Ian Lance Taylor
703153b566
1999-09-11 Donn Terry <donn@interix.com>
...
* 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 14:41:11 +00:00
Ian Lance Taylor
fa16d38700
1999-09-11 Donn Terry <donn@interix.com>
...
* expr.c (integer_constant): Correct too_many_digits calculation
in base 10 case.
1999-09-11 14:24:59 +00:00
Ian Lance Taylor
7b50b349e2
* ecoff.c (bfd_debug_section): Update initialization for new
...
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.
1999-09-10 23:25:51 +00:00
Jeff Law
e48c661ee6
* elf-hppa.h (elf_hppa_final_link_relocate): Create .opd entries
...
for FPTR relocs involving local symbols.
1999-09-10 15:46:37 +00:00
Jeff Law
e5b08bf0d3
* emulparms/elf64hppa.sh (LIB_PATH): Define.
1999-09-10 14:31:09 +00:00
Jeff Law
6a0b987115
* elf-hppa.h (elf_hppa_final_link_relocate): Get the right
...
value for the stub address in a call through a stub.
Install the value for a local symbol directly into the DLT
instead of generating a reloc. Correctly handle FPTR64 relocs.
1999-09-10 14:05:36 +00:00
Jeff Law
af7dc6449e
* elf-hppa.h (elf_hppa_unmark_useless_dynamic_symbols): New function.
...
(elf_hppa_remark_useless_dynamic_symbols): Similarly.
(elf_hppa_final_link): Call them.
1999-09-10 06:38:05 +00:00
Jeff Law
904ecb2d78
* emulparms/elf64hppa.sh (OTHER_READONLY_SECTIONS): Put stubs before
...
unwinders so that they are closer to the text section.
(OTHER_BSS_SECTIONS): Define.
(EXECUTABLE_SYMBOLS): Provide __SYSTEM_ID and _FPU_STATUS.
(INIT_START, INIT_END): Define.
(FINI_START, FINI_END): Define.
* scripttempl/elf.sc: Add support for INIT_START, INIT_END,
FINI_START, FINI_END and OTHER_BSS_SECTIONS.
1999-09-10 06:30:37 +00:00
Ian Lance Taylor
fc4cc5bb8f
* elflink.h (elf_fix_symbol_flags): Move weakdef handling here...
...
(elf_adjust_dynamic_symbol): ...from here.
1999-09-10 04:22:23 +00:00
Jeff Law
7e4d694ea7
* emulparms/elf64hppa.sh (TEXT_START_ADDR): Move up one page.
...
(DATA_ADDR): Define.
1999-09-10 03:49:14 +00:00
Richard Henderson
2f2bc1bb67
* emulparams/d10velf.sh (READONLY_START_ADDR): Set to 0x2000004.
1999-09-10 01:04:25 +00:00
Andreas Schwab
1d0a3c9c5f
* ld.texinfo: Fix arguments of @var to not contain punctuation.
1999-09-09 16:12:28 +00:00
Andreas Schwab
13a830b61a
* doc/c-arm.texi: Fix arguments of @var to not contain
...
punctuation.
1999-09-09 16:09:52 +00:00
Andreas Schwab
ad0481cd94
* binutils.texi: Add info dir entries for all programs described
...
here. Fix arguments of @var to not contain punctuation.
1999-09-09 16:01:34 +00:00
Jeff Law
b1d5590577
Update some comments.
1999-09-09 14:52:15 +00:00
Jeff Law
b726396160
* elf-hppa.h (elf_hppa_howto_table); There is no DIR64WR, DIR64DR
...
relocation, remove them. SECREL64->LTOFF16WF.
(elf_hppa_final_link_relocate): Handle LTOFF* relocations. Handle
DIR* relocations.
(elf_hppa_relocate_insn): Similarly.
1999-09-09 14:51:33 +00:00
Jeff Law
8267b1550c
* elf-hppa.h (elf_hppa_final_link_relocate): Handle PLTOFF* relocs.
...
(elf_hppa_relocate_insn): Similarly.
1999-09-09 14:20:18 +00:00