H.J. Lu
71cb94647f
2005-06-20 H.J. Lu <hongjiu.lu@intel.com>
...
PR 1025:
* elf32-i386.c (elf_i386_check_relocs): Handle indirect symbol.
* elf64-x86-64.c (elf64_x86_64_check_relocs): Likewise.
2005-06-20 12:59:49 +00:00
Alan Modra
23dc103238
daily update
2005-06-20 00:00:06 +00:00
Alan Modra
a81c87039a
daily update
2005-06-19 00:00:06 +00:00
H.J. Lu
73d147dcf0
2005-06-18 H.J. Lu <hongjiu.lu@intel.com>
...
* reloc.c: Add BFD_RELOC_X86_64_GOTOFF64 and
BFD_RELOC_X86_64_GOTPC32.
* bfd-in2.h: Regenerated.
2005-06-18 13:23:06 +00:00
Alan Modra
2fdad614a8
daily update
2005-06-18 00:00:08 +00:00
Jakub Jelinek
aa2ca951cf
* elf.c (bfd_section_from_shdr): Kill bogus warning.
2005-06-17 15:48:25 +00:00
Jakub Jelinek
a50b216054
* elf.c (bfd_section_from_shdr): Fail if sh_entsize is bogus for
...
symbol, relocation, group or versym sections.
* coffcode.h (coff_slurp_reloc_table): Don't crash if native_relocs
is NULL.
* peXXigen.c (pe_print_idata): Don't crash if dll_name or start_address
doesn't point into the section.
2005-06-17 13:39:56 +00:00
Jan Beulich
d6ab8113e3
bfd/
...
2005-06-17 Jan Beulich <jbeulich@novell.com>
* bfd-in2.h (elf_x86_64_reloc_type): Add BFD_RELOC_X86_64_GOTOFF64
and BFD_RELOC_X86_64_GOTPC32.
* libbfd.h (bfd_reloc_code_real_names): Likewise.
* elf64-x86-64.c (x86_64_elf_howto_table): Add entries for
R_X86_64_PC64, R_X86_64_GOTOFF64, and R_X86_64_GOTPC32.
(x86_64_reloc_map): Add entries for R_X86_64_PC64, R_X86_64_GOTOFF64,
and R_X86_64_GOTPC32.
(elf64_x86_64_info_to_howto): Adjust bounding relocation type.
(elf64_x86_64_check_relocs): Also handle R_X86_64_PC64,
R_X86_64_GOTOFF64, and R_X86_64_GOTPC32.
(elf64_x86_64_relocate_section): Likewise.
(elf64_x86_64_gc_sweep_hook): Also handle R_X86_64_PC64.
gas/
2005-06-17 Jan Beulich <jbeulich@novell.com>
* config/tc-i386.c (reloc): Also handle BFD_RELOC_64_PCREL.
(tc_i386_fix_adjustable): Include BFD_RELOC_X86_64_GOTOFF64,
BFD_RELOC_X86_64_DTPOFF64, and BFD_RELOC_X86_64_TPOFF64.
(output_disp): Do GOTPC conversion also for BFD_RELOC_X86_64_32S
and BFD_RELOC_32_PCREL. Use BFD_RELOC_X86_64_GOTPC32 instead of
aborting.
(output_imm): Do GOTPC conversion also for BFD_RELOC_X86_64_32S.
Use BFD_RELOC_X86_64_GOTPC32 instead of aborting.
(tc_gen_reloc): Do GOTPC conversion also for BFD_RELOC_32_PCREL.
Use BFD_RELOC_X86_64_GOTPC32 instead of aborting. Also handle
BFD_RELOC_X86_64_GOTOFF64, BFD_RELOC_X86_64_GOTPC32,
BFD_RELOC_X86_64_DTPOFF64, and BFD_RELOC_X86_64_TPOFF64. Also
convert 8-byte pc-relative relocations.
(lex_got): Use BFD_RELOC_X86_64_GOTOFF64 for 64-bit @gotoff.
(i386_validate_fix): Likewise.
(x86_cons): Also handle quad values in 64-bit mode.
(i386_displacement): Also handle BFD_RELOC_X86_64_GOTOFF64.
(md_apply_fix): Include BFD_RELOC_X86_64_DTPOFF64 and
BFD_RELOC_X86_64_TPOFF64 in the TLS check. Also convert BFD_RELOC_64
to pc-relative variant. Also check for BFD_RELOC_64_PCREL.
gas/testsuite/
2005-06-17 Jan Beulich <jbeulich@novell.com>
* gas/i386/x86-64-pcrel.s: Add insn requiring 64-bit pc-relative
relocation. Add insns for all widths of non-pc-relative relocations.
* gas/i386/x86-64-pcrel.d: Adjust.
include/elf/
2005-06-17 Jan Beulich <jbeulich@novell.com>
* x86-64.h (elf_x86_64_reloc_type): Adjust comment for
R_X86_64_GOTPCREL. Add R_X86_64_PC64, R_X86_64_GOTOFF64, and
R_X86_64_GOTPC32.
2005-06-17 08:03:59 +00:00
Alan Modra
61e264e76f
daily update
2005-06-17 00:00:08 +00:00
Mark Kettenis
b820f1e4a8
* archive.c: Include "libiberty.h".
2005-06-16 08:05:39 +00:00
Alan Modra
3052d83e15
daily update
2005-06-16 00:00:05 +00:00
Nick Clifton
4676756165
* elf32-v850.c (ELF_MACHINE_ALT2): Define so that binaries produced by the
...
GreenHills toolchain can be assimilated.
2005-06-15 08:22:45 +00:00
Dave Anglin
580a09db88
* som.c (som_find_inliner_info): New.
2005-06-15 00:16:10 +00:00
Alan Modra
2859bc09e9
daily update
2005-06-15 00:00:06 +00:00
H.J. Lu
91134c823b
2005-06-14 H.J. Lu <hongjiu.lu@intel.com>
...
* elflink.c (_bfd_elf_merge_symbol): Fix a typo in comment.
2005-06-14 19:25:45 +00:00
Jakub Jelinek
933d961a3c
* elf.c (bfd_section_from_shdr): Fail if name is NULL.
...
Prevent endless recursion on broken objects.
* archive.c (do_slurp_coff_armap): Check for overflows.
2005-06-14 11:04:22 +00:00
Alan Modra
23ecb406a7
daily update
2005-06-14 00:00:06 +00:00
Alan Modra
2087f04778
daily update
2005-06-13 00:00:09 +00:00
Alan Modra
7391a870ba
daily update
2005-06-12 00:00:05 +00:00
Alan Modra
f030b8138b
daily update
2005-06-11 00:00:07 +00:00
Daniel Jacobowitz
9a44bbd9a9
* elfcode.h (elf_write_relocs): Do nothing if there are no
...
relocations.
2005-06-10 20:22:23 +00:00
Alan Modra
75758e9ddb
* dwarf2.c (decode_line_info): Revert last change. Instead set
...
initial low_pc to -1 to avoid need to test whether loc_pc has
been set.
2005-06-10 10:14:23 +00:00
Alan Modra
98d08a6283
daily update
2005-06-10 00:00:08 +00:00
Christopher Faylor
2ae0844c54
* coffcode.h (sec_to_styp_flags): Set appropriate section flags when either
...
SEC_ALLOC OR SEC_LOAD.
2005-06-09 19:22:15 +00:00
Christopher Faylor
3b137b9a08
* coffcode.h (sec_to_styp_flags): Remove read/write flags from noload section
...
header. Do not add STYP_NOLOAD since it does not appear to be a valid PE flag.
2005-06-09 14:40:50 +00:00
H.J. Lu
6bd00c5db5
2005-06-09 H.J. Lu <hongjiu.lu@intel.com>
...
PR 1000
* dwarf2.c (lookup_address_in_line_info_table): Restore code
handling NULL function info, removed with 2005-04-03 change.
2005-06-09 13:32:30 +00:00
Mark Mitchell
a366f4ff7b
* opncls.c (bfd_fopen): Mark returned BFD as cacheable if FD == -1.
2005-06-09 07:30:19 +00:00
Alan Modra
0e58fcf315
* elflink.c (elf_mark_used_section): Delete.
...
(bfd_elf_gc_sections): Call bfd_generic_gc_sections.
* reloc.c (bfd_mark_used_section): New function.
(bfd_generic_gc_sections): Call bfd_mark_used_section.
2005-06-09 02:02:18 +00:00
Alan Modra
8f736feabd
daily update
2005-06-09 00:00:04 +00:00
Alan Modra
d83747fa84
* opncls.c (bfd_fdopenr): Don't set bfd_error unconditionally.
2005-06-08 03:51:32 +00:00
Alan Modra
92a7c1b8ba
* opncls.c (bfd_fopen): Don't set bfd_error unconditionally.
2005-06-08 03:16:48 +00:00
Alan Modra
7b9028c07d
daily update
2005-06-08 00:00:07 +00:00
Mark Mitchell
dfab97d66b
* opncls.c (bfd_fdopenr): Add missing break statements.
2005-06-08 00:00:05 +00:00
Mark Mitchell
2d0123b785
* opncls.c (bfd_fopen): New API.
...
(bfd_openr): Use it.
(bfd_fdopenr): Likewise.
* bfd-in2.h: Regenerated.
2005-06-07 22:53:32 +00:00
Aldy Hernandez
de33e64021
* Makefile.am (ALL_MACHINES): Add ms1 support.
...
(ALL_MACHINES_CFILES): Same.
(BFD32_BACKENDS): Same.
(BFD32_BACKENDS_CFILES): Same.
* Makefile.in: Regenerate.
* archures.c (bfd_architecture): Add ms1 entries.
Externalize bfd_ms1_arch.
(bfd_archures_list): Add bfd_ms1_arch.
* bfd-in2.h: Regenerate.
* cpu-ms1.c: New file.
* elf32-ms1.c: New file.
* targets.c: Define extern of bfd_elf32_ms1_vec.
Add bfd_elf32_ms1_vec to _bfd_target_vector.
* configure.in: Add bfd_elf32_ms1_vec case.
* configure: Regenerate.
* config.bfd: Add ms1-*-elf to table.
2005-06-07 21:07:32 +00:00
Zack Weinberg
55cf6793d8
gas:
...
* cgen.c, cgen.h, tc.h, write.c, config/obj-coff.c
* config/tc-a29k.c, config/tc-alpha.c, config/tc-alpha.h
* config/tc-arc.c, config/tc-arc.h, config/tc-arm.c
* config/tc-arm.h, config/tc-avr.c, config/tc-avr.h
* config/tc-cris.c, config/tc-crx.c, config/tc-d10v.c
* config/tc-d10v.h, config/tc-d30v.c, config/tc-d30v.h
* config/tc-dlx.c, config/tc-dlx.h, config/tc-fr30.h
* config/tc-frv.c, config/tc-frv.h, config/tc-h8300.c
* config/tc-h8500.c, config/tc-hppa.c, config/tc-hppa.h
* config/tc-i370.c, config/tc-i370.h, config/tc-i386.c
* config/tc-i386.h, config/tc-i860.c, config/tc-i860.h
* config/tc-i960.c, config/tc-i960.h, config/tc-ia64.c
* config/tc-ip2k.c, config/tc-ip2k.h, config/tc-iq2000.c
* config/tc-iq2000.h, config/tc-m32r.c, config/tc-m32r.h
* config/tc-m68hc11.c, config/tc-m68hc11.h, config/tc-m68k.c
* config/tc-m68k.h, config/tc-m88k.c, config/tc-maxq.c
* config/tc-mcore.c, config/tc-mcore.h, config/tc-mips.c
* config/tc-mips.h, config/tc-mmix.c, config/tc-mn10200.c
* config/tc-mn10300.c, config/tc-msp430.c, config/tc-ns32k.c
* config/tc-openrisc.h, config/tc-or32.c, config/tc-or32.h
* config/tc-pdp11.c, config/tc-pj.c, config/tc-pj.h
* config/tc-ppc.c, config/tc-ppc.h, config/tc-s390.c
* config/tc-s390.h, config/tc-sh64.c, config/tc-sh.c
* config/tc-sh.h, config/tc-sparc.c, config/tc-sparc.h
* config/tc-tahoe.c, config/tc-tic30.c, config/tc-tic4x.c
* config/tc-tic54x.c, config/tc-tic80.c, config/tc-v850.c
* config/tc-v850.h, config/tc-vax.c, config/tc-vax.h
* config/tc-w65.c, config/tc-xstormy16.c, config/tc-xstormy16.h
* config/tc-xtensa.c, config/tc-z8k.c:
Replace all instances of the string "_apply_fix3" with
"_apply_fix".
* po/POTFILES.in, po/gas.pot: Regenerate.
bfd:
* coff-i386.c: Change md_apply_fix3 to md_apply_fix in comment.
cgen:
* doc/porting.texi: Change all mention of md_apply_fix3 and
gas_cgen_md_apply_fix3 to md_apply_fix and gas_cgen_md_apply_fix
respectively.
2005-06-07 17:54:22 +00:00
Alan Modra
d41c820ec1
missed committing from
...
* elf64-ppc.h (ppc64_elf_edit_opd): Update prototype.
2005-06-07 12:12:11 +00:00
Alan Modra
4575b1b508
* coff-rs6000.c (rs6000coff_vec, pmac_xcoff_vec): Init _bfd_find_line.
...
* coff64-rs6000.c (rs6000coff64_vec, aix5coff64_vec): Likewise.
2005-06-07 03:13:05 +00:00
Alan Modra
07c7ebe390
daily update
2005-06-07 00:00:05 +00:00
H.J. Lu
5420f73dbb
bfd/
...
2005-06-06 H.J. Lu <hongjiu.lu@intel.com>
PR 990
* bfd.c (bfd_find_line): New.
* dwarf2.c (comp_unit): Add variable_table.
(funcinfo): Add file, line, and sec.
(varinfo): New.
(lookup_symbol_in_function_table): New.
(lookup_symbol_in_variable_table): New.
(scan_unit_for_functions): Renamed to ...
(scan_unit_for_symbols): This. Handle DW_TAG_entry_point and
DW_TAG_variable.
(comp_unit_find_nearest_line): Updated.
(comp_unit_find_line): New.
(_bfd_dwarf2_find_line): New.
* elf-bfd.h (_bfd_elf_find_line): New.
(_bfd_generic_find_line): New. Defined.
* elf.c (_bfd_elf_find_line): New.
* libbfd-in.h (_bfd_dwarf2_find_line): New.
(_bfd_generic_find_line): New.
* bfd-in2.h: Regenerated.
* libbfd.h: Likewise.
* libbfd.c (_bfd_generic_find_line): New.
* targets.c (BFD_JUMP_TABLE_SYMBOLS): Initialize _bfd_find_line
with _bfd_generic_find_line.
(bfd_target): Add _bfd_find_line.
binutils/
2005-06-06 H.J. Lu <hongjiu.lu@intel.com>
PR 990
* nm.c (print_symbol): Call bfd_find_line before
bfd_find_nearest_line.
2005-06-06 14:28:31 +00:00
H.J. Lu
b42f9a05b6
2005-06-06 H.J. Lu <hongjiu.lu@intel.com>
...
* dwarf2.c (decode_line_info): Properly set low_pc.
2005-06-06 14:16:45 +00:00
Alan Modra
46de2a7c48
* elf64-ppc.c (ppc_stub_name): Return immediately on bfd_malloc fail.
...
(ppc64_elf_edit_opd): Ignore zero size .opd. Check bfd_alloc
return value.
2005-06-06 13:16:15 +00:00
Alan Modra
b4f4e59fff
bfd/
...
* elf64-pcc.c (ppc64_elf_gc_mark_hook): For the local sym in .opd
case, include addend when indexing .opd section map.
(ppc64_elf_edit_opd): Add no_opd_opt param. Do nothing besides
clear opd_adjust array if no_opd_opt set. Tidy code.
* elf64-ppc.h (ppc64_elf_edit_opd): Update prototype.
ld/
* emultempl/ppc64elf.em (ppc_before_allocation): Always run
ppc64_elf_edit_opd.
2005-06-06 12:59:59 +00:00
Alan Modra
1daed1d500
daily update
2005-06-06 00:00:06 +00:00
Alan Modra
a3ba164022
daily update
2005-06-05 00:00:06 +00:00
H.J. Lu
2ae727ad93
2005-06-04 H.J. Lu <hongjiu.lu@intel.com>
...
* dwarf2.c (comp_unit): Fix a typo in comment.
2005-06-04 16:33:09 +00:00
Alan Modra
92da31229a
daily update
2005-06-04 00:00:08 +00:00
Nick Clifton
0311b7a8b2
Remove spurious blank space
2005-06-03 10:14:29 +00:00
Nick Clifton
ce71b57665
Convert to ISO C90 formatting
2005-06-03 10:13:15 +00:00
Alan Modra
e1fffbe6e9
include/
...
* bfdlink.h (struct bfd_link_callbacks): Add einfo.
bfd/
* configure.in: Bump version
* configure: Regenerate.
* elflink.c (elf_link_input_bfd): Use einfo linker callback to print
discarded section sym refs and kill linker output.
* simple.c (simple_dummy_einfo): New function.
(bfd_simple_get_relocated_section_contents): Init callbacks.einfo.
ld/
* ldmain.c (link_callbacks): Add einfo.
(add_archive_element): Use passed info, not link_info.
(constructor_callback): Likewise.
(reloc_overflow): Don't handle null bfd specially.
(reloc_dangerous, unattached_reloc): Likewise.
* ldmisc.c (vfinfo <B>): Print "ld generated" for null bfd.
(vfinfo <C, D, G>): Handle null bfd. Wrap comments.
2005-06-03 09:52:50 +00:00