OSDN Git Service

pf3gnuchains/pf3gnuchains3x.git
19 years ago PR 425
Alan Modra [Tue, 5 Oct 2004 11:12:56 +0000 (11:12 +0000)]
PR 425
* syms.c (_bfd_stab_section_find_nearest_line): Ignore R_*_NONE relocs.

19 years agodaily update
Alan Modra [Tue, 5 Oct 2004 00:00:06 +0000 (00:00 +0000)]
daily update

19 years ago2004-10-04 Eric Christopher <echristo@redhat.com>
Eric Christopher [Mon, 4 Oct 2004 23:25:28 +0000 (23:25 +0000)]
2004-10-04  Eric Christopher  <echristo@redhat.com>

* config/tc-mips.c (md_apply_fix3): Remove erroneous assert.

19 years agold/
H.J. Lu [Mon, 4 Oct 2004 16:45:51 +0000 (16:45 +0000)]
ld/

2004-10-04  H.J. Lu  <hongjiu.lu@intel.com>

* NEWS: Mention SORT_BY_NAME, SORT_BY_ALIGNMENT and
--sort-section name|alignment.

* ld.texinfo: Document SORT_BY_NAME, SORT_BY_ALIGNMENT and
--sort-section name|alignment.

* ld.h (sort_type): New enum.
(wildcard_spec): Change the type of `sorted' to sort_type.

* ldgram.y (SORT): Removed.
(SORT_BY_NAME): Added.
(SORT_BY_ALIGNMENT): Added.
(wildcard_spec): Updated `sorted'. Handle SORT_BY_NAME and
SORT_BY_ALIGNMENT.
(input_section_spec_no_keep): Updated `sorted'.
(statement): Replace SORT with SORT_BY_NAME.

* ldlang.c (compare_section): New function to compare 2
sections with different sorting schemes.
(wild_sort): Updated. Use compare_section.
(update_wild_statements): New function.
(lang_process): Call update_wild_statements before
map_input_to_output_sections.

* ldlex.l (SORT_BY_NAME): New.
(SORT_BY_ALIGNMENT): New.
(SORT): Return SORT_BY_NAME.

* ldmain.c (sort_section): New. Defined.
(main): Initialize it to none.

* lexsup.c (option_values): Add OPTION_SORT_SECTION.
(ld_options): Add an entry for OPTION_SORT_SECTION.
(parse_args): Handle OPTION_SORT_SECTION.

* mri.c (mri_draw_tree): Updated `sorted'.

ld/testsuite/

2004-10-04  H.J. Lu  <hongjiu.lu@intel.com>

* ld-scripts/sort.exp: New file for section sorting tests.
* ld-scripts/sort_b_a.d: Likewise
* ld-scripts/sort_b_a.s: Likewise
* ld-scripts/sort_b_a.t: Likewise
* ld-scripts/sort_b_a_a-1.d: Likewise
* ld-scripts/sort_b_a_a-2.d: Likewise
* ld-scripts/sort_b_a_a-3.d: Likewise
* ld-scripts/sort_b_a_a.t: Likewise
* ld-scripts/sort_b_a_n-1.d: Likewise
* ld-scripts/sort_b_a_n-2.d: Likewise
* ld-scripts/sort_b_a_n-3.d: Likewise
* ld-scripts/sort_b_a_n.t: Likewise
* ld-scripts/sort_b_n.d: Likewise
* ld-scripts/sort_b_n.s: Likewise
* ld-scripts/sort_b_n.t: Likewise
* ld-scripts/sort_b_n_a-1.d: Likewise
* ld-scripts/sort_b_n_a-2.d: Likewise
* ld-scripts/sort_b_n_a-3.d: Likewise
* ld-scripts/sort_b_n_a.t: Likewise
* ld-scripts/sort_b_n_n-1.d: Likewise
* ld-scripts/sort_b_n_n-2.d: Likewise
* ld-scripts/sort_b_n_n-3.d: Likewise
* ld-scripts/sort_b_n_n.t: Likewise
* ld-scripts/sort_n_a-a.s: Likewise
* ld-scripts/sort_n_a-b.s: Likewise
* ld-scripts/sort_no-1.d: Likewise
* ld-scripts/sort_no-2.d: Likewise
* ld-scripts/sort_no.t: Likewise

19 years ago * ldgram.y (DATA_SEGMENT_RELRO_END): Add one argument.
Jakub Jelinek [Mon, 4 Oct 2004 13:41:15 +0000 (13:41 +0000)]
* ldgram.y (DATA_SEGMENT_RELRO_END): Add one argument.
* scripttempl/elf.sc (DATA_SEGMENT_RELRO_END): Add 0 as first
argument.
(DATA_SEGMENT_RELRO_GOTPLT_END): Pass $SEPARATE_GOTPLT as first
and . as second argument.
(GOTPLT): Move $DATA_SEGMENT_RELRO_GOTPLT_END before the section.
* ldexp.c (fold_unary): Remove DATA_SEGMENT_RELRO_END handling here.
(fold_binary): Add it here.  Insert padding to make relro_end
COMMONPAGESIZE bytes aligned.  For DATA_SEGMENT_ALIGN in
exp_dataseg_relro_adjust phase just use previously computed
exp_data_seg.base.
* ldlang.c (lang_size_sections): Set exp_data_seg.base for
relro_adjust here.  Call lang_size_sections_1 once more if there
was too big padding at DATA_SEGMENT_RELRO_END.
* ld.texinfo (DATA_SEGMENT_RELRO_END): Add documentation.

19 years agodaily update
Alan Modra [Mon, 4 Oct 2004 00:00:05 +0000 (00:00 +0000)]
daily update

19 years agodaily update
Alan Modra [Sun, 3 Oct 2004 00:00:06 +0000 (00:00 +0000)]
daily update

19 years ago2004-10-01 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Sat, 2 Oct 2004 00:18:31 +0000 (00:18 +0000)]
2004-10-01  H.J. Lu  <hongjiu.lu@intel.com>

* config/tc-ppc.c (md_apply_fix3): Call S_SET_THREAD_LOCAL for
TLS relocations.
* config/tc-s390.c (md_apply_fix3): Likewise.
* config/tc-sparc.c (md_apply_fix3): Likewise.

19 years agodaily update
Alan Modra [Sat, 2 Oct 2004 00:00:06 +0000 (00:00 +0000)]
daily update

19 years ago2004-10-01 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Fri, 1 Oct 2004 20:11:40 +0000 (20:11 +0000)]
2004-10-01  H.J. Lu  <hongjiu.lu@intel.com>

* ld-powerpc/tls.s: Don't set tls type for undefined syms.
* ld-powerpc/tls32.s: Likewise.
* ld-powerpc/tlstoc.s: Likewise.
* ld-s390/tlsbin.s: Likewise.
* ld-s390/tlsbin_64.s: Likewise.
* ld-s390/tlsbinpic.s: Likewise.
* ld-s390/tlsbinpic_64.s: Likewise.
* ld-s390/tlspic1.s: Likewise.
* ld-s390/tlspic1_64.s: Likewise.
* ld-sparc/tlssunbin32.s: Likewise.
* ld-sparc/tlssunbinpic32.s: Likewise.
* ld-sparc/tlssunnopic32.s: Likewise.
* ld-sparc/tlssunpic32.s: Likewise.

19 years agoThe patch below adds binutils support for the SHT_ARM_EXIDX, as defined by
Nick Clifton [Fri, 1 Oct 2004 12:59:42 +0000 (12:59 +0000)]
The patch below adds binutils support for the SHT_ARM_EXIDX, as defined by
 the ARM EABI.

19 years agoFixes for the encoding and decoding of the PDP11's SOB instruction
Nick Clifton [Fri, 1 Oct 2004 11:19:38 +0000 (11:19 +0000)]
Fixes for the encoding and decoding of the PDP11's SOB instruction

19 years ago * ld-s390/tlsbin.s: Set tls type for undefined syms.
Alan Modra [Fri, 1 Oct 2004 11:12:16 +0000 (11:12 +0000)]
* ld-s390/tlsbin.s: Set tls type for undefined syms.
* ld-s390/tlsbin_64.s: Likewise.
* ld-s390/tlsbinpic.s: Likewise.
* ld-s390/tlsbinpic_64.s: Likewise.
* ld-s390/tlspic1.s: Likewise.
* ld-s390/tlspic1_64.s: Likewise.
* ld-sparc/tlssunbin32.s: Likewise.
* ld-sparc/tlssunbinpic32.s: Likewise.
* ld-sparc/tlssunnopic32.s: Likewise.
* ld-sparc/tlssunpic32.s: Likewise.

19 years ago * ld-sparc/tlssunbin32.sd: Adjust for changed .dynamic location.
Alan Modra [Fri, 1 Oct 2004 11:11:28 +0000 (11:11 +0000)]
* ld-sparc/tlssunbin32.sd: Adjust for changed .dynamic location.

19 years agoPR 371
Nick Clifton [Fri, 1 Oct 2004 10:49:08 +0000 (10:49 +0000)]
PR 371
* ld-undefined/undefined.exp: Remove redundant XPASS specifications.

19 years ago(TARGET_FORMAT): Remove LynxOS COFF definition.
Nick Clifton [Fri, 1 Oct 2004 08:38:35 +0000 (08:38 +0000)]
(TARGET_FORMAT): Remove LynxOS COFF definition.

19 years agofix spelling typo in ChangeLog entry
Nick Clifton [Fri, 1 Oct 2004 08:30:37 +0000 (08:30 +0000)]
fix spelling typo in ChangeLog entry

19 years ago * config/tc-arc.c (tc_gen_reloc): Don't assume fixP->fx_addsy is an
Alan Modra [Fri, 1 Oct 2004 08:08:54 +0000 (08:08 +0000)]
* config/tc-arc.c (tc_gen_reloc): Don't assume fixP->fx_addsy is an
asymbol *, instead use symbol_get_bfdsym.

19 years ago * ld-powerpc/tls.s (gd, ld): Set tls type for undefined syms.
Alan Modra [Fri, 1 Oct 2004 02:19:04 +0000 (02:19 +0000)]
* ld-powerpc/tls.s (gd, ld): Set tls type for undefined syms.
* ld-powerpc/tls32.s (gd, ld): Likewise.
* ld-powerpc/tlstoc.s (gd, ld): Likewise.
* ld-powerpc/tlsso.r: Update.
* ld-powerpc/tlsso32.r: Update.
* ld-powerpc/tlstocso.r: Update.

19 years ago * elf-bfd.h (struct eh_cie_fde): Add need_relative and
Alan Modra [Fri, 1 Oct 2004 00:51:37 +0000 (00:51 +0000)]
* elf-bfd.h (struct eh_cie_fde): Add need_relative and
need_lsda_relative.
* elf-eh-frame.c (_bfd_elf_eh_frame_section_offset): Set
need_relative or need_lsda_relative if we are processing an
offset for a reloc on a FDE initial loc or LSDA field
respectively.
(_bfd_elf_write_section_eh_frame): Test need_relative and
need_lsda_relative in place of corresponding make_* field
when deciding to use pc-relative encodings.

19 years agodaily update
Alan Modra [Fri, 1 Oct 2004 00:00:04 +0000 (00:00 +0000)]
daily update

19 years agoemultempl/pe.em (gld_${EMULATION_NAME}_set_symbols): Generate correct base
Nick Clifton [Thu, 30 Sep 2004 17:19:19 +0000 (17:19 +0000)]
emultempl/pe.em (gld_${EMULATION_NAME}_set_symbols): Generate correct base
  address for position independant executables.
pe-dll.c (pe_dll_fill_sections): Don't mark position independant executables
  as DLLs.

19 years ago(select_control_regs): Add mcf5249.
Nick Clifton [Thu, 30 Sep 2004 17:08:50 +0000 (17:08 +0000)]
(select_control_regs): Add mcf5249.

19 years agobfd/
Paul Brook [Thu, 30 Sep 2004 17:03:53 +0000 (17:03 +0000)]
bfd/
* elf32-arm.h (bfd_elf32_arm_set_target_relocs): Handle "abs"
target2 relocation type.
ld/
* ld.texinfo: Document --target2=abs.
* emulparms/armsymbian.sh (TARGET2_TYPE): Set.
ld/testsuite/
* ld-arm/arm-elf.exp: Add test for --target2=abs.
* ld-arm/arm-target2-abs.d: New file.

19 years ago2004-09-30 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Thu, 30 Sep 2004 16:43:41 +0000 (16:43 +0000)]
2004-09-30  H.J. Lu  <hongjiu.lu@intel.com>

PR 414
* elflink.c (_bfd_elf_merge_symbol): Check TLS symbol.

19 years agoEnable target-libgloss for crx-*-*.
Nick Clifton [Thu, 30 Sep 2004 16:34:36 +0000 (16:34 +0000)]
Enable target-libgloss for crx-*-*.

19 years agoApply Paul Brook's patch to implement armv6k instructions
Nick Clifton [Thu, 30 Sep 2004 16:21:50 +0000 (16:21 +0000)]
Apply Paul Brook's patch to implement armv6k instructions

19 years agoUse ISO C90 semantics
Nick Clifton [Thu, 30 Sep 2004 15:40:06 +0000 (15:40 +0000)]
Use ISO C90 semantics

19 years ago(mav_reg_required_here): Allow REG_TYPE_CN as alternative when REG_TYPE_MVF,
Nick Clifton [Thu, 30 Sep 2004 13:18:53 +0000 (13:18 +0000)]
(mav_reg_required_here): Allow REG_TYPE_CN as alternative when REG_TYPE_MVF,
REG_TYPE_MVD, REG_TYPE_MVFX or REG_TYPE_MVDX is expected.

19 years agodaily update
Alan Modra [Thu, 30 Sep 2004 00:00:06 +0000 (00:00 +0000)]
daily update

19 years agoxstormy16.sc: Only perform the assignments to the ROM region when not performing
Nick Clifton [Wed, 29 Sep 2004 16:46:00 +0000 (16:46 +0000)]
xstormy16.sc: Only perform the assignments to the ROM region when not performing
 a relocatable link.  The ROM region does not start at address 0, but the
 sections will.
Makefile.am: Fix linker script dependency for the generation of eelf32xstormy16.c.

19 years agogas/testsuite/
Alan Modra [Wed, 29 Sep 2004 13:36:22 +0000 (13:36 +0000)]
gas/testsuite/
* gas/i386/secrel.s: Pad .rdata out to 16 byte boundary.
* gas/i386/secrel.d: Adjust to suit.

ld/testsuite/
* ld-pe/secrel1.s: Pad .rdata out to 16 byte boundary.
* ld-pe/secrel.d: Adjust to suit.

19 years ago * configure.in (--without-headers): Add missing double quotes.
Richard Sandiford [Wed, 29 Sep 2004 11:43:26 +0000 (11:43 +0000)]
* configure.in (--without-headers): Add missing double quotes.
* configure: Regenerate.

19 years ago * doc/c-i386.texi (i386-Mnemonics): Fix typo.
Alan Modra [Wed, 29 Sep 2004 00:31:14 +0000 (00:31 +0000)]
* doc/c-i386.texi (i386-Mnemonics): Fix typo.

19 years agodaily update
Alan Modra [Wed, 29 Sep 2004 00:00:05 +0000 (00:00 +0000)]
daily update

19 years ago* emulparams/arm_epoc_pe.sh, emulparams/armpe.sh, emulparams/i386pe.sh,
Christopher Faylor [Tue, 28 Sep 2004 19:14:29 +0000 (19:14 +0000)]
* emulparams/arm_epoc_pe.sh, emulparams/armpe.sh, emulparams/i386pe.sh,
emulparams/i386pe_posix.sh, emulparams/mcorepe.sh, emulparams/mipspe.sh,
emulparams/ppcpe.sh, scripttempl/pe.sc: Define TARGET_PAGE_SIZE.
* scripttempl/pe.sc: Make the virtual address and file offset synced if the
alignment is lower than the target page size.

19 years agoReoder functions to eliminate most of the static function prototypes.
Nick Clifton [Tue, 28 Sep 2004 16:26:39 +0000 (16:26 +0000)]
Reoder functions to eliminate most of the static function prototypes.

19 years ago* emultempl/pe.em (gld_${EMULATION_NAME}_unrecognized_file): Allow
Christopher Faylor [Tue, 28 Sep 2004 15:00:45 +0000 (15:00 +0000)]
* emultempl/pe.em (gld_${EMULATION_NAME}_unrecognized_file): Allow
def_file_parse to handle pe_def_file if NULL and prevent crash with invalid
.def files.

19 years agodaily update
Alan Modra [Tue, 28 Sep 2004 00:06:36 +0000 (00:06 +0000)]
daily update

19 years agodaily update
Alan Modra [Mon, 27 Sep 2004 00:00:05 +0000 (00:00 +0000)]
daily update

19 years ago * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Enable
Alan Modra [Sun, 26 Sep 2004 23:42:30 +0000 (23:42 +0000)]
* emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Enable
--emit-stub-syms automatically when --emit-relocs.

19 years agodaily update
Alan Modra [Sun, 26 Sep 2004 00:00:06 +0000 (00:00 +0000)]
daily update

19 years agoMerge from gcc:
DJ Delorie [Sat, 25 Sep 2004 00:26:33 +0000 (00:26 +0000)]
Merge from gcc:
2004-09-24  Zack Weinberg  <zack@codesourcery.com>
* warnings.m4: New file.

19 years agodaily update
Alan Modra [Sat, 25 Sep 2004 00:00:08 +0000 (00:00 +0000)]
daily update

19 years agoMerge from gcc
DJ Delorie [Fri, 24 Sep 2004 14:57:15 +0000 (14:57 +0000)]
Merge from gcc

19 years ago * ylwrap: Revert to previous version.
DJ Delorie [Fri, 24 Sep 2004 13:21:46 +0000 (13:21 +0000)]
 * ylwrap: Revert to previous version.

19 years ago * scripttempl/elf.sc: Keep .preinit_array, .init_array and
Paul Brook [Fri, 24 Sep 2004 11:43:34 +0000 (11:43 +0000)]
* scripttempl/elf.sc: Keep .preinit_array, .init_array and
.fini_array sections.

19 years agobfd/
Alan Modra [Fri, 24 Sep 2004 07:07:22 +0000 (07:07 +0000)]
bfd/
* dwarf2.c (_bfd_dwarf2_find_nearest_line): Add output section
vma and output offset to address.
* simple.c (simple_save_output_info): Only set output section
and offset for debug sections, or those not already set up by
the linker.
(bfd_simple_get_relocated_section_contents): Update comment.
ld/testsuite/
* ld-elfvsb/elfvsb.exp: Remove file name from "undefined ref" string.

19 years ago * elf.c (IS_LOADED): Delete.
Alan Modra [Fri, 24 Sep 2004 03:13:01 +0000 (03:13 +0000)]
* elf.c (IS_LOADED): Delete.
(assign_file_positions_for_segments): Just test SEC_LOAD instead.
Restore SEC_HAS_CONTENTS test to the one place it was used prior
to 2004-09-22.

19 years ago2004-09-23 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Fri, 24 Sep 2004 00:40:22 +0000 (00:40 +0000)]
2004-09-23  H.J. Lu  <hongjiu.lu@intel.com>

* Makefile.tpl (REALLY_SET_LIB_PATH): Add @SET_GCC_LIB_PATH@.
(HOST_EXPORTS]): Add @SET_GCC_LIB_PATH@. Set and export
SET_GCC_LIB_PATH_CMD.
(BASE_TARGET_EXPORTS): Likewise.
* Makefile.in: Regenerated.

* configure.in (SET_GCC_LIB_PATH): Set and substitute.
* configure: Regenerated.

config/

2004-09-23  H.J. Lu  <hongjiu.lu@intel.com>

* gcc-lib-path.m4: New file.

19 years agodaily update
Alan Modra [Fri, 24 Sep 2004 00:00:06 +0000 (00:00 +0000)]
daily update

19 years agoMerge from gcc
DJ Delorie [Thu, 23 Sep 2004 20:15:24 +0000 (20:15 +0000)]
Merge from gcc
2004-09-23  Kelley Cook  <kcook@gcc.gnu.org>
* config.guess: New upstream version
* compile, depcomp, install-sh, ylwrap: Likewise.

19 years agoMerge from gcc:
DJ Delorie [Thu, 23 Sep 2004 19:54:49 +0000 (19:54 +0000)]
Merge from gcc:
2004-09-23  Kelley Cook  <kcook@gcc.gnu.org>
* config.guess: New upstream version
* compile, depcomp, install-sh, ylwrap: Likewise.

2004-09-19  Roger Sayle  <roger@eyesopen.com>
* config/mh-x86omitfp: New host makefile fragment.  Add
-fomit-frame-pointer to the default BOOT_CFLAGS.
* configure.in: Use it to speed up bootstrap on some IA-32 hosts.
* configure: Regenerate.

2004-09-15  Andrew Pinski  <pinskia@physics.uc.edu>
PR target/11572
* configure.in (*-*-darwin*): Renable libobjc.
* configure: Regenerate.

19 years agoMerge from gcc
DJ Delorie [Thu, 23 Sep 2004 19:43:47 +0000 (19:43 +0000)]
Merge from gcc
2004-09-22  Kelley Cook  <kcook@gcc.gnu.org>
* gettext-sister.m4: Renamed from gettext.m4
* codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4, po.m4,
inttypes.m4, inttypes-pri.m4, inttypes_h.m4, lcmessage.m4, lib-ld.m4,
lib-link.m4, lib-prefix.m4, nls.m4, progtest.m4, stdint_h.m4,
uintmax_t.m4, ulonglong.m4: Import from gettext-0.12.1 sources.

19 years ago PR gas/396
Alan Modra [Thu, 23 Sep 2004 00:51:33 +0000 (00:51 +0000)]
PR gas/396
* elf32-sparc.c (elf32_sparc_final_write_processing): Handle
bfd_mach_sparc_sparclet and bfd_mach_sparc_sparclite.  Remove
redundant assignment of EM_SPARC.

19 years agodaily update
Alan Modra [Thu, 23 Sep 2004 00:00:06 +0000 (00:00 +0000)]
daily update

19 years ago* pei-i386.c (COFF_SECTION_ALIGNMENT_ENTRIES): Enable 16 byte
Brian Ford [Wed, 22 Sep 2004 22:40:21 +0000 (22:40 +0000)]
* pei-i386.c (COFF_SECTION_ALIGNMENT_ENTRIES): Enable 16 byte
alignment for .rdata sections so sse[2] code works with gcc >= 3.3.3
constants.
* pe-i386.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.

19 years agobinutils/
Alan Modra [Wed, 22 Sep 2004 07:24:14 +0000 (07:24 +0000)]
binutils/
* readelf.c (process_program_headers): Don't include .tbss in non-TLS
segments.

ld/testsuite/
* ld-i386/tlsbin.rd: Update for changed segment map.
* ld-i386/tlsnopic.rd: Likewise.
* ld-i386/tlspic.rd: Likewise.
* ld-powerpc/tlsexe.r: Likewise.
* ld-powerpc/tlsexe32.r: Likewise.
* ld-powerpc/tlsexetoc.r: Likewise.
* ld-powerpc/tlsso.r: Likewise.
* ld-powerpc/tlsso32.r: Likewise.
* ld-powerpc/tlstocso.r: Likewise.
* ld-s390/tlsbin.rd: Likewise.
* ld-s390/tlsbin_64.rd: Likewise.
* ld-s390/tlspic.rd: Likewise.
* ld-s390/tlspic_64.rd: Likewise.
* ld-sh/tlsbin-2.d: Likewise.
* ld-sh/tlspic-2.d: Likewise.
* ld-x86-64/tlsbin.rd: Likewise.
* ld-x86-64/tlspic.rd: Likewise.

19 years ago * elf32-ppc.c (ppc_elf_modify_segment_map): Delete.
Alan Modra [Wed, 22 Sep 2004 06:57:35 +0000 (06:57 +0000)]
* elf32-ppc.c (ppc_elf_modify_segment_map): Delete.
(elf_backend_modify_segment_map): Don't define.

19 years agobfd/
Alan Modra [Wed, 22 Sep 2004 06:45:39 +0000 (06:45 +0000)]
bfd/
* elf.c (IS_LOADED): Define.
(assign_file_positions_for_segments): Don't round up file offset of
PT_LOAD segments containing no SEC_LOAD sections, instead round down.
Delete code handling link script adjustment of lma.  Do the adjust
in later code handling similar ajustments.  Remove dead code error
check.  Warn if section lma would require a negative offset
adjustment.  Tweak lma adjustment to use p_filesz rather than p_memsz.
Use p_vaddr + p_memsz inside section loop in place of voff.  Don't
update voff in section loop.  Change voff in segment loop to be an
adjustment on top of "off".  Set sec->filepos and update "off" later.
Test for loadable sections consistently using IS_LOADED.  Similarly,
test for alloc-only sections other than .tbss consistently.
Don't bother checking SEC_ALLOC in PT_LOAD segments.  Remove FIXME.
Tidy PT_NOTE handling.  Use %B and %A in error messages.
(assign_file_positions_except_relocs): Use %B in error message.

ld/testsuite/
* ld-scripts/overlay-size.d: Don't check .mbss lma.
* ld-sh/sh64/mix1.xd: Update for changed .bss file offset.
* ld-sh/sh64/shdl32.xd: Likewise.
* ld-sh/sh64/shdl64.xd: Likewise.

19 years agodaily update
Alan Modra [Wed, 22 Sep 2004 00:00:07 +0000 (00:00 +0000)]
daily update

19 years agoFix error in unwind info for psp relative offsets.
Jim Wilson [Tue, 21 Sep 2004 21:39:27 +0000 (21:39 +0000)]
Fix error in unwind info for psp relative offsets.
* config/tc-ia64.c (ENCODED_PSP_OFFSET): New.
(output_rp_psprel, output_pfs_psprel, output_preds_psprel,
output_spill_base, output_unat_psprel, output_lc_psprel,
output_fpsr_psprel, output_priunat_psprel, output_bsp_psprel,
output_bsprestore_psprel, output_rnat_psprel, output_spill_psprel,
output_spill_psprel_p): Use it.

19 years agodaily update
Alan Modra [Tue, 21 Sep 2004 00:00:05 +0000 (00:00 +0000)]
daily update

19 years agoconfig/tc-crx.c (handle_LoadStor): New function. Handle load/stor unique instructions...
Tomer Levi [Mon, 20 Sep 2004 14:30:21 +0000 (14:30 +0000)]
config/tc-crx.c (handle_LoadStor): New function. Handle load/stor unique instructions before parsing.

19 years agoHandle load/stor unique instructions before parsing
Tomer Levi [Mon, 20 Sep 2004 14:25:36 +0000 (14:25 +0000)]
Handle load/stor unique instructions before parsing

19 years agodaily update
Alan Modra [Mon, 20 Sep 2004 00:00:06 +0000 (00:00 +0000)]
daily update

19 years ago * gas/elf/elf.exp: Recognise additional arm elf targets.
Paul Brook [Sun, 19 Sep 2004 22:51:04 +0000 (22:51 +0000)]
* gas/elf/elf.exp: Recognise additional arm elf targets.

19 years ago2004-09-19 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Sun, 19 Sep 2004 22:32:12 +0000 (22:32 +0000)]
2004-09-19  H.J. Lu  <hongjiu.lu@intel.com>

* Makefile.am (AUTOMAKE_OPTIONS): Require 1.9.
(bfd.info): Rename the target to ...
($(srcdir)/bfd.info): This.
* Makefile.in: Regenerated.

19 years ago * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: Adjust data segment
Andreas Schwab [Sun, 19 Sep 2004 17:09:23 +0000 (17:09 +0000)]
* ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: Adjust data segment
base so that relro end is suitably aligned.

19 years agodaily update
Alan Modra [Sun, 19 Sep 2004 00:00:05 +0000 (00:00 +0000)]
daily update

19 years agodaily update
Alan Modra [Sat, 18 Sep 2004 00:00:08 +0000 (00:00 +0000)]
daily update

19 years agobfd/
H.J. Lu [Fri, 17 Sep 2004 17:04:34 +0000 (17:04 +0000)]
bfd/

2004-09-17  H.J. Lu  <hongjiu.lu@intel.com>

* Makefile.am (AUTOMAKE_OPTIONS): Require 1.9.
(CONFIG_STATUS_DEPENDENCIES): New.
(Makefile): Removed.
(config.status): Likewise.
* Makefile.in: Regenerated.

opcodes/

2004-09-17  H.J. Lu  <hongjiu.lu@intel.com>

* Makefile.am (AUTOMAKE_OPTIONS): Require 1.9.
(CONFIG_STATUS_DEPENDENCIES): New.
(Makefile): Removed.
(config.status): Likewise.
* Makefile.in: Regenerated.

19 years agobfd/
Paul Brook [Fri, 17 Sep 2004 12:35:00 +0000 (12:35 +0000)]
bfd/
* bfd-in.h (bfd_elf32_arm_set_target_relocs): Add prototype.
(bfd_elf32_arm_process_before_allocation): Update prototype.
* bfd-in2.h: Regenerate.
* bfd/elf32-arm.h (elf32_arm_link_hash_table): Add target2_reloc.
(elf32_arm_link_hash_table_create): Set it.
(bfd_elf32_arm_process_before_allocation): Remove target1_is_rel.
(bfd_elf32_arm_set_target_relocs): New function.
(arm_real_reloc_type): New function.
(elf32_arm_final_link_relocate): Use it.  Handle R_ARM_PREL31 and
R_ARM_GOT_PREL.  Remove R_ARM_TARGET1.
(elf32_arm_gc_sweep_hook): Ditto.
(elf32_arm_check_relocs): Ditto.
(elf32_arm_relocate_section): Handle R_ARM_GOT_PREL.
* elfarm-nabi.c (elf32_arm_howto_table): Add R_ARM_PREL31 and
R_ARM_GOT_TARGET2.
(elf32_arm_got_prel): New variable.
(elf32_arm_howto_from_type): New function.
(elf32_arm_info_to_howto): Use it.
(elf32_arm_reloc_map): Add BFD_RELOC_ARM_PREL31 and
BFD_RELOC_ARM_TARGET2.
* libbfd.h: Regenerate.
* reloc.c: Add BFD_RELOC_ARM_TARGET2 and BFD_RELOC_ARM_PREL31.
gas/
* config/tc-arm.c (s_arm_rel31): New funciton.
(md_pseudo_table): Add .rel31.
(md_apply_fix3): Handle BFD_RELOC_ARM_TARGET2,
BFD_RELOC_32_PCREL and BFD_RELOC_ARM_PREL31.
(tc_gen_reloc): Handle BFD_RELOC_ARM_PREL31 and BFD_RELOC_ARM_TARGET2.
(arm_fix_adjustable): Return 0 for BFD_RELOC_ARM_TARGET2.
(arm_parse_reloc): Add (target2).
gas/testsuite/
* gas/arm/pic.s: Add (target2).
* gas/arm/pic.d: Ditto.
include/
* elf/arm.h: Remove R_ARM_STKCHK and R_ARM_THM_STKCHK.
Add R_ARM_TARGET2, R_ARM_PREL31, R_ARM_GOT_ABS, R_ARM_GOT_PREL,
R_ARM_GOT_BREL12, R_ARM_GOTOFF12 and R_ARM_GOTRELAX.
ld/
* ld.texinfo: Rename arm-specific section.  Document --target*
* emulparams/armelf_fbsd.sh: Set TARGET2_TYPE.
* emulparams/armelf_linux.sh: Ditto.
* emulparams/armelf_nbsd.sh: Ditto.
* emultempl/armelf.em: Set default for TARGET2_TYPE.
(target2_type): New variable.
(arm_elf_before_allocation): Don't pass target1_type.
(arm_elf_create_output_section_statements): New function.
(PARSE_AND_LIST_PROLOGUE): Add OPTION_TARGET2.
(PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --target=.
(PARSE_AND_LIST_ARGS_CASES): Handle OPTION_TARGET2.
(LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Set.
* emultempl/armelf_oabi.em (_before_allocation): Remove extra
argument to bfd_elf32_arm_process_before_allocation.
ld/testsuite/
* ld-arm/arm-target1-{abs,rel}.d}: New files.
* ld-arm/arm-target1.s: New file.
* ld-arm/arm-target2-{,got-}rel.d: New files.
* ld-arm/arm-target2.s: New file.
* ld-arm/arm-rel31.d: New files.
* ld-arm/arm-rel31.s: New files.
* ld-arm/arm.ld: New file.
* ld-arm/arm-elf.exp: Add new tests.

19 years agoinclude/
Alan Modra [Fri, 17 Sep 2004 07:14:33 +0000 (07:14 +0000)]
include/
* bfdlink.h (struct bfd_link_hash_entry): Move und_next into elements
of union.
bfd/
* ecoff.c: Update u.undef.next refs.
* elf64-ppc.c: Likewise.
* elflink.c: Likewise.
* linker.c: Likewise.
* xcofflink.c: Likewise.
ld/
* ldexp.c (fold_name): Update u.undef.next refs.
* emultempl/pe.em: Likewise.
* emultempl/sunos.em: Likewise.

bfd/
* elf-bfd.h (struct elf_link_hash_entry): Rearrange.  Add FIXME to
dynamic_def.  Combine weakdef and elf_hash_value.  Move vtable
fields to indirect struct.
* elf-m10300.c: Update u.weakdef refs.
* elf32-arm.h: Likewise.
* elf32-cris.c: Likewise.
* elf32-frv.c: Likewise.
* elf32-hppa.c: Likewise.
* elf32-i370.c: Likewise.
* elf32-i386.c: Likewise.
* elf32-m32r.c: Likewise.
* elf32-m68k.c: Likewise.
* elf32-ppc.c: Likewise.
* elf32-s390.c: Likewise.
* elf32-sh.c: Likewise.
* elf32-sparc.c: Likewise.
* elf32-vax.c: Likewise.
* elf32-xtensa.c: Likewise.
* elf64-alpha.c: Likewise.
* elf64-hppa.c: Likewise.
* elf64-ppc.c: Likewise.
* elf64-s390.c: Likewise.
* elf64-sh64.c: Likewise.
* elf64-sparc.c: Likewise.
* elf64-x86-64.c: Likewise.
* elfxx-ia64.c: Likewise.
* elfxx-mips.c: Likewise.
* elflink.c: Likewise.  Also u.elf_hash_value.
(elf_gc_propagate_vtable_entries_used): Update for h->vtable
indirection.
(elf_gc_smash_unused_vtentry_relocs): Likewise.
(bfd_elf_gc_record_vtinherit): Alloc vtable.
(bfd_elf_gc_record_vtentry): Likewise.
* elf.c (_bfd_elf_link_hash_newfunc): Use memset.

19 years ago * aclocal.m4: Regenerate.
Alan Modra [Fri, 17 Sep 2004 06:24:38 +0000 (06:24 +0000)]
* aclocal.m4: Regenerate.

19 years ago * Makefile.am: Run "make dep-am".
Alan Modra [Fri, 17 Sep 2004 06:23:17 +0000 (06:23 +0000)]
* Makefile.am: Run "make dep-am".
* Makefile.in: Regenerate.
* config.in: Regenerate.
* configure: Regenerate.
* doc/Makefile.in: Regenerate.
* po/binutils.pot: Regenerate.

19 years ago * Makefile.in: Regenerate.
Alan Modra [Fri, 17 Sep 2004 06:19:28 +0000 (06:19 +0000)]
* Makefile.in: Regenerate.
* aclocal.m4: Regenerate.
* configure: Regenerate.
* po/gprof.pot: Regenerate.

19 years ago * Makefile.am: Run "make dep-am".
Alan Modra [Fri, 17 Sep 2004 06:17:47 +0000 (06:17 +0000)]
* Makefile.am: Run "make dep-am".
* Makefile.in: Regenerate.
* aclocal.m4: Regenerate.
* configure: Regenerate.
* doc/Makefile.in: Regenerate.
* po/POTFILES.in: Regenerate.
* po/gas.pot: Regenerate.

19 years ago * Makefile.am: Run "make dep-am".
Alan Modra [Fri, 17 Sep 2004 06:15:39 +0000 (06:15 +0000)]
* Makefile.am: Run "make dep-am".
* Makefile.in: Regenerate.
* config.in: Regenerate.
* configure: Regenerate.
* aclocal.m4: Regenerate.
* po/ld.pot: Regenerate.

19 years ago * Makefile.am: Run "make dep-am".
Alan Modra [Fri, 17 Sep 2004 06:13:39 +0000 (06:13 +0000)]
* Makefile.am: Run "make dep-am".
* Makefile.in: Regenerate.
* aclocal.m4: Regenerate.
* configure: Regenerate.
* po/POTFILES.in: Regenerate.
* po/opcodes.pot: Regenerate.

19 years ago * Makefile.in: Regenerate.
Alan Modra [Fri, 17 Sep 2004 06:12:02 +0000 (06:12 +0000)]
* Makefile.in: Regenerate.

19 years ago * Makefile.am: Run "make dep-am".
Alan Modra [Fri, 17 Sep 2004 06:08:06 +0000 (06:08 +0000)]
* Makefile.am: Run "make dep-am".
* Makefile.in: Regenerate.
* bfd-in2.h: Regenerate.
* po/SRC-POTFILES.in: Regenerate.
* po/bfd.pot: Regenerate.

19 years agodaily update
Alan Modra [Fri, 17 Sep 2004 00:00:05 +0000 (00:00 +0000)]
daily update

19 years agoAdd KEEP for certain section's *personality*
Tomer Levi [Thu, 16 Sep 2004 16:27:00 +0000 (16:27 +0000)]
Add KEEP for certain section's *personality*

19 years ago * elf-bfd.h (struct elf_link_hash_entry): Replace elf_link_hash_flags
Alan Modra [Thu, 16 Sep 2004 14:52:12 +0000 (14:52 +0000)]
* elf-bfd.h (struct elf_link_hash_entry): Replace elf_link_hash_flags
with bitfields.  Make "type" and "other" bitfields too.
(ELF_LINK_HASH_REF_REGULAR, ELF_LINK_HASH_DEF_REGULAR,
ELF_LINK_HASH_REF_DYNAMIC, ELF_LINK_HASH_DEF_DYNAMIC,
ELF_LINK_HASH_REF_REGULAR_NONWEAK, ELF_LINK_HASH_DYNAMIC_ADJUSTED,
ELF_LINK_HASH_NEEDS_COPY, ELF_LINK_HASH_NEEDS_PLT, ELF_LINK_NON_ELF,
ELF_LINK_HIDDEN, ELF_LINK_FORCED_LOCAL, ELF_LINK_HASH_MARK,
ELF_LINK_NON_GOT_REF, ELF_LINK_DYNAMIC_DEF, ELF_LINK_DYNAMIC_WEAK,
ELF_LINK_POINTER_EQUALITY_NEEDED): Delete.
(ELF_COMMON_DEF_P, WILL_CALL_FINISH_DYNAMIC_SYMBOL): Update.
* elf-hppa.h: Update all uses of elf_link_hash_flags.
* elf-m10300.c: Likewise.
* elf.c: Likewise.
* elf32-arm.h: Likewise.
* elf32-cris.c: Likewise.
* elf32-frv.c: Likewise.
* elf32-hppa.c: Likewise.
* elf32-i370.c: Likewise.
* elf32-i386.c: Likewise.
* elf32-m32r.c: Likewise.
* elf32-m68k.c: Likewise.
* elf32-ppc.c: Likewise.
* elf32-s390.c: Likewise.
* elf32-sh-symbian.c: Likewise.
* elf32-sh.c: Likewise.
* elf32-sh64.c: Likewise.
* elf32-sparc.c: Likewise.
* elf32-vax.c: Likewise.
* elf32-xtensa.c: Likewise.
* elf64-alpha.c: Likewise.
* elf64-hppa.c: Likewise.
* elf64-ppc.c: Likewise.
* elf64-s390.c: Likewise.
* elf64-sh64.c: Likewise.
* elf64-sparc.c: Likewise.
* elf64-x86-64.c: Likewise.
* elflink.c: Likewise.
* elfxx-ia64.c: Likewise.
* elfxx-mips.c: Likewise.
* configure.in (AM_INIT_AUTOMAKE): Set version to 2.15.92.
* configure: Regenerate.
* aclocal.m4: Regenerate.

19 years agobfd/
Alan Modra [Thu, 16 Sep 2004 12:49:56 +0000 (12:49 +0000)]
bfd/
* elf32-arm.h (elf32_arm_gc_sweep_hook): Add #ifndef OLD_ARM_ABI
around uses of R_ARM_TARGET1.
(elf32_arm_check_relocs): Likewise.
ld/
* emultempl/armelf_oabi.em (before_allocation): Add extra zero param
to bfd_elf32_arm_process_before_allocation call.

19 years agodaily update
Alan Modra [Thu, 16 Sep 2004 00:00:06 +0000 (00:00 +0000)]
daily update

19 years agodaily update
Alan Modra [Wed, 15 Sep 2004 00:00:05 +0000 (00:00 +0000)]
daily update

19 years ago * config/tc-mmix.c [!LLONG_MIN]: Correct #elsif to #elif.
Hans-Peter Nilsson [Tue, 14 Sep 2004 20:00:26 +0000 (20:00 +0000)]
* config/tc-mmix.c [!LLONG_MIN]: Correct #elsif to #elif.
[!LLONG_MAX]: Ditto.

19 years agomerge from gcc
DJ Delorie [Tue, 14 Sep 2004 01:16:22 +0000 (01:16 +0000)]
merge from gcc

19 years agodaily update
Alan Modra [Tue, 14 Sep 2004 00:00:05 +0000 (00:00 +0000)]
daily update

19 years agobfd/
Paul Brook [Mon, 13 Sep 2004 14:14:32 +0000 (14:14 +0000)]
bfd/
* bfd-in.h (bfd_elf32_arm_process_before_allocation): Update
prototype.
* bfd-in2.h: Regenerate.
* libbfd.h: Regenerate.
* elf32-arm.h (elf32_arm_link_hash_table): Add target1_is_rel.
(elf32_arm_link_hash_table_create): Set target1_is_rel.
(bfd_elf32_arm_process_before_allocation): Ditto.
(elf32_arm_final_link_relocate): Handle R_ARM_TARGET1.
(elf32_arm_gc_sweep_hook, elf32_arm_check_relocs): Ditto.
* elfarm-nabi.c (elf32_arm_howto_table): Rename RELABS to TARGET1.
* reloc.c: Ditto.
gas/
* config/tc-arm.c: Rename RELABS to TARGET1.
gas/testsuite/
* gas/arm/pic.d: Rename RELABS to TARGET1.
* gas/arm/pic.s: Ditto.
include/
* elf/arm.h: Rename RELABS to TARGET1.
ld/
* emulparams/armsymbian.sh: Set TARGET1_IS_REL.
* emultempl/armelf.em: Use TARGET1_IS_REL.  Add --target1-{rel,abs}.

19 years ago * hpux-core.c (thread_section_p): New function.
Joel Brobecker [Mon, 13 Sep 2004 03:51:22 +0000 (03:51 +0000)]
    * hpux-core.c (thread_section_p): New function.
        (hpux_core_core_file_p): Fix computation of offset in call
        to bfd_seek. Create a ".reg" section from an arbitrary
        ".reg/<id>" section if none was created after having read
        all sections.

19 years ago * messages.c (as_internal_value_out_of_range): Cast values passed
Alan Modra [Mon, 13 Sep 2004 00:49:16 +0000 (00:49 +0000)]
* messages.c (as_internal_value_out_of_range): Cast values passed
to as_bad_where or as_warn_where to proper type.

19 years agodaily update
Alan Modra [Mon, 13 Sep 2004 00:00:06 +0000 (00:00 +0000)]
daily update

19 years ago * readelf.c (decode_location_expression): Sign extend value for
Alan Modra [Sun, 12 Sep 2004 05:52:44 +0000 (05:52 +0000)]
* readelf.c (decode_location_expression): Sign extend value for
DW_OP_const1s, DW_OP_const2s, DW_OP_const4s, DW_OP_bra, DW_OP_skip.

19 years agodaily update
Alan Modra [Sun, 12 Sep 2004 00:00:05 +0000 (00:00 +0000)]
daily update

19 years agobfd/:
Andreas Schwab [Sat, 11 Sep 2004 20:22:51 +0000 (20:22 +0000)]
bfd/:
* acinclude.m4: Fix spelling of ACX_NONCANONICAL_*.
* aclocal.m4: Rebuild.
* configure: Rebuild.

opcodes/:
* configure: Rebuild.

19 years ago * gas/config/tc-avr.c: Add support for
Marek Michalkiewicz [Sat, 11 Sep 2004 13:15:05 +0000 (13:15 +0000)]
* gas/config/tc-avr.c: Add support for
atmega48, atmega88, atmega168, attiny13, attiny2313, at90can128.

* include/opcode/avr.h: Add support for
atmega48, atmega88, atmega168, attiny13, attiny2313, at90can128.

19 years agodaily update
Alan Modra [Sat, 11 Sep 2004 00:00:06 +0000 (00:00 +0000)]
daily update