OSDN Git Service

pf3gnuchains/pf3gnuchains4x.git
21 years ago* configure.in (TARGET_SYSTEM_ROOT): Set default to
Alexandre Oliva [Thu, 20 Feb 2003 23:38:49 +0000 (23:38 +0000)]
* configure.in (TARGET_SYSTEM_ROOT): Set default to
${exec_prefix}/${target_alias}/sys-root.  Match explicit
'${exec_prefix}' (in addition to the expansion thereof) as
relocatable.
* configure: Rebuilt.

21 years agodaily update
Alan Modra [Thu, 20 Feb 2003 23:00:05 +0000 (23:00 +0000)]
daily update

21 years ago * Makefile.in (CFILES): Add lrealpath.c.
Daniel Jacobowitz [Thu, 20 Feb 2003 22:14:18 +0000 (22:14 +0000)]
* Makefile.in (CFILES): Add lrealpath.c.
(REQUIRED_OFILES): Add lrealpath.o.
(lrealpath.o): Add rule.
* aclocal.m4 (libiberty_NEED_DECLARATION): Add.
* configure.in: Add realpath and canonicalize_file_name to
checkfuncs and AC_CHECK_FUNCS.  Use libiberty_NEED_DECLARATION
for canonicalize_file_name.
* lrealpath.c: New file.
* make-relative-prefix.c: Update documentation.
(make_relative_prefix): Simplify.  Use lbasename and lrealpath.
* config.in: Regenerated.
* configure: Regenerated.
* functions.texi: Regenerated.

21 years ago * libiberty.h (lrealpath): Add declaration.
Daniel Jacobowitz [Thu, 20 Feb 2003 22:13:09 +0000 (22:13 +0000)]
* libiberty.h (lrealpath): Add declaration.

21 years agomerge from gcc
DJ Delorie [Thu, 20 Feb 2003 21:05:37 +0000 (21:05 +0000)]
merge from gcc

21 years agoFix typo: intial -> initial.
Nick Clifton [Thu, 20 Feb 2003 18:59:32 +0000 (18:59 +0000)]
Fix typo: intial -> initial.

21 years agoIndex: include/gdb/ChangeLog
Andrew Cagney [Thu, 20 Feb 2003 14:37:58 +0000 (14:37 +0000)]
Index: include/gdb/ChangeLog
2003-02-20  Andrew Cagney  <ac131313@redhat.com>

* remote-sim.c (gdbsim_insert_breakpoint)
(gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
code.

Index: include/gdb/ChangeLog
2003-02-20  Andrew Cagney  <ac131313@redhat.com>

* remote-sim.h (SIM_RC): Delete unused SIM_RC_UNKNOWN_BREAKPOINT,
SIM_RC_INSUFFICIENT_RESOURCES and SIM_RC_DUPLICATE_BREAKPOINT.
(sim_set_breakpoint, sim_clear_breakpoint): Delete declarations.
(sim_clear_all_breakpoints, sim_enable_breakpoint): Ditto.
(sim_enable_all_breakpoints, sim_disable_breakpoint): Ditto.
(sim_disable_all_breakpoints): Ditto.

Index: sim/common/ChangeLog
2003-02-20  Andrew Cagney  <ac131313@redhat.com>

* Make-common.in (SIM_NEW_COMMON_OBJS): Remove sim-break.o
(sim-break_h): Delete macro.
(sim-break.o): Delete rule.
* sim-break.c: Delete file.
* sim-break.h: Delete file.
* sim-base.h [SIM_HAVE_BREAKPOINTS]: Don't include "sim-break.h".
(STATE_BREAKPOINTS): Delete macro.
(sim_state_base): Delete field breakpoints.
* sim-module.c (modules) [SIM_HAVE_BREAKPOINTS]: Don't add
sim_break_install to array.

21 years ago * elf32-ppc.c: Formatting.
Alan Modra [Thu, 20 Feb 2003 09:10:18 +0000 (09:10 +0000)]
* elf32-ppc.c: Formatting.
(allocate_dynrelocs): LD and GD relocs against the same sym need
separate GOT entries.
(ppc_elf_relocate_section): Correct GOT handling for multiple GOT
entries per symbol.

21 years ago* configure.in: Propagate ORIGINAL_LD_FOR_MULTILIBS to
Alexandre Oliva [Thu, 20 Feb 2003 09:08:42 +0000 (09:08 +0000)]
* configure.in: Propagate ORIGINAL_LD_FOR_MULTILIBS to
config.status.
* configure: Rebuilt.

21 years ago* rclex.l (handle_quotes): Fix minor formatting problems introduced in previous
Christopher Faylor [Thu, 20 Feb 2003 03:31:42 +0000 (03:31 +0000)]
* rclex.l (handle_quotes): Fix minor formatting problems introduced in previous
change.

21 years ago* rclex.l: Handle strings spanning more than one line.
Christopher Faylor [Thu, 20 Feb 2003 03:28:55 +0000 (03:28 +0000)]
* rclex.l: Handle strings spanning more than one line.

21 years ago* libtool.m4 (LD): Append -melf* option to LD on IRIX with GNU ld.
Alexandre Oliva [Thu, 20 Feb 2003 02:09:58 +0000 (02:09 +0000)]
* libtool.m4 (LD): Append -melf* option to LD on IRIX with GNU ld.
* ltconfig: Handle it.
* ltcf-cxx.sh: Use with_gnu_ld passed as a shell variable instead of
auto-detecting it.

21 years ago* libtool.m4 (LD): Append -melf* option to LD on IRIX with GNU ld.
Alexandre Oliva [Thu, 20 Feb 2003 01:12:28 +0000 (01:12 +0000)]
* libtool.m4 (LD): Append -melf* option to LD on IRIX with GNU ld.
* ltconfig: Handle it.
* ltcf-cxx.sh: Use with_gnu_ld passed as a shell variable instead of
auto-detecting it.

21 years ago * ldgram.y (vers_defns): Also recurse with 'EXTERN NAME' patterns.
Alan Modra [Thu, 20 Feb 2003 01:02:39 +0000 (01:02 +0000)]
* ldgram.y (vers_defns): Also recurse with 'EXTERN NAME' patterns.
* ldgram.y (vers_defns): Allow optional trailing semicolon in
EXTERN NAME block;

21 years ago* ltcf-cxx.sh: Replace $linker_flags with $compiler_flags wherever
Alexandre Oliva [Wed, 19 Feb 2003 23:51:28 +0000 (23:51 +0000)]
* ltcf-cxx.sh: Replace $linker_flags with $compiler_flags wherever
it is used as argument to $CC.
* ltcf-gcj.sh: Likewise.

21 years ago* configure.in: Introduce --enable-maintainer-mode.
Alexandre Oliva [Wed, 19 Feb 2003 23:51:03 +0000 (23:51 +0000)]
* configure.in: Introduce --enable-maintainer-mode.
* configure: Rebuilt.
* Makefile.tpl (Makefile.in, configure): Enable dependencies only
for maintainer mode.
* Makefile.in: Rebuilt.

21 years ago2003-02-19 Andrew Cagney <ac131313@redhat.com>
Andrew Cagney [Wed, 19 Feb 2003 23:32:19 +0000 (23:32 +0000)]
2003-02-19  Andrew Cagney <ac131313@redhat.com>

* configure: Regenerate using autoconf 2.13.

21 years agodaily update
Alan Modra [Wed, 19 Feb 2003 23:00:06 +0000 (23:00 +0000)]
daily update

21 years ago * elf32-hppa.c (elf32_hppa_gc_sweep_hook): Simplify dynamic reloc
Alan Modra [Wed, 19 Feb 2003 14:14:16 +0000 (14:14 +0000)]
* elf32-hppa.c (elf32_hppa_gc_sweep_hook): Simplify dynamic reloc
removal.  Localize vars.  Remove unnecessary dynobj test.
* elf32-i386 (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Pass SHARED instead
of INFO.
(allocate_dynrelocs): Adjust WILL_CALL_FINISH_DYNAMIC_SYMBOL uses,
and optimize.
(elf_i386_relocate_section): Likewise.
(elf_i386_gc_sweep_hook): Simplify dyn reloc removal.  Localize vars.
* elf32-s390.c (elf_s390_gc_sweep_hook): Likewise.
* elf32-sh.c (sh_elf_gc_sweep_hook): Likewise.
* elf64-s390.c (elf_s390_gc_sweep_hook): Likewise.
* elf64-x86-64.c (elf64_x86_64_gc_sweep_hook): Likewise.
* elf32-sparc.c (elf32_sparc_gc_sweep_hook): Likewise.  Remove
local_dynrel for section too.  Don't touch HIPLT22, LOPLT10, PCPLT32
or PCPLT10 relocs.  Don't subtract twice on PLT32 relocs.
Formatting.

21 years ago * elf64-ppc.c (ELIMINATE_COPY_RELOCS): Define.
Alan Modra [Wed, 19 Feb 2003 11:44:15 +0000 (11:44 +0000)]
* elf64-ppc.c (ELIMINATE_COPY_RELOCS): Define.
(ppc64_elf_check_relocs): Use it.  Correct comment.  Move SEC_ALLOC
test.
(ppc64_elf_adjust_dynamic_symbol): Use ELIMINATE_COPY_RELOCS.
(WILL_CALL_FINISH_DYNAMIC_SYMBOL): Pass SHARED instead of INFO.
(allocate_dynrelocs): Adjust WILL_CALL_FINISH_DYNAMIC_SYMBOL uses,
and optimize.  Use ELIMINATE_COPY_RELOCS.
(ppc64_elf_relocate_section): Likewise.

21 years ago * elf32-ppc.c (struct ppc_elf_dyn_relocs): Add pc_count field.
Alan Modra [Wed, 19 Feb 2003 11:26:50 +0000 (11:26 +0000)]
* elf32-ppc.c (struct ppc_elf_dyn_relocs): Add pc_count field.
(ppc_elf_copy_indirect_symbol): Copy pc_count field.
(ELIMINATE_COPY_RELOCS): Define.
(ppc_elf_adjust_dynamic_symbol): Convert copy relocs to dynamic.
(WILL_CALL_FINISH_DYNAMIC_SYMBOL): Pass SHARED instead of INFO.
(MUST_BE_DYN_RELOC): Define.
(allocate_dynrelocs): Adjust WILL_CALL_FINISH_DYNAMIC_SYMBOL uses,
and optimize.  Trim dyn_relocs.
(ppc_elf_check_relocs): Don't generate dyn_relocs when we know they'll
not be used.  Do generate dyn_relocs for copy reloc avoidance.  Keep
track of pc_rel dyn relocs.
(ppc_elf_relocate_section): Remove "will_become_local".  Adjust
WILL_CALL_FINISH_DYNAMIC_SYMBOL use.  Trim dyn relocs as per
allocate_dynrelocs.  Don't recalculate "sec".

21 years ago * app.c (do_scrub_chars): Handle '||' in two states.
Alan Modra [Wed, 19 Feb 2003 10:46:52 +0000 (10:46 +0000)]
* app.c (do_scrub_chars): Handle '||' in two states.

21 years agoimport latest versions
Alan Modra [Wed, 19 Feb 2003 07:47:34 +0000 (07:47 +0000)]
import latest versions

21 years agodaily update
Alan Modra [Tue, 18 Feb 2003 23:00:06 +0000 (23:00 +0000)]
daily update

21 years ago * Makefile.tpl (check-c++): Allow parallelism.
Jason Merrill [Tue, 18 Feb 2003 20:12:50 +0000 (20:12 +0000)]
    * Makefile.tpl (check-c++): Allow parallelism.

21 years ago * ld-powerpc/tlsexe.d: Update for changed handling of invalid LD
Alan Modra [Tue, 18 Feb 2003 12:54:56 +0000 (12:54 +0000)]
* ld-powerpc/tlsexe.d: Update for changed handling of invalid LD
relocs.
* ld-powerpc/tlsexe.g: Likewise.
* ld-powerpc/tlsexe.r: Likewise.
* ld-powerpc/tlsexe.t: Likewise.

21 years ago * elf32-ppc.c (ppc_elf_relocate_section): Remove unnecessary test.
Alan Modra [Tue, 18 Feb 2003 12:54:15 +0000 (12:54 +0000)]
* elf32-ppc.c (ppc_elf_relocate_section): Remove unnecessary test.
* elf64-ppc.c (ppc64_elf_tls_optimize): Decrement tlsld_got.refcount
on invalid LD relocs.
(allocate_dynrelocs): Invalid LD relocs don't use tlsld_got entry.
(ppc64_elf_relocate_section): Unify new handling of LD relocs and
tlsld_got entry.  Use IS_PPC64_TLS_RELOC.

21 years ago * ppc64.h (IS_PPC64_TLS_RELOC): Rename from IS_TLS_RELOC.
Alan Modra [Tue, 18 Feb 2003 12:52:55 +0000 (12:52 +0000)]
* ppc64.h (IS_PPC64_TLS_RELOC): Rename from IS_TLS_RELOC.

21 years agoNew tests.
Alan Modra [Tue, 18 Feb 2003 06:11:32 +0000 (06:11 +0000)]
New tests.

21 years ago * elf32-ppc.h: New file.
Alan Modra [Tue, 18 Feb 2003 06:06:17 +0000 (06:06 +0000)]
* elf32-ppc.h: New file.
* elf32-ppc.c: Include elf32-ppc.h.
(NOP, CROR_151515, CROR_313131, TP_OFFSET, DTP_OFFSET): Define.
(struct ppc_elf_link_hash_entry): Rename "root" to "elf".  Adjust uses.
Add "tls_mask" field.
(TLS_GD, TLS_LD, TLS_TPREL, TLS_DTPREL, TLS_TLS, TLS_TPRELGD): Define.
(struct ppc_elf_link_hash_table): Rename "root" to "elf".  Adjust uses.
Add got, relgot, plt, relplt, dynbss, relbss, dynsbss, relsbss,
sdata, sdata2, tls_sec, tls_get_addr, tlsld_got fields.
Make use of htab shortcuts throughout file.
(ppc_elf_link_hash_newfunc): Init tls_mask field.
(ppc_elf_link_hash_table_create): Init new fields.
(ppc_elf_copy_indirect_symbol): Copy tls_mask.
(ppc_elf_howto_raw): Add tls relocs.
(ppc_elf_reloc_type_lookup): Handle them.
(ppc_elf_unhandled_reloc): New function.
(ppc_elf_create_got): Stash got section pointer in hash table,
return status.  Make .rela.got too.
(ppc_elf_create_dynamic_sections): Stash section pointers in htab.
(ppc_elf_adjust_dynamic_symbol): Only set up copy relocs when
NON_GOT_REF set.  Don't allocate space in .plt here..
(allocate_dynrelocs): ..do so here instead, properly ref-counting and
not allocating plt entries unnecessarily.  Allocate got entries here.
(WILL_CALL_FINISH_DYNAMIC_SYMBOL): Define.
(ppc_elf_size_dynamic_sections): Allocate local got entries.  Pass
"info" during allocate_dynrelocs hash traversal.  Use htab section
shortcuts rather than searching for named sections.  Get rid of
"plt" and "strip" booleans.
(update_local_sym_info, bad_shared_reloc): New functions.
(ppc_elf_check_relocs): Handle TLS relocs.  Move .rela.got creation to
ppc_elf_create_got.  Don't mark got or plt reloc syms dynamic, do so
in allocate_dynreloc.  Use update_local_sym_info and bad_shared_reloc.
Disallow R_PPC_EMB_RELSDA, R_PPC_EMB_NADDR32, R_PPC_EMB_NADDR16,
R_PPC_EMB_NADDR16_LO, R_PPC_EMB_NADDR16_HI and R_PPC_EMB_NADDR16_HA
in shared libs.  R_PPC_PLTREL32 is a plt reloc too.  Refcount all
relocs that might use a plt entry.  Set NON_GOT_REF too.
Enumerate all do-nothing relocs.
(ppc_elf_gc_sweep_hook): Simplify removal of dynrelocs.  Handle
tls relocs and all plt relocs.
(ppc_elf_tls_setup, ppc_elf_tls_optimize): New functions.
(ppc_elf_finish_dynamic_symbol): Don't build got entries here.
(ppc_elf_finish_dynamic_sections): Rewrite tag code using htab
shortcuts.
(ppc_elf_relocate_section): Tidy.  Handle TLS relocs.  Use
bfd_elf_local_sym_name.  Simplify unresolved reloc code.  Build got
entries and got relocs here.  Warn on non-zero got reloc addend.
Split out branch taken/not taken reloc code into a separate switch
and correct offset calculation. Allow BRTAKEN/BRNTAKEN dynamic relocs.
Split out HA reloc adjustments to separate switch statement.  Don't
warn on reloc overflow if we've already warned about undefined.
Don't rebuild sym name when reporting errors.  Report all possible
errors from _bfd_final_link_relocate.
(bfd_elf32_bfd_final_link): Don't define.

21 years ago * emultempl/ppc32elf.em: New file.
Alan Modra [Tue, 18 Feb 2003 06:05:07 +0000 (06:05 +0000)]
* emultempl/ppc32elf.em: New file.
* emulparams/elf32ppc.sh (EXTRA_EM_FILE): Define.
* Makefile.am (eelf32lppc.c): Depend on emultempl/ppc32elf.em.
(eelf32lppcnto.c): Likewise.
(eelf32lppcsim.c): Likewise.
(eelf32ppcnto.c): Likewise.
(eelf32ppc.c): Likewise.
(eelf32ppc_fbsd.c): Likewise.
(eelf32ppcsim.c): Likewise.
(eelf32ppclinux.c): Likewise.

21 years ago * ppc.h: Replace DTPMOD64, TPREL64, DTPREL64 with DTPMOD32 etc.
Alan Modra [Tue, 18 Feb 2003 06:03:41 +0000 (06:03 +0000)]
* ppc.h: Replace DTPMOD64, TPREL64, DTPREL64 with DTPMOD32 etc.
(IS_PPC_TLS_RELOC): Define.

21 years ago * ld.texinfo: Remove spaces between @samp and opening brace.
Alan Modra [Tue, 18 Feb 2003 04:52:21 +0000 (04:52 +0000)]
* ld.texinfo: Remove spaces between @samp and opening brace.

21 years agodaily update
Alan Modra [Mon, 17 Feb 2003 23:00:05 +0000 (23:00 +0000)]
daily update

21 years ago * elf64-ppc.c (ppc64_elf_relocate_section): Don't init "r". Don't
Alan Modra [Mon, 17 Feb 2003 22:57:54 +0000 (22:57 +0000)]
* elf64-ppc.c (ppc64_elf_relocate_section): Don't init "r".  Don't
rebuild sym name when reporting errors.

21 years ago * ld-powerpc/tlsexe.g: Update for 2003-02-14 elf64-ppc.c change.
Alan Modra [Mon, 17 Feb 2003 22:49:53 +0000 (22:49 +0000)]
* ld-powerpc/tlsexe.g: Update for 2003-02-14 elf64-ppc.c change.

21 years ago * emultempl/ppc64elf.em (ppc_create_output_section_statements): Check
Alan Modra [Mon, 17 Feb 2003 22:49:24 +0000 (22:49 +0000)]
* emultempl/ppc64elf.em (ppc_create_output_section_statements): Check
hash creator.
(ppc_before_allocation): Don't do optimizations if wrong hash table.
(gld${EMULATION_NAME}_finish): Ditto.

21 years agoFix the behaviour of --allow-shlib-undefined, so that it does what it claims
Nick Clifton [Mon, 17 Feb 2003 18:24:40 +0000 (18:24 +0000)]
Fix the behaviour of --allow-shlib-undefined, so that it does what it claims
to do.  Add an inverse switch.  Update the documentation.

21 years agoSEGMENT_OVERLAPS: Check that LMAs overlap as well.
Nick Clifton [Mon, 17 Feb 2003 18:13:18 +0000 (18:13 +0000)]
SEGMENT_OVERLAPS: Check that LMAs overlap as well.

21 years agoRe-generate using autoconf 000227.
Andrew Cagney [Mon, 17 Feb 2003 17:14:16 +0000 (17:14 +0000)]
Re-generate using autoconf 000227.

21 years ago * configure.in (*-*-darwin*): Rename from powerpc*-*-darwin*,
Geoffrey Keating [Sun, 16 Feb 2003 01:24:56 +0000 (01:24 +0000)]
* configure.in (*-*-darwin*): Rename from powerpc*-*-darwin*,
don't configure target-libobjc.
* configure: Regenerate.

21 years agodaily update
Alan Modra [Sat, 15 Feb 2003 23:00:06 +0000 (23:00 +0000)]
daily update

21 years agodaily update
Alan Modra [Fri, 14 Feb 2003 23:00:05 +0000 (23:00 +0000)]
daily update

21 years ago* Makefile.tpl (RANLIB): Define.
DJ Delorie [Fri, 14 Feb 2003 21:15:37 +0000 (21:15 +0000)]
* Makefile.tpl (RANLIB): Define.
* Makefile.in: Regenerate.

21 years agoChange embedded documentation to use consistent indentation and to split up
Nick Clifton [Fri, 14 Feb 2003 11:16:09 +0000 (11:16 +0000)]
Change embedded documentation to use consistent indentation and to split up
long lines.  Change informal style of description for functions lacking real
documentation.

21 years ago(_bfd_stab_section_find_nearest_line): For line number stabs outside of
Nick Clifton [Fri, 14 Feb 2003 09:31:57 +0000 (09:31 +0000)]
(_bfd_stab_section_find_nearest_line): For line number stabs outside of
functions, treat values as absolute addresses.

21 years ago(elf_core_file_p): Compare alternate machine codes for ELF backends when
Nick Clifton [Fri, 14 Feb 2003 09:21:21 +0000 (09:21 +0000)]
(elf_core_file_p): Compare alternate machine codes for ELF backends when
checking if the generic ELF target should be used.

21 years ago * elf64-ppc.c (ppc64_elf_link_hash_table_create): Init tls_get_addr.
Alan Modra [Thu, 13 Feb 2003 23:48:31 +0000 (23:48 +0000)]
* elf64-ppc.c (ppc64_elf_link_hash_table_create): Init tls_get_addr.
(ppc64_elf_copy_indirect_symbol): Merge tls_mask too.
(ppc64_elf_gc_sweep_hook): Simplify removal of dyn_relocs.
(allocate_dynrelocs): Don't treat undefined and undefweak specially.
(ppc_size_one_stub): Fix warning, and tighten plt entry check.
(group_sections): Don't share a stub section if stubs are for a large
section.  Adjust comment.
(ppc64_elf_size_stubs): Roughly double the size left for stubs if
!stubs_always_before_branch.
(ppc64_elf_relocate_section): Initialize tlsld GOT entry once.  Don't
treat undefined and undefweak specially when processing dyn relocs.

21 years agodaily update
Alan Modra [Thu, 13 Feb 2003 23:00:06 +0000 (23:00 +0000)]
daily update

21 years agobfd/
Jakub Jelinek [Thu, 13 Feb 2003 22:14:11 +0000 (22:14 +0000)]
bfd/
* elflink.h (elf_link_add_object_symbols): Handle .symver x, x@FOO.
ld/testsuite/
* ld-shared/shared.exp: Run on s390*-*-linux* and x86_64-*-linux* too.
xfail tests linking non-pic code into shared libs on x86_64-*-linux*.
* ld-elfvsb/elfvsb.exp: Likewise.
* ld-elfvers/vers.exp: Likewise.  Add vers24a, vers24b and vers24c
tests.
* ld-elfvers/vers3.ver: Allow VERS_2.0 to come before GLIBC_*
version.
* ld-elfvers/vers19.ver: Likewise.
* ld-elfvers/vers24a.c: New test.
* ld-elfvers/vers24b.c: New test.
* ld-elfvers/vers24c.c: New test.
* ld-elfvers/vers24.map: New test.
* ld-elfvers/vers24.rd: New test.
* lib/ld-lib.exp (run_ld_link_tests): Add optional 7th argument
cflags.  If source files have .c extension, compile them first.

21 years ago(elf32_thumb_to_arm_stub): Include section VMAs in computation of offset to
Nick Clifton [Thu, 13 Feb 2003 19:35:22 +0000 (19:35 +0000)]
(elf32_thumb_to_arm_stub): Include section VMAs in computation of offset to
insert into BL instruction.

21 years agomerge from gcc
DJ Delorie [Thu, 13 Feb 2003 18:52:46 +0000 (18:52 +0000)]
merge from gcc

21 years agoDocumenation formatting improvements.
Nick Clifton [Thu, 13 Feb 2003 11:26:41 +0000 (11:26 +0000)]
Documenation formatting improvements.
Move Gnu Free Documenation License to a seperate file.

21 years agoFor N_SLINE only include function_start_offset if the symbol is within a
Nick Clifton [Thu, 13 Feb 2003 10:38:37 +0000 (10:38 +0000)]
For N_SLINE only include function_start_offset if the symbol is within a
function; otherwise, the value is absolute.

21 years agoHandle global register vairables.
Nick Clifton [Thu, 13 Feb 2003 10:32:46 +0000 (10:32 +0000)]
Handle global register vairables.

21 years agoAdd 'H' to getlongopts so that "readelf -H" does not display "unknown option"
Nick Clifton [Thu, 13 Feb 2003 09:56:51 +0000 (09:56 +0000)]
Add 'H' to getlongopts so that "readelf -H" does not display "unknown option"

21 years agoFix help messages about demangling styles
Nick Clifton [Thu, 13 Feb 2003 09:53:07 +0000 (09:53 +0000)]
Fix help messages about demangling styles

21 years agomerge from gcc
DJ Delorie [Thu, 13 Feb 2003 02:10:04 +0000 (02:10 +0000)]
merge from gcc

21 years ago * write.c (TC_FORCE_RELOCATION_SUB_SAME): Revert last change.
Alan Modra [Wed, 12 Feb 2003 23:21:08 +0000 (23:21 +0000)]
* write.c (TC_FORCE_RELOCATION_SUB_SAME): Revert last change.
* config/tc-s390.h (TC_FORCE_RELOCATION_SUB_SAME): Define.

21 years agodaily update
Alan Modra [Wed, 12 Feb 2003 23:00:05 +0000 (23:00 +0000)]
daily update

21 years ago003-02-12 Dave Brolley <brolley@redhat.com>
Dave Brolley [Wed, 12 Feb 2003 22:33:59 +0000 (22:33 +0000)]
003-02-12  Dave Brolley  <brolley@redhat.com>

        * fr30-desc.c: Regenerate.

21 years agodaily update
Alan Modra [Tue, 11 Feb 2003 23:00:05 +0000 (23:00 +0000)]
daily update

21 years agoFix spelling typo in previous delta
Nick Clifton [Tue, 11 Feb 2003 18:03:44 +0000 (18:03 +0000)]
Fix spelling typo in previous delta

21 years agoAdd new data anchors defenitions.
Nick Clifton [Tue, 11 Feb 2003 18:02:55 +0000 (18:02 +0000)]
Add new data anchors defenitions.

21 years agoAdd support for configuring *-*-kaos targets.
Nick Clifton [Tue, 11 Feb 2003 13:47:08 +0000 (13:47 +0000)]
Add support for configuring *-*-kaos targets.

21 years ago * elf64-ppc.c (ppc64_elf_check_relocs): Match versioned
Alan Modra [Tue, 11 Feb 2003 03:02:46 +0000 (03:02 +0000)]
* elf64-ppc.c (ppc64_elf_check_relocs): Match versioned
.__tls_get_addr too.
(ppc64_elf_tls_setup): Ensure cached tls_get_addr is not indirect.

21 years ago * hppaelf.em (group_size): Change default back to 1.
Dave Anglin [Tue, 11 Feb 2003 02:20:30 +0000 (02:20 +0000)]
* hppaelf.em (group_size): Change default back to 1.

21 years agodaily update
Alan Modra [Mon, 10 Feb 2003 23:00:05 +0000 (23:00 +0000)]
daily update

21 years ago * ld-sh/tlstpoff-1.d: New.
Kaz Kojima [Mon, 10 Feb 2003 22:19:26 +0000 (22:19 +0000)]
* ld-sh/tlstpoff-1.d: New.
* ld-sh/tlstpoff-2.d: New.
* ld-sh/tlstpoff1.s: New.
* ld-sh/tlstpoff2.s: New.

21 years ago * elf32-sh.c (elf_sh_dyn_relocs): Add tls_tpoff32 field.
Kaz Kojima [Mon, 10 Feb 2003 22:17:18 +0000 (22:17 +0000)]
* elf32-sh.c (elf_sh_dyn_relocs): Add tls_tpoff32 field.
(elf_sh_link_hash_entry): Remove tls_tpoff32 field.
(sh_elf_link_hash_newfunc): Remove the initialization of
tls_tpoff32 field.
(allocate_dynrelocs): Keep dyn_relocs if it includes the entry
for which tls_tpoff32 flag is set.
(sh_elf_relocate_section): Covert to LE only if the dyn_relocs
of the symbol includes the entry matched with the input_section
and having tls_tpoff32 flag on.  When linking statically, set
symbol index of R_SH_TLS_TPOFF32 relocation to zero if the symbol
is defined in this executable.
(sh_elf_check_relocs): Set tls_tpoff32 flag appropriately.

21 years ago * elf32-s390.c (elf_s390_size_dynamic_sections): Set relocs to TRUE
Jakub Jelinek [Mon, 10 Feb 2003 13:22:12 +0000 (13:22 +0000)]
* elf32-s390.c (elf_s390_size_dynamic_sections): Set relocs to TRUE
even if there is just non-empty .rela.plt.

21 years agoAdd function to set machine number based on flags in header.
Nick Clifton [Mon, 10 Feb 2003 11:21:19 +0000 (11:21 +0000)]
Add function to set machine number based on flags in header.

21 years agoAdd support for marking ARM ELF binaries as support the Cirrus EP9312 Maverick
Nick Clifton [Mon, 10 Feb 2003 10:44:48 +0000 (10:44 +0000)]
Add support for marking ARM ELF binaries as support the Cirrus EP9312 Maverick
floating point co-processor.

21 years ago * elf64-ppc.c: Rename assorted occurrences of tls_type and similar
Alan Modra [Sun, 9 Feb 2003 23:17:57 +0000 (23:17 +0000)]
* elf64-ppc.c: Rename assorted occurrences of tls_type and similar
variables, structure fields or function params to tls_mask or
similar to better reflect usage.
(struct got_entry): Comment.
(struct ppc_link_hash_entry):  Expand comment, and renumber TLS_*.
(get_tls_mask): Rename from get_tls_type.

21 years agodaily update
Alan Modra [Sun, 9 Feb 2003 23:00:15 +0000 (23:00 +0000)]
daily update

21 years ago * ld-powerpc/tlslib.s: Give .__tls_get_addr function type.
Alan Modra [Sun, 9 Feb 2003 04:37:04 +0000 (04:37 +0000)]
* ld-powerpc/tlslib.s: Give .__tls_get_addr function type.
* ld-powerpc/tlsexe.d: Update for changed handling of (invalid) ld var
in dynamic lib.
* ld-powerpc/tlsexe.g: Likewise.
* ld-powerpc/tlsexe.r: Likewise.
* ld-powerpc/tlsexe.t: Likewise.
* ld-powerpc/tlsexetoc.d: Likewise.
* ld-powerpc/tlsexetoc.g: Likewise.
* ld-powerpc/tlsexetoc.r: Likewise.
* ld-powerpc/tlsexetoc.t: Likewise.

21 years ago * emultempl/ppc64elf.em: Add "no-tls-optimize" option and support code.
Alan Modra [Sun, 9 Feb 2003 04:36:44 +0000 (04:36 +0000)]
* emultempl/ppc64elf.em: Add "no-tls-optimize" option and support code.

21 years ago * elf64-ppc.c (TLS_GD_LD): Don't define..
Alan Modra [Sun, 9 Feb 2003 04:36:23 +0000 (04:36 +0000)]
* elf64-ppc.c (TLS_GD_LD): Don't define..
(TLS_GD): ..define this instead and update all uses.
(TLS_TPRELGD): Define.
(ppc64_elf_link_hash_table_create): Tweak initialization of
init_refcount and init_offset.
(ppc64_elf_check_relocs): Add one extra element to t_symndx array.
Mark second slot of GD or LD toc entries.
(get_tls_type): Return an int.  Distinguish toc GD and LD entries
from other tls types.
(ppc64_elf_tls_setup): New function, split out from..
(ppc64_elf_tls_optimize): ..here.  Don't optimize when symbols are
defined in a dynamic object.  Fix LD optimization.  Don't set TLS_TPREL
on GD->IE optimization, use TLS_TPRELGD instead.  Use get_tls_type
return value to properly decide whether toc GD and LD entries can
optimize away __tls_get_addr call.  Check next reloc after DTPMOD64
to determine GD or LD rather than looking at TLS_LD flag.  Don't
attempt to adjust got entry tls_type here..
(allocate_dynrelocs): ..instead, adjust got entry tls_type here, and
look for possible merges.
(ppc64_elf_size_dynamic_sections): Adjust local got entries for
optimization.
(ppc64_elf_size_stubs): Tweak __tls_get_addr fudge.
(ppc64_elf_relocate_section): Rename some vars to better reflect usage.
Make use of return value from get_tls_type to properly detect GD and
LD optimizations.  Split tlsld/gd hi/ha from lo/ds case.  Don't
handle tls_get_addr removal when looking at REL24 relocs, do it when
looking at the previous reloc.  Check reloc after DTPMOD64 to determine
GD or LD.
* elf64-ppc.h (ppc64_elf_tls_setup): Declare.

21 years agodaily update
Alan Modra [Sat, 8 Feb 2003 23:00:06 +0000 (23:00 +0000)]
daily update

21 years agogas/
Richard Sandiford [Sat, 8 Feb 2003 17:05:55 +0000 (17:05 +0000)]
gas/
* config/tc-mips.c (reloc_needs_lo_p): New function.
(fixup_has_matching_lo_p): New function.
(append_insn): Use reloc_needs_lo_p to check whether a relocation
might need a matching %lo().  Reuse the head of mips_hi_fixup_list
if that fixup already has a matching %lo().  Don't call frag_wane here.
(macro): Call frag_wane here if the last unmatched hi was in the
current frag.
(pic_need_relax): New function, split out from...
(md_estimate_size_before_relax): ...here.
(mips_frob_file): Use reloc_needs_lo_p.  Use pic_need_relax to test
whether BFD_RELOC_MIPS_GOT16 fixups refer to global symbols.

gas/testsuite/
* gas/mips/rel12.[sd], gas/mips/rel13.[sd]: New tests.
* gas/mips/mips.exp: Run them.

21 years ago * elf32-hppa.c (group_sections): Don't share a stub section if
Alan Modra [Sat, 8 Feb 2003 08:18:41 +0000 (08:18 +0000)]
* elf32-hppa.c (group_sections): Don't share a stub section if
stubs are for a large section.

21 years ago * elf32-hppa.c (elf32_hppa_size_stubs): Double the size left for
Alan Modra [Sat, 8 Feb 2003 01:10:30 +0000 (01:10 +0000)]
* elf32-hppa.c (elf32_hppa_size_stubs): Double the size left for
stubs if !stubs_always_before_branch.

21 years agodaily update
Alan Modra [Fri, 7 Feb 2003 23:00:04 +0000 (23:00 +0000)]
daily update

21 years ago * hppaelf.em (group_size): Change default to -1.
Dave Anglin [Fri, 7 Feb 2003 15:55:49 +0000 (15:55 +0000)]
* hppaelf.em (group_size): Change default to -1.

21 years agoAdd duplicate entry for no-pipeline-knowledge. This will prevent the getopt
Nick Clifton [Fri, 7 Feb 2003 15:32:22 +0000 (15:32 +0000)]
Add duplicate entry for no-pipeline-knowledge.  This will prevent the getopt
package from thinking that there are any shorter abbreviations for
--no-pipeline-knowledge.

21 years ago * config/tc-mips.c (my_getSmallExpression): Rework bracket handling.
Richard Sandiford [Fri, 7 Feb 2003 15:06:33 +0000 (15:06 +0000)]
* config/tc-mips.c (my_getSmallExpression): Rework bracket handling.

testsuite/
* gas/mips/expr1.[sd]: New test.
* gas/mips/mips.exp: Run it.

21 years agoGenerate an error message if a section cannot be found for a symbol.
Nick Clifton [Fri, 7 Feb 2003 14:27:59 +0000 (14:27 +0000)]
Generate an error message if a section cannot be found for a symbol.

21 years ago * genscripts.sh (LIB_PATH): Don't append LIBPATH_SUFFIX to paths
Jakub Jelinek [Fri, 7 Feb 2003 14:21:03 +0000 (14:21 +0000)]
* genscripts.sh (LIB_PATH): Don't append LIBPATH_SUFFIX to paths
which already have it.  Avoid duplicates.

21 years ago * elf64-alpha.c (elf64_alpha_relax_section): Don't crash if
Jakub Jelinek [Fri, 7 Feb 2003 09:30:33 +0000 (09:30 +0000)]
* elf64-alpha.c (elf64_alpha_relax_section): Don't crash if
local_got_entries is NULL.

21 years ago * elf-eh-frame.c (get_DW_EH_PE_signed): Define.
Andreas Schwab [Thu, 6 Feb 2003 23:01:04 +0000 (23:01 +0000)]
* elf-eh-frame.c (get_DW_EH_PE_signed): Define.
(read_value): Add parameter is_signed, use signed extraction if
the value is signed.
(_bfd_elf_write_section_eh_frame): Pass signed flag of the
encoding to read_value.

21 years agodaily update
Alan Modra [Thu, 6 Feb 2003 23:00:06 +0000 (23:00 +0000)]
daily update

21 years agoSource Navigator is now on sourceforge...
Keith Seitz [Thu, 6 Feb 2003 20:36:19 +0000 (20:36 +0000)]
Source Navigator is now on sourceforge...

        * Makefile.def: Remove "snavigator", "grep", and "db" modules.
        * Makefile.tpl: Remove "all-snavigator" and "all-grep".
        * Makefile.in: Regenerated.
        * configure.in: Remove all traces of snavigator, db, and grep.
        * configure: Regenerated.

21 years ago * emulparams/elf64_s390.sh (LIBPATH_SUFFIX): Set to 64.
Jakub Jelinek [Thu, 6 Feb 2003 14:45:04 +0000 (14:45 +0000)]
* emulparams/elf64_s390.sh (LIBPATH_SUFFIX): Set to 64.
* emulparams/elf_x86_64.sh (LIBPATH_SUFFIX): Likewise.
* emulparams/elf64_sparc.sh (LIBPATH_SUFFIX): Set instead of suffix.

21 years ago * gas/i386/x86-64-opcode.s: More tests for x86-64 MOVD opcodes.
Alan Modra [Thu, 6 Feb 2003 01:49:39 +0000 (01:49 +0000)]
* gas/i386/x86-64-opcode.s: More tests for x86-64 MOVD opcodes.
* gas/i386/x86-64-opcode.d: Adjust to suit.

21 years ago * i386-dis.c (dq_mode, Edq): Define.
Alan Modra [Thu, 6 Feb 2003 01:48:41 +0000 (01:48 +0000)]
* i386-dis.c (dq_mode, Edq): Define.
(dis386_twobyte): Correct movd operands.
(OP_E): Handle dq_mode case.

21 years ago * config/tc-ppc.c (ppc_elf_suffix): Undo part of last change so that
Alan Modra [Thu, 6 Feb 2003 01:24:17 +0000 (01:24 +0000)]
* config/tc-ppc.c (ppc_elf_suffix): Undo part of last change so that
x@toc+off works.

21 years agodaily update
Alan Modra [Wed, 5 Feb 2003 23:00:04 +0000 (23:00 +0000)]
daily update

21 years ago * elf64-ppc.c (ppc64_elf_copy_indirect_symbol): Don't copy got and
Alan Modra [Wed, 5 Feb 2003 15:49:04 +0000 (15:49 +0000)]
* elf64-ppc.c (ppc64_elf_copy_indirect_symbol): Don't copy got and
plt info when called to transfer weak sym info.

21 years agodaily update
Alan Modra [Tue, 4 Feb 2003 23:00:05 +0000 (23:00 +0000)]
daily update

21 years agonew ppc64 tls tests
Alan Modra [Tue, 4 Feb 2003 14:52:11 +0000 (14:52 +0000)]
new ppc64 tls tests