OSDN Git Service
Alan Modra [Sat, 27 Jul 2002 00:00:04 +0000 (00:00 +0000)]
daily update
Richard Sandiford [Fri, 26 Jul 2002 18:56:25 +0000 (18:56 +0000)]
[bfd/]
* elfxx-mips.c (_bfd_mips_elf_merge_private_bfd_data): Merge ASE
flags into resulting BFD.
[ld/testsuite/]
* ld-mips-elf/mips16-1.d,
* ld-mips-elf/mips16-1[ab].s: New test.
* ld-mips-elf/mips-elf.exp: Run it.
Bernd Schmidt [Fri, 26 Jul 2002 11:14:04 +0000 (11:14 +0000)]
Change from OTHER_RELOCATING_SECTIONS to STACK_ADDR in elf32frv.sh
Alan Modra [Fri, 26 Jul 2002 05:32:05 +0000 (05:32 +0000)]
* elf32-i386.c (elf_i386_link_hash_table_create): Clear
tls_ldm_got.refcount.
Alan Modra [Fri, 26 Jul 2002 04:19:12 +0000 (04:19 +0000)]
* gas/ppc/altivec.d: Invoke "as" with "-a32".
Alan Modra [Fri, 26 Jul 2002 04:18:42 +0000 (04:18 +0000)]
* config/tc-ppc.c (ppc_set_cpu): Use PPC_OPCODE_64 as the default
rather than PPC_OPCODE_32 for powerpc64*.
Alan Modra [Fri, 26 Jul 2002 00:00:05 +0000 (00:00 +0000)]
daily update
Thiemo Seufer [Thu, 25 Jul 2002 15:35:14 +0000 (15:35 +0000)]
* elf64-mips.c: Update TODO comment.
(mips_elf64_higher_reloc,mips_elf64_highest_reloc,
mips_elf64_gprel16_reloca): Remove prototypes.
(mips16_jump_reloc,mips16_gprel_reloc): Add functions.
(UNUSED_RELOC): Replace by EMPTY_RELOC.
(mips_elf64_howto_table_rel): Use special R_MIPS_HI16 handling. Remove
wrong comments. Remove disfunctional support of R_MIPS_HIGHER and
R_MIPS_HIGHEST.
(mips_elf64_howto_table_rela): Fix handling of R_MIPS_GPREL16 and
R_MIPS_GOT16. Remove wrong comments.
(elf_mips16_jump_howto,elf_mips16_gprel_howto,
elf_mips_gnu_vtinherit_howto,elf_mips_gnu_vtentry_howto): New, code
from elf32-mips.c.
(mips_elf64_hi16_reloc): Fix formatting.
(mips_elf64_higher_reloc,mips_elf64_highest_reloc): Remove.
(mips_elf64_got16_reloc): Fix formatting. Remove superfluous code.
Better comment. Fall back to R_MIPS_GOT_DISP instead of abort().
(mips_elf64_gprel16_reloc): Make static. Add check for
partial_inplace.
(mips_elf64_gprel16_reloca): Remove.
(mips_elf64_literal_reloc): New function.
(mips_elf64_gprel32_reloc): Fix formatting.
(mips_elf64_shift6_reloc): Fix comment. Make static.
(mips16_jump_reloc,mips16_gprel_reloc): New functions, code from
elf32-mips.c.
(elf_reloc_map,mips_reloc_map): New mapping table, similiar as in
elf32-mips.c
(bfd_elf64_bfd_reloc_type_lookup): Use the mapping table. Enable GNU
specific relocations.
(mips_elf64_rtype_to_howto): Enable GNU specific relocations.
(mips_elf64_object_p): Invert logic to check for SGI-ish ABI.
(ELF_MAXPAGESIZE): Add comment.
Richard Sandiford [Thu, 25 Jul 2002 11:07:47 +0000 (11:07 +0000)]
Fix comment from last commit.
Nick Clifton [Thu, 25 Jul 2002 10:31:28 +0000 (10:31 +0000)]
New translations
Richard Sandiford [Thu, 25 Jul 2002 09:48:07 +0000 (09:48 +0000)]
[gas/]
* doc/c-mips.texi: Remove -mcpu. Document -mabi.
* configure.in (MIPS_CPU_STRING_DEFAULT): New configuration macro.
(USE_E_MIPS_ABI_O32, MIPS_DEFAULT_64BIT): New configuration macros.
* configure, config.in: Regenerate.
* config/tc-mips.c (file_mips_abi): Rename to mips_abi.
(mips_set_options): Remove "abi" field.
(mips_opts): Update accordingly. Replace all uses of mips_opts.abi
with mips_abi.
(mips_cpu): Remove.
(mips_arch_string, mips_arch_info): New vars.
(mips_tune_string, mips_tune_info): New vars.
(ABI_NEEDS_32BIT_REGS, ABI_NEEDS_64BIT_REGS): New macros.
(HAVE_32BIT_GPRS, HAVE_32BIT_FPRS): Don't check the ABI.
(mips_isa_to_str, mips_cpu_to_str): Remove.
(mips_ip): If the selected architecture is a generic ISA rather
than a processor, only mention the ISA level in error messages.
(OPTION_MCPU): Remove.
(OPTION_FP64): New.
(md_longopts): Add -mfp64, remove -mcpu.
(mips_set_option_string): New fn.
(md_parse_option): Make -mipsN update file_mips_isa rather than
mips_opts.isa. Use mips_set_option_string to set -march or -mtune.
Don't let -mgp32 and -mfp32 change the ABI.
(show): Move to end of file. Constify string argument.
(md_show_usage): Move to the end of the file. Read available
architectures from mips_cpu_info_table.
(mips_set_architecture): New fn.
(mips_after_parse_args): Rework. Remove -mcpu handling. -mipsN
is an alias for -march=mipsN. Don't change the ABI based on other
flags. Infer the register size from the ABI as well as the
architecture. Complain about more conflicting arguments.
Unify logic with GCC.
(s_mipsset): Don't change the ABI.
(mips_elf_final_processing): Check USE_E_MIPS_ABI_O32.
(mips_cpu_info_table): Remove Generic-MIPS* entries, keeping just
"mipsN"-type entries. Remove entries that vary only in the
manufacturer's prefix, or that have "000" replaced by "k".
Remove TARGET_CPU entries. Make r2000 entry use CPU_R3000.
(mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p): New fns.
(mips_parse_cpu): New fn.
(mips_cpu_info_from_name, mips_cpu_info_from_cpu): Remove.
(mips_cpu_info_from_isa): Minor formatting tweak.
[gas/testsuite]
* gas/mips/mips-gp32-fp64.d,
* gas/mips/mips-gp32-fp64-pic.d: Add -mfp64.
Richard Sandiford [Thu, 25 Jul 2002 09:44:39 +0000 (09:44 +0000)]
* opcode/mips.h (CPU_R2000): Remove.
Alan Modra [Thu, 25 Jul 2002 06:54:51 +0000 (06:54 +0000)]
* elf-bfd.h (_bfd_elf32_link_record_local_dynamic_symbol): Define
as elf_link_record_local_dynamic_symbol.
(_bfd_elf64_link_record_local_dynamic_symbol): Likewise.
(elf_link_record_local_dynamic_symbol): Declare. Now returns int.
* elflink.h (elf_link_record_local_dynamic_symbol): Move to..
* elflink.c: .. here. Use bfd_elf_get_elf_syms. Check whether an
attempt is made to record a symbol in a discarded section, and
return `2' in that case.
Alan Modra [Thu, 25 Jul 2002 00:00:05 +0000 (00:00 +0000)]
daily update
Dave Brolley [Wed, 24 Jul 2002 15:25:03 +0000 (15:25 +0000)]
2002-07-24 Dave Brolley <brolley@redhat.com>
* corefile.c (core_create_function_syms): Use the end of the section
containing the symbol to compute max_vma.
Nick Clifton [Wed, 24 Jul 2002 09:37:02 +0000 (09:37 +0000)]
oops - omitted from previous delta
Nick Clifton [Wed, 24 Jul 2002 09:34:08 +0000 (09:34 +0000)]
Update Spanish and Swedish translations
Alan Modra [Wed, 24 Jul 2002 06:45:02 +0000 (06:45 +0000)]
Add missing 2001-09-29 entry
H.J. Lu [Wed, 24 Jul 2002 06:42:54 +0000 (06:42 +0000)]
Fix a typo.
Alan Modra [Wed, 24 Jul 2002 00:00:04 +0000 (00:00 +0000)]
daily update
Nick Clifton [Tue, 23 Jul 2002 18:02:32 +0000 (18:02 +0000)]
fix typo introduced in previous delta
Alan Modra [Tue, 23 Jul 2002 12:46:43 +0000 (12:46 +0000)]
* Makefile.am: Run "make dep-am".
* Makefile.in: Regenerate.
* doc/Makefile.in: Regenerate.
* config.in: Regenerate.
* po/POTFILES.in: Regenerate.
Alan Modra [Tue, 23 Jul 2002 12:44:25 +0000 (12:44 +0000)]
* Makefile.am: Run "make dep-am".
* Makefile.in: Regenerate.
Alan Modra [Tue, 23 Jul 2002 12:42:32 +0000 (12:42 +0000)]
* Makefile.am: Run "make dep-am".
* Makefile.in: Regenerate.
* po/POTFILES.in: Regenerate.
Alan Modra [Tue, 23 Jul 2002 12:37:37 +0000 (12:37 +0000)]
Regenerate.
Alan Modra [Tue, 23 Jul 2002 12:34:35 +0000 (12:34 +0000)]
missed 'em from the last delta
Alan Modra [Tue, 23 Jul 2002 12:29:33 +0000 (12:29 +0000)]
* elf-hppa.h (elf_hppa_relocate_section): If relocatable, return
immediately. Remove code handling relocatable linking.
* elf32-avr.c (elf32_avr_relocate_section): Likewise.
* elf32-cris.c (cris_elf_relocate_section): Likewise.
* elf32-fr30.c (elf32_frv_relocate_section): Likewise.
* elf32-h8300.c (elf32_h8_relocate_section): Likewise.
* elf32-hppa.c (elf32_hppa_relocate_section): Likewise.
* elf32-ip2k.c (ip2k_elf_relocate_section): Likewise.
* elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
* elf32-v850.c (v850_elf_relocate_section): Likewise.
* elf32-vax.c (elf_vax_relocate_section): Likewise.
* elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
* elf32-avr.c (elf_backend_rela_normal): Define.
* elf32-cris.c: Likewise.
* elf32-fr30.c: Likewise.
* elf32-h8300.c: Likewise.
* elf32-hppa.c: Likewise.
* elf32-ip2k.c: Likewise.
* elf32-sparc.c: Likewise.
* elf32-v850.c: Likewise.
* elf32-vax.c: Likewise.
* elf64-hppa.c: Likewise.
* elf64-sparc.c: Likewise.
* elf32-fr30.c (elf32_frv_relocate_section): Edit comment.
* elf32-i860.c (elf32_i860_relocate_section): Likewise.
* elf32-ip2k.c (ip2k_elf_relocate_section): Likewise.
* elf32-m32r.c (m32r_elf_relocate_section): Likewise.
* elf32-openrisc.c (openrisc_elf_relocate_section): Likewise.
* elf32-xstormy16.c (xstormy16_elf_relocate_section): Likewise.
* elf-m10200.c (USE_RELA): Don't define.
* elf-m10300.c: Likewise.
* elf32-i370.c: Likewise.
* elf32-ip2k.c: Likewise.
* elf32-m68k.c: Likewise.
* elf32-mcore.c: Likewise.
* elf32-ppc.c: Likewise.
* elf32-s390.c: Likewise.
* elf32-vax.c: Likewise.
* elf64-ppc.c: Likewise.
* elf64-s390.c: Likewise.
* elf64-x86-64.c: Likewise.
* elfxx-ia64.c: Likewise.
* elf32-avr.c (USE_REL): Don't undef.
* elf32-ip2k.c: Likewise.
Nick Clifton [Tue, 23 Jul 2002 11:15:06 +0000 (11:15 +0000)]
Add new bitfield 'want_p_paddr_set_to_zero'.
Set this field for HPUX IA64 port.
Test this field when setting p_paddr.
Andrey Volkov [Tue, 23 Jul 2002 10:30:14 +0000 (10:30 +0000)]
sim-h8300.h new file
Nick Clifton [Tue, 23 Jul 2002 10:25:34 +0000 (10:25 +0000)]
Swapped the order of the MeSsAgEs and CoPyRiGhT tags to make >=NW4.x NLM
loaders to show the Copyright string.
Nick Clifton [Tue, 23 Jul 2002 09:59:47 +0000 (09:59 +0000)]
oops - omitted from previous delta
Nick Clifton [Tue, 23 Jul 2002 09:58:05 +0000 (09:58 +0000)]
update translations.
Nick Clifton [Tue, 23 Jul 2002 07:25:37 +0000 (07:25 +0000)]
Ken Raeburn is no longer the maintainer for GAS.
Alan Modra [Tue, 23 Jul 2002 05:12:57 +0000 (05:12 +0000)]
* doc/binutils.texi (addr2line <man synopsis>): Correct brackets.
Alan Modra [Tue, 23 Jul 2002 05:12:26 +0000 (05:12 +0000)]
* budemang.c: Include config.h and string.h/strings.h.
Alan Modra [Tue, 23 Jul 2002 04:38:17 +0000 (04:38 +0000)]
* elflink.h (elf_link_input_bfd): Don't change internal symbols
when outputting relocs.
Alan Modra [Tue, 23 Jul 2002 00:00:05 +0000 (00:00 +0000)]
daily update
Denis Chertykov [Mon, 22 Jul 2002 19:04:28 +0000 (19:04 +0000)]
* doc/c-ip2k.texi: The company name Scenix changed to Ubicom.
* doc/as.texi: Likewise.
Alan Modra [Mon, 22 Jul 2002 00:00:09 +0000 (00:00 +0000)]
daily update
Alan Modra [Sun, 21 Jul 2002 00:00:05 +0000 (00:00 +0000)]
daily update
Alan Modra [Sat, 20 Jul 2002 14:00:47 +0000 (14:00 +0000)]
* budemang.c: Include string.h.
Alan Modra [Sat, 20 Jul 2002 13:41:11 +0000 (13:41 +0000)]
* emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
bomb on /DISCARD/ input section.
* emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
* emultempl/mmo.em (mmo_place_orphan): Likewise.
Jason Thorpe [Sat, 20 Jul 2002 04:09:30 +0000 (04:09 +0000)]
* elf64-alpha.c (elf64_alpha_size_dynamic_sections): Only insert
DT_PLTGOT into the dynamic section if there is a PLT.
Alan Modra [Sat, 20 Jul 2002 00:00:05 +0000 (00:00 +0000)]
daily update
Thiemo Seufer [Fri, 19 Jul 2002 21:34:02 +0000 (21:34 +0000)]
* elfxx-mips.c (_bfd_mips_elf_discard_info): New function, code from
elf32-mips.c.
(_bfd_mips_elf_write_section): Likewise.
* elfxx-mips.h (_bfd_mips_elf_discard_info): New prototype.
(_bfd_mips_elf_write_section): Likewise.
* elf32-mips.c (elf32_mips_discard_info): Move to elfxx-mips.c.
(elf32_mips_write_section): Likewise.
* elf64-mips.c (_bfd_mips_elf_ignore_discarded_relocs): Use it.
(_bfd_mips_elf_write_section): Likewise.
Thiemo Seufer [Fri, 19 Jul 2002 21:30:26 +0000 (21:30 +0000)]
* config/tc-mips.c (mips_need_elf_addend_fixup): Use S_IS_EXTERNAL
instead of S_IS_EXTERN.
(md_estimate_size_before_relax): Likewise.
(mips_fix_adjustable): Likewise.
Thiemo Seufer [Fri, 19 Jul 2002 21:28:49 +0000 (21:28 +0000)]
* config/tc-mips.c (mips_pic_level): Remove IRIX4_PIC.
Chris Demetriou [Fri, 19 Jul 2002 18:16:30 +0000 (18:16 +0000)]
2002-07-19 Chris Demetriou <cgd@broadcom.com>
* MAINTAINERS: Clarify updates of config.guess and config.sub, and
add one instance of them which was missed to the list to update.
Nick Clifton [Fri, 19 Jul 2002 11:35:06 +0000 (11:35 +0000)]
Make .ifdef treat a referenced but not yet defined symbol as if it were
undefined, in exactly the same way as .equiv.
Nick Clifton [Fri, 19 Jul 2002 07:52:40 +0000 (07:52 +0000)]
Add IP2k GAS and OPCODES support.
Hans-Peter Nilsson [Fri, 19 Jul 2002 03:30:13 +0000 (03:30 +0000)]
* ld-mmix/sec-1.d: Adjust for changes in padding.
* ld-mmix/sec-3.d: Ditto.
Hans-Peter Nilsson [Fri, 19 Jul 2002 02:56:59 +0000 (02:56 +0000)]
* emultempl/mmo.em (mmo_place_orphan): Handle case of no .text
output section.
Hans-Peter Nilsson [Fri, 19 Jul 2002 01:51:17 +0000 (01:51 +0000)]
* gas/mmix/list-pseudoints.l: Adjust for changes in gas section
padding.
* gas/mmix/greg7.d: Ditto.
* gas/mmix/greg8.d: Ditto.
* gas/mmix/fb-2.d: Ditto.
* gas/mmix/comment-1.d: Ditto.
* gas/mmix/byte-1.d: Ditto.
Alan Modra [Fri, 19 Jul 2002 01:10:28 +0000 (01:10 +0000)]
* elfxx-ia64.c: (elfNN_ia64_modify_segment_map): Properly scan
PT_IA_64_UNWIND segments for a given section.
Alan Modra [Fri, 19 Jul 2002 00:00:05 +0000 (00:00 +0000)]
daily update
Nick Clifton [Thu, 18 Jul 2002 11:11:13 +0000 (11:11 +0000)]
Add IP2K support
Alan Modra [Thu, 18 Jul 2002 00:00:04 +0000 (00:00 +0000)]
daily update
Andrew Cagney [Wed, 17 Jul 2002 21:20:09 +0000 (21:20 +0000)]
Index: sim/common/ChangeLog
2002-07-17 Andrew Cagney <cagney@redhat.com>
* run-sim.h: Add #ifdef RUN_SIM_H wrapper.
(sim_set_callbacks, sim_size, sim_trace)
(sim_set_trace, sim_set_profile_size, sim_kill): Declare. Moved
to here from "gdb/remote-sim.h".
Index: include/gdb/ChangeLog
2002-07-17 Andrew Cagney <cagney@redhat.com>
* remote-sim.h: Update copyright.
(sim_set_callbacks, sim_size, sim_trace)
(sim_set_trace, sim_set_profile_size, sim_kill): Delete. Moved to
"sim/common/run-sim.h".
Joern Rennecke [Wed, 17 Jul 2002 18:43:26 +0000 (18:43 +0000)]
include/gdb:
* sim-sh.h: Add enum constants for sh[1-4], sh3e, sh3?-dsp,
renumbering the sh-dsp registers to use distinct numbers.
sim/sh:
* Makefile.in (interp.o): Depend on $(srcroot)/include/gdb/sim-sh.h.
* interp.c: Include "gdb/sim-sh.h".
(sim_store_register, sim_fetch_register): Use constants defined there.
gdb:
* sh-tdep.c (sh_dsp_register_sim_regno): New function.
(sh_gdbarch_init): Use it for sh-dsp.
H.J. Lu [Wed, 17 Jul 2002 17:53:28 +0000 (17:53 +0000)]
2002-07-17 H.J. Lu <hjl@gnu.org>
* Makefile.am: Fix a typo.
* Makefile.in: Regenerate.
Nick Clifton [Wed, 17 Jul 2002 14:18:37 +0000 (14:18 +0000)]
oops - omitted from previous delta
Nick Clifton [Wed, 17 Jul 2002 14:15:52 +0000 (14:15 +0000)]
Add IP2k support to BFD and LD
Richard Earnshaw [Wed, 17 Jul 2002 12:17:18 +0000 (12:17 +0000)]
From: Ian Rickards <irickard@arm.com>
* dwarf2.c (concat_filename): If we can't establish the directory
just return the filename.
H.J. Lu [Wed, 17 Jul 2002 07:27:40 +0000 (07:27 +0000)]
2002-07-17 David Mosberger <davidm@hpl.hp.com>
* ia64-opc-b.c (bWhc): New macro.
(mWhc): Ditto.
(OpPaWhcD): Ditto.
(ia64_opcodes_b): Correct patterns for indirect call
instructions to use 3-bit "wh" field.
* ia64-asmtab.c: Regnerate.
H.J. Lu [Wed, 17 Jul 2002 07:26:30 +0000 (07:26 +0000)]
2002-07-17 H.J. Lu <hjl@gnu.org>
* gas/ia64/dv-branch.d: Updated.
* gas/ia64/opc-b.d: Likewise.
Chris Demetriou [Wed, 17 Jul 2002 00:17:14 +0000 (00:17 +0000)]
2002-07-16 Chris Demetriou <cgd@broadcom.com>
* config.guess: Update to 2002-07-09 version.
* config.sub: Update to 2002-07-03 version.
Alan Modra [Wed, 17 Jul 2002 00:00:05 +0000 (00:00 +0000)]
daily update
Jan Hubicka [Tue, 16 Jul 2002 22:31:19 +0000 (22:31 +0000)]
* tc-i386.c (i386_align_code): Implement x86_64 neutral code fillers.
Alan Modra [Tue, 16 Jul 2002 13:37:49 +0000 (13:37 +0000)]
* config/tc-z8k.c (build_bytes): Correct order of memset args.
Alan Modra [Tue, 16 Jul 2002 13:35:58 +0000 (13:35 +0000)]
* peXXigen.c (_bfd_XXi_swap_aouthdr_out): Correct order of memset args.
Alan Modra [Tue, 16 Jul 2002 12:31:35 +0000 (12:31 +0000)]
* elflink.h: Formatting fixes, tidy prototypes.
(elf_link_assign_sym_version): Move common code out of loop.
Alan Modra [Tue, 16 Jul 2002 09:00:42 +0000 (09:00 +0000)]
* elflink.h (elf_link_input_bfd): Don't call reloc_emitter when
reloc section size is zero. Correct reloc output location.
Nick Clifton [Tue, 16 Jul 2002 07:58:34 +0000 (07:58 +0000)]
Add 'Chnages in 2.13' to NEWS files.
Alan Modra [Tue, 16 Jul 2002 02:26:30 +0000 (02:26 +0000)]
* elf-hppa.h (elf_hppa_reloc_final_type): Use R_PARISC_PCREL16F as
the final type for the e_fsel selector when generating PA2.0W code.
(elf_hppa_relocate_insn): Provide support for PA2.0W 16-bit format 1
relocations.
H.J. Lu [Tue, 16 Jul 2002 00:15:57 +0000 (00:15 +0000)]
2002-07-15 H.J. Lu <hjl@gnu.org>
* ld-elfvers/vers.exp: Add vers21.
* ld-elfvers/vers21.c: New.
* ld-elfvers/vers21.dsym: New.
* ld-elfvers/vers21.map: New.
* ld-elfvers/vers21.sym: New.
* ld-elfvers/vers21.ver: New.
Alan Modra [Tue, 16 Jul 2002 00:00:04 +0000 (00:00 +0000)]
daily update
H.J. Lu [Mon, 15 Jul 2002 02:23:26 +0000 (02:23 +0000)]
bfd/
2002-07-14 H.J. Lu <hjl@gnu.org>
* elflink.h (elf_link_assign_sym_version): Hide the default
definition if there is a hidden versioned definition.
ld/
2002-07-14 H.J. Lu <hjl@gnu.org>
* ld.texinfo: Document a .symver takes precedence over a
version script.
Alan Modra [Mon, 15 Jul 2002 01:52:48 +0000 (01:52 +0000)]
copyright date
Alan Modra [Mon, 15 Jul 2002 01:51:07 +0000 (01:51 +0000)]
* config/tc-hppa.h (LABELS_WITHOUT_COLONS): Define if TE_NetBSD.
Alan Modra [Mon, 15 Jul 2002 00:00:05 +0000 (00:00 +0000)]
daily update
Alan Modra [Sun, 14 Jul 2002 00:00:05 +0000 (00:00 +0000)]
daily update
Alan Modra [Sat, 13 Jul 2002 00:00:04 +0000 (00:00 +0000)]
daily update
Hans-Peter Nilsson [Fri, 12 Jul 2002 15:54:57 +0000 (15:54 +0000)]
* elf32-cris.c (cris_elf_relocate_section): Drop nonsensical
dynamic reference test in assertion when initializing GOT with
static contents. Just assert that there are either no dynamic
sections, the symbol is defined in the regular objects or that the
symbol is undef weak. Tweak comment.
(elf_cris_finish_dynamic_symbol): Emit .got reloc for a program
only if the symbol isn't defined in the program and isn't undef
weak.
(elf_cris_adjust_dynamic_symbol): Simplify condition for getting
rid of PLT entry: only do it if the symbol isn't defined in a DSO.
When doing so, clear ELF_LINK_HASH_NEEDS_PLT. Tweak comments.
(elf_cris_discard_excess_program_dynamics): Don't consider
ELF_LINK_HASH_REF_DYNAMIC when omitting .got runtime relocs.
Hans-Peter Nilsson [Fri, 12 Jul 2002 15:51:54 +0000 (15:51 +0000)]
* ld-cris/nodyn4.d, ld-cris/expdyn4.d, ld-cris/comref1.s,
ld-cris/euwref1.s, ld-cris/expdyn3.d, ld-cris/expdyn2.d,
ld-cris/expdref1.s: New tests.
Alan Modra [Fri, 12 Jul 2002 06:48:54 +0000 (06:48 +0000)]
* emulparams/elf64ppc.sh (ARCH): Set to powerpc:common64.
(COMMONPAGESIZE): Define.
Alan Modra [Fri, 12 Jul 2002 03:47:36 +0000 (03:47 +0000)]
* config/tc-i386.c (process_suffix): Merge CODE_64BIT JumpByte
case with non CODE_64BIT case. Don't warn on "qword ptr" if
not CODE_64BIT.
Alan Modra [Fri, 12 Jul 2002 00:00:03 +0000 (00:00 +0000)]
daily update
DJ Delorie [Thu, 11 Jul 2002 20:14:41 +0000 (20:14 +0000)]
* configure.in: Remove two redundant tests.
DJ Delorie [Thu, 11 Jul 2002 19:38:34 +0000 (19:38 +0000)]
* configure.in (mips*-*-irix6*o32): Enable stabs.
Alan Modra [Thu, 11 Jul 2002 05:33:28 +0000 (05:33 +0000)]
* elf32-i386.c (elf_i386_relocate_section): Don't complain about
unresolved debugging relocs in dynamic applications.
* elf32-s390.c (elf_s390_relocate_section): Likewise.
* elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
* elf64-ppc.c (ppc64_elf_relocate_section): Likewise.
* elf64-s390.c (elf_s390_relocate_section): Likewise.
* elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
* elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
Alan Modra [Thu, 11 Jul 2002 01:07:49 +0000 (01:07 +0000)]
* config/tc-ppc.c (ppc_elf_frob_symbol): Delete.
(ppc_frob_file_before_adjust): New function.
* config/tc-ppc.h (tc_frob_symbol): Don't define.
(ppc_elf_frob_symbol): Don't declare.
(tc_frob_file_before_adjust): Define.
(ppc_frob_file_before_adjust): Declare.
Alan Modra [Thu, 11 Jul 2002 01:06:58 +0000 (01:06 +0000)]
* config/tc-ppc.c (md_pseudo_table): Warning fix.
(ppc_cpu): Make it unsigned long to agree with struct powerpc_opcode
flags.
(ppc_size): Delete.
(ppc_xcoff64): Rename to ppc_obj64.
(md_parse_option <m>): Encode old ppc_size value in ppc_cpu.
(ppc_set_cpu): Set PPC_OPCODE_32 too.
(ppc_arch): Use ppc_obj64 instead of ppc_size to select bfd_mach_ppc64
or bfd_mach_ppc.
(ppc_target_format): Use ppc_obj64 to select format.
(md_begin): Adjust for PPC_OPCODE_32/64 in ppc_cpu.
(ppc_insert_operand): Use ppc_obj64 instead of ppc_size.
(ppc_elf_suffix): Likewise. Don't depend on BFD_DEFAULT_TARGET_SIZE.
(tc_frob_symbol): Likewise.
(md_assemble): Use ppc_obj64 instead of ppc_size. Don't depend on
BFD_DEFAULT_TARGET_SIZE.
(ppc_tc): Likewise.
(ppc_is_toc_sym): Likewise.
(md_apply_fix3): Likewise.
* config/tc-ppc.h (TC_FORCE_RELOCATION): Don't depend on
BFD_DEFAULT_TARGET_SIZE.
(ELF_TC_SPECIAL_SECTIONS): Likewise.
(tc_frob_symbol): Likewise.
Alan Modra [Thu, 11 Jul 2002 00:00:05 +0000 (00:00 +0000)]
daily update
Jakub Jelinek [Wed, 10 Jul 2002 15:28:34 +0000 (15:28 +0000)]
* readelf.c (get_dynamic_type): Handle DT_GNU_PRELINKED,
DT_GNU_CONFLICT* and DT_GNU_LIBLISZ*.
(get_section_type_name): Handle SHT_GNU_LIBLIST.
(process_dynamic_segment): Handle DT_GNU_CONFLICTSZ,
DT_GNU_LIBLISTSZ and DT_GNU_PRELINKED.
(process_gnu_liblist): New.
(process_file): Call it.
* elf/common.h (SHT_GNU_LIBLIST, DT_GNU_PRELINKED,
DT_GNU_CONFLICT*, DT_GNU_LIBLIST*): Define.
Alan Modra [Wed, 10 Jul 2002 11:46:19 +0000 (11:46 +0000)]
* elf64-ppc.c (ONES): Define.
(ppc64_elf_howto_table): Use ONES here to avoid warnings. Fill in
missing src_mask fields. Tweak R_PPC64_NONE, R_PPC64_COPY. Fill
in missing dst_mask fields on R_PPC64_PLT32, R_PPC64_PLTREL32.
Alan Modra [Wed, 10 Jul 2002 10:28:44 +0000 (10:28 +0000)]
* elf64-ppc.c (ppc64_elf_get_symbol_info): Delete.
(ppc64_elf_set_private_flags): Delete.
(ppc64_elf_section_from_shdr): Delete.
(ppc64_elf_merge_private_bfd_data): Remove flag checking/merging code.
(ppc64_elf_fake_sections): Delete.
(bfd_elf64_bfd_set_private_flags): Don't define.
(bfd_elf64_get_symbol_info): Likewise.
(elf_backend_section_from_shdr): Likewise.
(elf_backend_fake_sections): Likewise.
Alan Modra [Wed, 10 Jul 2002 04:59:42 +0000 (04:59 +0000)]
* elf.c: (assign_section_numbers) Set sh_entsize for .stab only
when not already set.
* elf64-sparc.c: (sparc64_elf_fake_sections): New function.
(elf_backend_fake_sections): Define.
DJ Delorie [Wed, 10 Jul 2002 00:01:58 +0000 (00:01 +0000)]
merge from gcc
Alan Modra [Wed, 10 Jul 2002 00:00:04 +0000 (00:00 +0000)]
daily update
Alan Modra [Tue, 9 Jul 2002 23:47:22 +0000 (23:47 +0000)]
* merge.c (_bfd_merge_section): Remove redundant output_section check.
Formatting.
(_bfd_merge_sections): Don't set SEC_EXCLUDE on unused sections.