Kazu Hirata
435b1e90b1
2000-12-08 Kazu Hirata <kazu@hxi.com>
* coffgen.c: Fix formatting.
* elf32-i386.c: Likewise.
* elf32-i960.c: Likewise.
* elf32-m68k.c: Likewise.
* elf32-mcore.c: Likewise.
* elf32-ppc.c: Likewise.
* elf32-sh.c: Likewise.
* elf32-sparc.c: Likewise.
* elf32-v850.c: Likewise.
* elf64-sparc.c: Likewise.
* elf-m10300.c: Likewise.
26 years ago
H.J. Lu
5cc7c785d2
2000-03-01 H.J. Lu <hjl@gnu.org>
* aoutx.h (aout_link_input_section_std): Pass "true" to
the undefined_symbol callback.
(aout_link_input_section_ext): Likewise.
* bout.c (get_value): Likewise.
* coff-a29k.c (coff_a29k_relocate_section): Likewise.
* coff-alpha.c (alpha_ecoff_get_relocated_section_conten):
Likewise.
(alpha_relocate_section): Likewise.
* coff-arm.c (coff_arm_relocate_section): Likewise.
* coff-i960.c (coff_i960_relocate_section): Likewise.
* coff-mcore.c (coff_mcore_relocate_section): Likewise.
* coff-mips.c (mips_relocate_section): Likewise.
* coff-ppc.c (coff_ppc_relocate_section): Likewise.
* coff-sh.c (sh_relocate_section): Likewise.
* coff-tic80.c (coff_tic80_relocate_section): Likewise.
* cofflink.c (_bfd_coff_generic_relocate_section): Likewise.
* elf-m10200.c (mn10200_elf_relocate_section): Likewise.
* elf-m10300.c (mn10300_elf_relocate_section): Likewise.
* elf32-d10v.c (elf32_d10v_relocate_section): Likewise.
* elf32-fr30.c (fr30_elf_relocate_section): Likewise.
* elf32-hppa.c (elf32_hppa_relocate_section): Likewise.
* elf32-i370.c (i370_elf_relocate_section): Likewise.
* elf32-m32r.c (m32r_elf_relocate_section): Likewise.
* elf32-mcore.c (mcore_elf_relocate_section): Likewise.
* elf32-sh.c (sh_elf_relocate_section): Likewise.
* elf32-v850.c (v850_elf_relocate_section): Likewise.
* elflink.c (_bfd_elf_link_record_dynamic_symbol): Likewise.
* elflink.h (elf_link_output_extsym): Likewise.
* pe-mips.c (coff_pe_mips_relocate_section): Likewise.
* reloc.c (bfd_generic_get_relocated_section_conten): Likewise.
* reloc16.c (_bfd_ppc_xcoff_relocate_section): Likewise.
* elf-hppa.h (elf_hppa_relocate_section): Pass "false" to the
undefined_symbol callback when building shared library with
-Bsymbolic and undefined symbols are allowed. Otherwise, pass
"true".
* elf32-arm.h (elf32_arm_relocate_section): Likewise.
* elf32-i386.c (elf_i386_relocate_section): Likewise.
* elf32-m68k.c (elf_m68k_relocate_section): Likewise.
* elf32-mips.c (mips_elf_calculate_relocation): Likewise.
(elf32_mips_get_relocated_section_content): Likewise.
* elf32-ppc.c (ppc_elf_relocate_section): Likewise.
* elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
* elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
* elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
27 years ago
Ian Lance Taylor
5f771d47c7
* Many files: Changes to avoid gcc warnings: Add ATTRIBUTE_UNUSED
as appropriate. Use EMPTY_HOWTO as appropriate. Fill in
structure initializations. Add casts.
* reloc.c (EMPTY_HOWTO): Define.
* bfd-in2.h: Rebuild.
* coff-h8300.c (h8300_reloc16_extra_cases): Remove useless
comparisons against 0.
* elf32-sparc.c (elf32_sparc_merge_private_bfd_data): Change
previous_ibfd_e_flags to unsigned long.
* vms.h (struct vms_private_data_struct): Change section_count to
unsigned.
* vms-gsd.c (_bfd_vms_slurp_gsd): Change psect_idx to unsigned.
(_bfd_vms_write_gsd): Change symnum to unsigned.
* vms-hdr.c (_bfd_vms_write_hdr): Change symnum to unsigned.
* vms-tir.c (etir_sta): Change psect to unsigned.
(alloc_section): Change idx to unsigned.
(tir_sta, tir_ctl): Change psect to unsigned.
(_bfd_vms_write_tir): Change len and before to bfd_size_type.
* vms.c (priv_section_count): Change to unsigned.
27 years ago
Ian Lance Taylor
e049a0de5a
* Many files: Changes to avoid gcc warnings: Remove unused local
variables. Add default case to enum switches.
* coff-arm.c (bfd_arm_allocate_interworking_sections): Only
compile if not COFF_IMAGE_WITH_PE.
(record_arm_to_thumb_glue, record_thumb_to_arm_glue): Likewise.
(bfd_arm_get_bfd_for_interworking): Likewise.
(bfd_arm_process_before_allocation): Likewise.
* epoc-pei-arm.c: Don't rename bfd_arm functions.
* pei-arm.c: Likewise.
* elf32-mips.c (mips_elf_link_hash_table_create): Don't declare.
(MIPS_ELF_ADD_DYNAMIC_ENTRY): Correct last change.
(mips_elf_got16_entry): Put parens around & in body of ==.
(mips_elf_calculate_relocation): Correct test for empty string.
* vms-gsd.c: Use _bfd_error_handler rather than fprintf to
stderr.
* vms-misc.c (_bfd_vms_length_hash_symbol): Correct sprintf
format.
27 years ago
Nick Clifton
232fb1a3f6
Catch overflow in 22_PCREL reloc.
28 years ago
Jeff Law
5c746d907d
* elf32-v850.c (v850_elf_howto_table): Make partial_inplace false
for all relocations.
28 years ago
Richard Henderson
252b5132c7
19990502 sourceware import
28 years ago
Stan Shebs
071ea11e85
Initial creation of sourceware repository
28 years ago
Nick Clifton
45cac0cb84
Replaced fixed size array for hi16 relocations with a linked list.
28 years ago
Nick Clifton
c84c3b965c
Add prototypes for static functions.
Chnage type of addend from long to bfd_vma.
29 years ago
Nick Clifton
cfba9ab0ac
Fixed private data printing to include program headers.
29 years ago
Tom Tromey
53d3ce37d4
* Many files: Added gettext invocations around user-visible
strings.
* libbfd-in.h: Added gettext includes and defines.
* acconfig.h (ENABLE_NLS, HAVE_CATGETS, HAVE_GETTEXT, HAVE_STPCPY,
HAVE_LC_MESSAGES): Define.
* configure.in: Call CY_GNU_GETTEXT. Create po/Makefile.in and
po/Makefile.
* Makefile.am (SUBDIRS): Added po.
(POTFILES): New macro.
(po/POTFILES.in): New target.
(SOURCE_HFILES): New macro.
(HFILES): Use it.
* po/Make-in, po/POTFILES.in, po/bfd.pot: New files.
29 years ago
Catherine Moore
197de3bac9
Changes required to emit Elf Rela structures
for relocation.
29 years ago
Nick Clifton
6aa32b907b
(PR14907) Fix HI16S/LO16 relocations when buf[-1] is evaluated.
29 years ago
Nick Clifton
8b6dcc1bb9
Do not initialise private data in output BFD if the input BFD is the default
architecture - instead allow future merges to do this.
29 years ago
Nick Clifton
75172c0f50
Do not generate an error message when merging v850 code into v850e/v850ea code.
29 years ago
Nick Clifton
0a5875fc63
Fix HI16 and HI16_S relocations for PR14258
29 years ago
Nick Clifton
22a9f052de
Fix PR14180 and 14181 (patch from branch)
29 years ago
Nick Clifton
676d3f022c
Fixed bugs exposed by compiling NEC sample sources.
29 years ago
Nick Clifton
15d82b260c
Removed v850eq sanitization.
Changed mismatch architecture message to a warning.
29 years ago
Nick Clifton
55e6f0bf32
Improved error message to include symbol's name.
29 years ago
Nick Clifton
9420c20ac4
Added support for the call table relocations.
29 years ago
Nick Clifton
db1fa6ab26
Catch relocations against non-existant symbols.
29 years ago
Nick Clifton
5bb2876408
Add support for a 16 bit reloc against the TDA pointer!
29 years ago
Andrew Cagney
f2dbbf9543
Fix sanitization.
29 years ago
Nick Clifton
43898c918f
Removed spurious error return.
29 years ago
Nick Clifton
5ddf2a9e6c
Do not complain if an R_V850_LO16 reloc has bit 15 set.
29 years ago
Nick Clifton
98ab32a58a
Fixed buglet displaying machine architecture.
29 years ago
Nick Clifton
2cf9a0d043
Removed v850 sanitization.
Fixed v850e sanitization.
29 years ago
Nick Clifton
93f1885739
Removed BFD_RELOC_V850_PCREL.
29 years ago
Nick Clifton
8bef8c3071
Set machine number based in bits in e_flags field rather than magic number.
29 years ago
Nick Clifton
def31039ac
Switched over to using new reloc types.
29 years ago
Nick Clifton
8988d935a3
Switched over to using machine numbers to distinguish v850 architecture variants.
29 years ago
Michael Meissner
de224d6a49
Put common variables into the appropriate section, based on relocation types
30 years ago
Michael Meissner
afaed5e906
Fix some spacing
30 years ago
Jeff Law
90ffe48b18
* elf32-v850.c: Add comments about assumptions about
char, short & long sizes.
(elf32_v850_bfd_final_link_relocate): Fix sign extension
problems for several relocs.
Still fixing sda/tda/zda stuff.
30 years ago
Jeff Law
c322f1b523
* elf32-v850.c (elf_v850_howto_table): Fix ordering of
R_V850_ZDAOFFSET and R_V850_TDAOFFSET. Fix various
fields in R_V850_TDAOFFSET.
(elf32_v850_bfd_final_link_relocate): Tweak pc-relative
relocs to work more like other relocs. Handle R_V850_TDAOFF
relocations.
v850 tda, sda & zda stuff.
30 years ago
Jeff Law
725b96f599
* elf32-v850.c: Include bfdlink.h.
(bfd_elf32_v850_reloc): Return an error if we get a reloc
we can't handle.
(elf32_v850_bfd_final_link_relocate): New function.
(v850_elf_relocation_section): Likewise.
(elf_backend_relocate_section): Define.
New-style linker for the v850 (necessary to handle zda, sda & tda).
sda & tda relocs seem to be working. No tda reloc support yet.
30 years ago
Jeff Law
b6d08fce22
* elf32-v850.c (enum reloc_type): Add R_V850_SDA_OFFSET,
R_V850_TDA_OFFSET and R_V850_ZDA_OFFSET.
(elf_v850_howto_table): Corresponding changes.
(elf_v850_reloc_map): Corresponding changes.
* reloc.c: Add additional V850 relocations.
* bfd-in2.h, libbfd.h: Rebuilt.
30 years ago
Jeff Law
e1d98a0a65
* elf32-v850.c (bfd_elf32_v850_reloc): Mask out bits we
no longer want in pc-relative relocs.
Fixing some g++ testsuite failures.
30 years ago
Jeff Law
05f1baaa20
* elf32-v850.c (bfd_elf32_v850_reloc): Don't silently
accept a reloc against an undefined sybmol!
jeez. I'm going to go sit in the corner and hide.
30 years ago
Stu Grossman
1336da39bd
* elf32-v850.c: Define elf_symbol_leading_char to be '_'.
30 years ago
Jeff Law
e73b6ae634
* elf32-v850.c (bfd_elf32_v850_reloc): Fix handling of
low order sign bit propogationfor R_V850_HI16_S.
Fixes c-torture execute/950221-1.c, maybe others.
30 years ago
Jeff Law
237b5c4c9a
* elf32-v850.c (enum reloc_type): Add R_V850_{32,16,8}.
(elf_v850_howto_table): Add support for R_V850_{32,16,8}.
(v850_reloc_map): Add translation from BFD_RELOC_{32,16,8}
to R_V850_{32,16,8}.
So we don't get "reloc XXX not supported" messages anymore.
30 years ago
J.T. Conklin
01b49cb35b
* elf32-v850.c (reloc_type): Add R_V850_HI16_S.
(elf_v850_howto_table): Add info for HI16_S reloc.
(v850_reloc_map): Add HI_16_S reloc.
* reloc.c: Define BFD_RELOC_V850_* relocs.
30 years ago