OSDN Git Service

pf3gnuchains/pf3gnuchains3x.git
23 years agoTreat a .ln directive outside of a function as a .appline directive.
Nick Clifton [Sat, 30 Jun 2001 10:09:40 +0000 (10:09 +0000)]
Treat a .ln directive outside of a function as a .appline directive.

23 years agoRemerge with gcc
Nick Clifton [Sat, 30 Jun 2001 08:58:10 +0000 (08:58 +0000)]
Remerge with gcc

23 years ago * elfcore.h (elf_core_file_p): Call bfd_section_from_phdr directly
Alan Modra [Sat, 30 Jun 2001 04:05:13 +0000 (04:05 +0000)]
* elfcore.h (elf_core_file_p): Call bfd_section_from_phdr directly
instead of _bfd_elfcore_section_from_phdr.
* elf-bfd.h (_bfd_elfcore_section_from_phdr): Remove.
* elf.c (_bfd_elfcore_section_from_phdr): Remove.
(_bfd_elfcore_make_pseudosection): Expedite tail-call.
(elfcore_grok_prstatus): Likewise.
(elfcore_grok_lwpstatus): Likewise.
(bfd_get_elf_phdr_upper_bound): Likewise.
(elfcore_make_note_pseudosection): Formatting.
(_bfd_elfcore_strndup): Formatting.
* elf32-mips.c (mips_elf_sym_is_global): Formatting.
(_bfd_elf32_mips_grok_prstatus): Expedite tail-call.

23 years ago * elf-bfd.h: Add prototypes for _bfd_elfcore_make_pseudosection
Alan Modra [Sat, 30 Jun 2001 03:15:46 +0000 (03:15 +0000)]
* elf-bfd.h: Add prototypes for _bfd_elfcore_make_pseudosection
and _bfd_elfcore_strndup.
(struct elf_backend_data): Add elf_backend_grok_prstatus
and elf_backend_grok_psinfo.
* elf.c (_bfd_elfcore_make_pseudosection): New function.
(elfcore_grok_prstatus): Use it.
(elfcore_make_note_pseudosection): Likewise.
(elfcore_strndup):  Rename to...
(_bfd_elfcore_strndup): Here, and make global.
(elfcore_grok_psinfo): Use _bfd_elfcore_strndup.
(elfcore_grok_note): Call elf_backend_grok_prstatus
and elf_backend_grok_psinfo if available.
* elf32-mips.c (_bfd_elf32_mips_grok_prstatus): New function.
(_bfd_elf32_mips_grok_psinfo): New function.
(elf_backend_grok_prstatus): Define.
(elf_backend_grok_psinfo): Define.
* elfxx-target.h (elf_backend_grok_prstatus): Default to NULL.
(elf_backend_grok_psinfo): Likewise.
(elfNN_bed): Include elf_backend_grok_prstatus and
elf_backend_grok_psinfo.

23 years ago2001-06-29 H.J. Lu <hjl@gnu.org>
H.J. Lu [Sat, 30 Jun 2001 00:34:10 +0000 (00:34 +0000)]
2001-06-29  H.J. Lu  <hjl@gnu.org>

* elf32-hppa.c (elf32_hppa_finish_dynamic_sections): Check if
hplink->sgot is NULL before filling GOT. Checck if hplink->splt
is NULL before filling PLT.

23 years ago2001-06-28 Eric Christopher <echristo@redhat.com>
Eric Christopher [Fri, 29 Jun 2001 21:27:43 +0000 (21:27 +0000)]
2001-06-28  Eric Christopher <echristo@redhat.com>
    H.J. Lu  <hjl@gnu.org>

        * config/tc-mips.c (mips_arch): New. Use mips_arch instead
        of mips_cpu for the ISA selection.
        (md_longopts): Add OPTION_MARCH and OPTION_MTUNE.
        (md_parse_option): Handle OPTION_MARCH and OPTION_MTUNE.
(mips_tune): New.  Use mips_tune for scheduling and optimization
issues.
(append_insn): Use mips_tune and mips_arch.
(macro_build): Ditto.
(mips_ip): Ditto.
(md_begin): Handle mips_arch, mips_tune and mips_cpu.  For
backwards compatability mips_cpu generates arch and tune.
(md_show_usage): Document new behavior.

* doc/c-mips.texi (MIPS Opts): Document -march and -mtune.
Deprecate -mcpu.

* NEWS: Update.

2001-06-28  Eric Christopher  <echristo@redhat.com>

* gas/mips/usd.d: Change for march/mtune.
* gas/mips/ulh-xgot.d: Ditto.
* gas/mips/uld.d: Ditto.
* gas/mips/trunc.d: Ditto.
* gas/mips/rol.d: Ditto.
* gas/mips/nodelay.d: Ditto.
* gas/mips/mul.d: Ditto.
* gas/mips/mul-ilocks.d: Ditto.
* gas/mips/trap20.d: Ditto.
* gas/mips/mips4.d: Ditto.
* gas/mips/mips16.d: Ditto.
* gas/mips/lif-xgot.d: Ditto.
* gas/mips/lif-svr4pic.d: Ditto.
* gas/mips/ld-xgot.d: Ditto.
* gas/mips/ld-svr4pic.d: Ditto.
* gas/mips/ld-ilocks-addr32.d: Ditto.
* gas/mips/lb-xgot.d: Ditto.
* gas/mips/jal-xgot.d: Ditto.
* gas/mips/jal-svr4pic.d: Ditto.
* gas/mips/delay.d: Ditto.
* gas/mips/lb-xgot-ilocks.d: Ditto.
* gas/mips/div.d: Ditto.
* gas/mips/break20.d: Ditto.
* gas/mips/delay.d: Ditto.
* gas/mips/elf_e_flags3.d: Ditto.
* gas/mips/elf_e_flags4.d: Ditto.
* gas/mips/lineno.d: Ditto.
* gas/mips/mips16.d: Ditto.
* gas/mips/mips4.d: Ditto.
* gas/mips/mips4010.d: Ditto.
* gas/mips/mips4650.d: Ditto.

23 years agoAdd DWARF 2.1 attributes
Nick Clifton [Fri, 29 Jun 2001 14:17:31 +0000 (14:17 +0000)]
Add DWARF 2.1 attributes

23 years ago* elflink.h (elf_link_output_extsym): Revert 1999-04-10.
Alan Modra [Fri, 29 Jun 2001 07:00:33 +0000 (07:00 +0000)]
* elflink.h (elf_link_output_extsym): Revert 1999-04-10.

23 years ago * cgen-asm.c (cgen_parse_keyword): Allow any first character.
Geoffrey Keating [Fri, 29 Jun 2001 00:09:16 +0000 (00:09 +0000)]
* cgen-asm.c (cgen_parse_keyword): Allow any first character.
* cgen-opc.c (cgen_keyword_add): Ignore special first
character when building nonalpha_chars field.

23 years ago * readelf.c (GET_DATA_ALLOC): Remove.
Alan Modra [Thu, 28 Jun 2001 13:58:36 +0000 (13:58 +0000)]
* readelf.c (GET_DATA_ALLOC): Remove.
(GET_DATA): Remove.
(get_data): New function combining above macros, with an extra
test for zero size.
Use get_data, and catch error return throughout file.

23 years agoDo not set finalize_syms until after the segments have been sized.
Nick Clifton [Wed, 27 Jun 2001 08:49:42 +0000 (08:49 +0000)]
Do not set finalize_syms until after the segments have been sized.
Some backends may still need to access the syms's frags in order to
adjust relaxed frags.

23 years ago * emulparams/hppa64linux.sh: New file.
Alan Modra [Wed, 27 Jun 2001 08:42:29 +0000 (08:42 +0000)]
* emulparams/hppa64linux.sh: New file.
* configure.tgt: hppa*64*-*-linux* uses hppa64linux.sh
* Makefile.am (ALL_64_EMULATIONS): Add ehppa64linux.o
(ehppa64linux.c): Add rule to make it.
Run "make dep-am".
* Makefile.in: Regenerate.

23 years agoUse MVN to build simple inverted constants.
Nick Clifton [Wed, 27 Jun 2001 08:15:52 +0000 (08:15 +0000)]
Use MVN to build simple inverted constants.

23 years ago * write.c (fixup_segment <Difference of 2 syms same seg>): Don't
Alan Modra [Wed, 27 Jun 2001 07:02:24 +0000 (07:02 +0000)]
* write.c (fixup_segment <Difference of 2 syms same seg>): Don't
subtract MD_PCREL_FROM_SECTION for 68k.
(fixup_segment <Difference of 2 syms different seg>): Only fudge
by adding MD_PCREL_FROM_SECTION for 68k or if not already pcrel.

23 years ago * write.c (fixup_segment <Difference of 2 syms same seg>): If
Alan Modra [Wed, 27 Jun 2001 03:14:47 +0000 (03:14 +0000)]
* write.c (fixup_segment <Difference of 2 syms same seg>): If
pcrel, subtract MD_PCREL_FROM_SECTION value.

23 years ago Avoid creating COPY relocs.
Alan Modra [Wed, 27 Jun 2001 02:42:09 +0000 (02:42 +0000)]
Avoid creating COPY relocs.
* elf32-hppa.c (elf32_hppa_check_relocs): Don't make syms dynamic
here..
(elf32_hppa_adjust_dynamic_symbol): ..nor here..
(allocate_plt_and_got_and_discard_relocs): .. instead do so here
after gc has run.
* elf32-hppa.c (RELATIVE_DYNAMIC_RELOCS): Delete.
(IS_ABSOLUTE_RELOC): Define.
(elf32_hppa_link_hash_entry): Always include reloc_entries field.
(hppa_link_hash_newfunc): Always init it.
(elf32_hppa_check_relocs): Mark symbols as ELF_LINK_NON_GOT_REF to
create COPY relocs only when the reloc is in a read-only section.
Instead, allocate space for a dynamic reloc to reference the
library symbol directly.  Keep track of space we allocate using
relocs_entries.
(hppa_discard_copies): Delete, and move code to..
(allocate_plt_and_got): ..here.  Rename to
allocate_plt_and_got_and_discard_relocs.  Remove unneeded dynamic
relocs for non-shared link.
(elf32_hppa_size_dynamic_sections): Update calls to above.
(elf32_hppa_relocate_section): Write out the dynamic relocs used
in lieu of COPY relocs.

23 years ago * elf32-i386.c (elf_i386_check_relocs): Don't make syms dynamic
Alan Modra [Wed, 27 Jun 2001 01:46:17 +0000 (01:46 +0000)]
* elf32-i386.c (elf_i386_check_relocs): Don't make syms dynamic
here..
(elf_i386_adjust_dynamic_symbol): ..nor here..
(allocate_plt_and_got_and_discard_relocs): .. instead do so here
after gc has run.
(elf_i386_size_dynamic_sections): Fix a comment.
(elf_i386_relocate_section <R_386_32, R_386_PC32>): Rearrange code
involved in writing reloc out.

23 years ago * elf32-i386.c (elf_i386_check_relocs <R_386_32, R_386_PC32>):
Alan Modra [Mon, 25 Jun 2001 08:16:44 +0000 (08:16 +0000)]
* elf32-i386.c (elf_i386_check_relocs <R_386_32, R_386_PC32>):
Ensure syms are dynamic if we might be emitting a reloc.
(allocate_plt_and_got_and_discard_relocs): Don't discard relocs
for undefweak or undefined syms..
(elf_i386_relocate_section <R_386_32, R_386_PC32>): .. and emit.

23 years ago2001-06-24 Ben Elliston <bje@redhat.com>
Ben Elliston [Mon, 25 Jun 2001 07:57:09 +0000 (07:57 +0000)]
2001-06-24  Ben Elliston  <bje@redhat.com>

* stabs.c (generate_asm_file): Make local variable `len' a size_t.

23 years ago * readelf.c (dump_relocations): Print "bad symbol index" if
Alan Modra [Mon, 25 Jun 2001 03:30:26 +0000 (03:30 +0000)]
* readelf.c (dump_relocations): Print "bad symbol index" if
symtab == NULL with non-zero symtab_index.
(process_relocs): Don't bomb if reloc section has no symsec.

23 years ago * elf32-i386.c (allocate_plt_and_got_and_discard_relocs): Discard
Alan Modra [Mon, 25 Jun 2001 02:40:47 +0000 (02:40 +0000)]
* elf32-i386.c (allocate_plt_and_got_and_discard_relocs): Discard
relocs without ELF_LINK_HASH_DEF_DYNAMIC set.
(elf_i386_relocate_section <R_386_32, R_386_PC32>): Remove
redundant bfd_link_hash_defined, bfd_link_hash_defweak test.

23 years ago * config/tc-alpha.c (tc_gen_reloc): Handle relocs against SEC_MERGE
Jakub Jelinek [Sun, 24 Jun 2001 16:43:31 +0000 (16:43 +0000)]
* config/tc-alpha.c (tc_gen_reloc): Handle relocs against SEC_MERGE
section symbols the same way as externs.

23 years ago2001-06-24 H.J. Lu <hjl@gnu.org>
H.J. Lu [Sun, 24 Jun 2001 16:27:00 +0000 (16:27 +0000)]
2001-06-24  H.J. Lu  <hjl@gnu.org>

* objcopy.c (strip_main): Revert the change made on 2001-05-30
by accident.
(copy_main): Apply the the change made to strip_main on
2001-05-30 by accident.

23 years ago2001-06-24 H.J. Lu <hjl@gnu.org>
H.J. Lu [Sun, 24 Jun 2001 16:06:38 +0000 (16:06 +0000)]
2001-06-24  H.J. Lu  <hjl@gnu.org>

* cpu-i960.c (scan_960_mach): Don't modify const char *. Use
strncasecmp/strcasecmp instead of strncmp/strcmp.

23 years ago2001-06-24 Ben Elliston <bje@redhat.com>
Ben Elliston [Sun, 24 Jun 2001 06:01:49 +0000 (06:01 +0000)]
2001-06-24  Ben Elliston  <bje@redhat.com>

* config/tc-m88k.c (md_number_to_imm): Remove; unused since 1993.
(emit_relocations): Ditto.
(s_bss): Ditto.
(md_begin): Reformat comments to conform to the GNU standards.
(md_assemble): Ditto.

23 years ago* fixes to silence all compiler warnings.
Ben Elliston [Sun, 24 Jun 2001 01:56:48 +0000 (01:56 +0000)]
* fixes to silence all compiler warnings.

2001-06-24  Ben Elliston  <bje@redhat.com>

* config/tc-m88k.c (get_reg): Adjust type of `reg_prefix' to char.
(md_parse_option): Mark parameters as unused.
(md_show_usage): Ditto.
(calcop): Adjust type of `reg_prefix' to char.
(get_reg): Ditto.
(getval): Adjust type of local `c' to char.
(md_create_short_jump): Mark from_addr, to_addr params as unused.
(md_create_long_jump): Ditto.
(md_estimate_size_before_relax): Mark parameters as unused.

23 years ago2001-06-24 Ben Elliston <bje@redhat.com>
Ben Elliston [Sun, 24 Jun 2001 01:04:16 +0000 (01:04 +0000)]
2001-06-24  Ben Elliston  <bje@redhat.com>

* m88k-dis.c: Format to conform to GNU coding standards.

23 years ago2001-06-23 H.J. Lu <hjl@gnu.org>
H.J. Lu [Sun, 24 Jun 2001 00:36:47 +0000 (00:36 +0000)]
2001-06-23  H.J. Lu  <hjl@gnu.org>

* elf32-i386.c (elf_i386_relocate_section): Check the
ELF_LINK_HASH_DEF_DYNAMIC to see if a symbol is not defined
in the regular object file and treat the weak definition as
the normal one.

23 years ago2001-06-24 Ben Elliston <bje@redhat.com>
Ben Elliston [Sat, 23 Jun 2001 23:02:57 +0000 (23:02 +0000)]
2001-06-24  Ben Elliston  <bje@redhat.com>

* config/tc-m88k.c (md_pseudo_table): Properly terminate the table
to allay a possible compiler warning.

23 years ago * disassemble.c (disassembler_usage): Add unused attribute.
Andreas Jaeger [Sat, 23 Jun 2001 16:07:06 +0000 (16:07 +0000)]
* disassemble.c (disassembler_usage): Add unused attribute.

23 years ago * unwind-ia64.c (unw_decode_x1): Add unused attribute for
Andreas Jaeger [Sat, 23 Jun 2001 16:06:51 +0000 (16:06 +0000)]
* unwind-ia64.c (unw_decode_x1): Add unused attribute for
parameter 'code'.
(unw_decode_x2): Likewise.
(unw_decode_x3): Likewise.
(unw_decode_x4): Likewise.

23 years ago * elf32-i386.c (elf_i386_relocate_section <R_386_GOT32>): Tighten
Alan Modra [Sat, 23 Jun 2001 15:02:43 +0000 (15:02 +0000)]
* elf32-i386.c (elf_i386_relocate_section <R_386_GOT32>): Tighten
unresolved_reloc test to exclude cases where we use "relocation"
before setting it to point into the .got.  Reinstate fudge for
unresolved relocs in debugging sections.

23 years ago * elf32-i386.c (elf_i386_relocate_section): Replace ugly
Alan Modra [Sat, 23 Jun 2001 11:01:44 +0000 (11:01 +0000)]
* elf32-i386.c (elf_i386_relocate_section): Replace ugly
complicated tests for unresolvable relocs with a simple direct
scheme using "unresolved_reloc" var.

23 years ago2001-06-23 Ben Elliston <bje@redhat.com>
Ben Elliston [Sat, 23 Jun 2001 10:26:08 +0000 (10:26 +0000)]
2001-06-23  Ben Elliston  <bje@redhat.com>

* MAINTAINERS: Add myself as M88k maintainer.

23 years ago * elf32-i386.c (struct elf_i386_pcrel_relocs_copied): Rename to
Alan Modra [Sat, 23 Jun 2001 10:03:53 +0000 (10:03 +0000)]
* elf32-i386.c (struct elf_i386_pcrel_relocs_copied): Rename to
elf_i386_dyn_relocs.  Update comment.
(struct elf_i386_link_hash_entry): Rename pcrel_relocs_copied to
dyn_relocs.
(elf_i386_adjust_dynamic_symbol): Remove a BFD_ASSERT, change
others to aborts.
(allocate_plt_and_got_and_discard_relocs): Replace BFD_ASSERT with
abort.
(elf_i386_size_dynamic_sections): Likewise.
(elf_i386_finish_dynamic_symbol): Likewise.
(elf_i386_finish_dynamic_sections): Likewise.
(elf_i386_relocate_section): Likewise.  Tidy R_386_GOT32 and error
handling code.

23 years ago Avoid creating COPY relocs if possible.
Alan Modra [Sat, 23 Jun 2001 05:54:15 +0000 (05:54 +0000)]
Avoid creating COPY relocs if possible.
* elf32-i386.c (elf_i386_check_relocs): Tweak condition under
which .got created.  Mark symbols used by R_386_32 and R_386_PC32
relocs as ELF_LINK_NON_GOT_REF to create COPY relocs only when the
reloc is in a read-only section.  Instead, allocate space for a
dynamic reloc to reference the library symbol directly.  Keep
track of space we allocate using pcrel_relocs_copied.
(discard_copies): Delete, and move code to ..
(allocate_plt_and_got): ..here.  Rename to
allocate_plt_and_got_and_discard_relocs.  Remove unneeded dynamic
relocs for non-shared link.
(elf_i386_size_dynamic_sections): Update calls to above functions.
(elf_i386_relocate_section): Write out the dynamic relocs.  Add
more ugly logic to avoid "unresolvable relocation" error.  Use
htab shortcut in place of elf_hash_table macro.
(elf_i386_finish_dynamic_sections): Allow that dynamic .got may
not always be created now.

23 years ago2001-06-22 Eric Christopher <echristo@redhat.com>
Eric Christopher [Fri, 22 Jun 2001 21:10:01 +0000 (21:10 +0000)]
2001-06-22  Eric Christopher  <echristo@redhat.com>

* mips-opc.c: Move prefx to start of the table.

23 years agoDocument md_atof
Nick Clifton [Fri, 22 Jun 2001 09:32:09 +0000 (09:32 +0000)]
Document md_atof

23 years agoAdd missing support for -o option.
Nick Clifton [Fri, 22 Jun 2001 09:02:05 +0000 (09:02 +0000)]
Add missing support for -o option.

23 years agoFix over-optimisation of ST instruction.
Nick Clifton [Fri, 22 Jun 2001 08:55:05 +0000 (08:55 +0000)]
Fix over-optimisation of ST instruction.

23 years agoAdd wdebug instruction
Nick Clifton [Fri, 22 Jun 2001 08:21:14 +0000 (08:21 +0000)]
Add wdebug instruction

23 years agoAdd %mrp (millicode return pointer) alias for %r2 or %r31, depending on 32 or
Nick Clifton [Fri, 22 Jun 2001 08:17:57 +0000 (08:17 +0000)]
Add %mrp (millicode return pointer) alias for %r2 or %r31, depending on 32 or
64 bit architecture.

23 years agoAllow adrCCl. [Patch from Phillip BLundel]
Nick Clifton [Thu, 21 Jun 2001 19:46:54 +0000 (19:46 +0000)]
Allow adrCCl.  [Patch from Phillip BLundel]
Updated ARM tests.

23 years ago * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix linking of
Andreas Jaeger [Thu, 21 Jun 2001 16:33:14 +0000 (16:33 +0000)]
* elf64-x86-64.c (elf64_x86_64_relocate_section): Fix linking of
shared libraries.

23 years agoFix typos
Nick Clifton [Thu, 21 Jun 2001 07:44:32 +0000 (07:44 +0000)]
Fix typos

23 years ago * config/tc-hppa.c (CHECK_FIELD_WHERE): Define.
Alan Modra [Thu, 21 Jun 2001 06:12:11 +0000 (06:12 +0000)]
* config/tc-hppa.c (CHECK_FIELD_WHERE): Define.
(md_apply_fix): Use it here.  Replace printf with equivalent
as_bad_where.
(tc_gen_reloc): Use as_bad_where instead of as_bad.
(md_apply_fix): Here too.
* config/tc-i386.c (tc_gen_reloc): Use as_bad_where instead of as_bad.
* config/tc-m68k.c (tc_gen_reloc): Likewise.
(md_convert_frag_1): Likewise.

23 years ago * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Always
Alan Modra [Thu, 21 Jun 2001 05:47:12 +0000 (05:47 +0000)]
* elf32-hppa.c (elf32_hppa_size_dynamic_sections): Always
allocate local .got space.  Use shortcuts from hash table for .got
and .plt rather than comparing section names.
(elf32_hppa_check_relocs): Use local_plt_refcounts var rather than
adjusting index into local_got_refcounts to document what we are
really doing.
(elf32_hppa_relocate_section): Similarly for local_plt_offsets.
Tidy .got and .plt error checking.

23 years ago * ld.texinfo (Options, -r): Mention restrictions when using
Hans-Peter Nilsson [Wed, 20 Jun 2001 22:40:13 +0000 (22:40 +0000)]
* ld.texinfo (Options, -r): Mention restrictions when using
different object formats.

23 years ago * bfdint.texi (BFD relocation functions) <different formats>:
Hans-Peter Nilsson [Wed, 20 Jun 2001 22:23:23 +0000 (22:23 +0000)]
* bfdint.texi (BFD relocation functions) <different formats>:
Mention that the GNU linker is aware of input-output format
restrictions when generating relocatable output.  Make new
paragraph for final-link case.
(BFD target vector swap): Fix typo.

23 years ago * elf-bfd.h (struct elf_backend_data):
Catherine Moore [Wed, 20 Jun 2001 20:34:10 +0000 (20:34 +0000)]
    * elf-bfd.h (struct elf_backend_data):
        elf_backend_emit_relocs: New field: Function for emitting
        relocs.
        elf_backend_count_relocs: New field: Function for determining
        the number of relocs to be emitted.
        * elfxx-target.h: Provide default (NULL) values for
        elf_backend_emit_relocs and elf_backend_count_relocs.
        * elflink.h (elf_link_size_reloc_section): Make the hash table
        big enough to hold the relocs counted by either reloc_count or
        o->reloc_count.
        (elf_bfd_final_link) emit_relocs: New boolean, set if relocs
        should be emitted, either because of a command line option
        stored in the info structure or because the target provides a
        special reloc emitting function.
        If the target provides a reloc counting function use it,
        unless performing a relocatable link or emitting all relocs.
        Also set the SEC_RELOC flag on any output section which will
        contain relocs.
        (elf_link_input_bfd): emit_relocs: New boolean, set if relocs
        should be emitted, either because of a command line option
        stored in the info structure or because the target provides a
        special reloc emitting function.
        If the target provides a reloc emitting function, use it,
        unless performing a relocatable link or emitting all relocs.

23 years ago2001-06-20 H.J. Lu <hjl@gnu.org>
H.J. Lu [Wed, 20 Jun 2001 18:54:52 +0000 (18:54 +0000)]
2001-06-20  H.J. Lu  <hjl@gnu.org>

* elf32-i386.c (elf_i386_size_dynamic_sections): Always
allocate local .got space.

23 years agoFix for problem with default alignment of .comm
Tom Rix [Wed, 20 Jun 2001 13:34:10 +0000 (13:34 +0000)]
Fix for problem with default alignment of .comm

23 years ago * ldlang.c (lang_check): Emit fatal error if relocatable link
Hans-Peter Nilsson [Tue, 19 Jun 2001 19:57:39 +0000 (19:57 +0000)]
* ldlang.c (lang_check): Emit fatal error if relocatable link
between different object flavours with relocations in input.

23 years ago2001-06-19 H.J. Lu <hjl@gnu.org>
H.J. Lu [Tue, 19 Jun 2001 18:16:52 +0000 (18:16 +0000)]
2001-06-19  H.J. Lu <hjl@gnu.org>

* doc/Makefile.in: Regenerated.

23 years agoRestore file accidentally deleted during man page cleanup
Nick Clifton [Tue, 19 Jun 2001 16:26:43 +0000 (16:26 +0000)]
Restore file accidentally deleted during man page cleanup

23 years ago2001-06-19 H.J. Lu <hjl@gnu.org>
H.J. Lu [Tue, 19 Jun 2001 15:22:39 +0000 (15:22 +0000)]
2001-06-19  H.J. Lu  <hjl@gnu.org>

* ld.texinfo (-E, --export-dynamic): Mention --version-script.
(--version-script): Mention the language support.

23 years ago2001-06-19 H.J. Lu <hjl@gnu.org>
H.J. Lu [Tue, 19 Jun 2001 14:39:02 +0000 (14:39 +0000)]
2001-06-19  H.J. Lu <hjl@gnu.org>

* ldlang.c (lang_check): Revert the change mode on 2001-06-15.

23 years ago(elf64_x86_64_relocate_section): Fix creation of dynamic symbols.
Andreas Jaeger [Tue, 19 Jun 2001 13:30:40 +0000 (13:30 +0000)]
(elf64_x86_64_relocate_section): Fix creation of dynamic symbols.

23 years agoRemove auot generated man pages
Nick Clifton [Tue, 19 Jun 2001 11:57:29 +0000 (11:57 +0000)]
Remove auot generated man pages

23 years ago * Makefile.in: Revert 2001-06-17.
Alan Modra [Tue, 19 Jun 2001 09:21:33 +0000 (09:21 +0000)]
* Makefile.in: Revert 2001-06-17.
(VER): If AM_INIT_AUTOMAKE uses BFD_VERSION, get version from bfd/.

23 years ago * binutils-all/readelf.r: Don't check for specific info value to
Andreas Jaeger [Tue, 19 Jun 2001 08:16:26 +0000 (08:16 +0000)]
* binutils-all/readelf.r: Don't check for specific info value to
pass testsuite on ia64 and alpha.

23 years ago2001-06-18 Philip Blundell <philb@gnu.org>
Phil Blundell [Tue, 19 Jun 2001 07:33:21 +0000 (07:33 +0000)]
2001-06-18  Philip Blundell  <philb@gnu.org>

* config/tc-arm.c (do_msr): Remove restriction on usage of
immediate operands.

23 years ago * dwarf2dbg.c (dwarf2_finish): Output file info even when no
Alan Modra [Tue, 19 Jun 2001 05:40:55 +0000 (05:40 +0000)]
* dwarf2dbg.c (dwarf2_finish): Output file info even when no
line info.

23 years ago * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
Hans-Peter Nilsson [Mon, 18 Jun 2001 22:20:57 +0000 (22:20 +0000)]
* emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
Update for API change in bfd_elf${ELFSIZE}_size_dynamic_sections.
* mpw-elfmips.c (gldelf32ebmip_before_allocation): Ditto.
* ld.h (args_type): Remove member export_dynamic.  All users
changed to use struct bfd_link_info member.

23 years ago * elflink.h (struct elf_assign_sym_version_info): Remove member
Hans-Peter Nilsson [Mon, 18 Jun 2001 22:05:10 +0000 (22:05 +0000)]
* elflink.h (struct elf_assign_sym_version_info): Remove member
export_dynamic.  All users changed to use info member.
NAME(bfd_elf,size_dynamic_sections)): Remove parameter
export_dynamic, instead use member in parameter info.
* bfd-in.h (bfd_elf32_size_dynamic_sections,
bfd_elf64_size_dynamic_sections): Update prototype.
* bfd-in2.h: Regenerate.

23 years agomerge from gcc
DJ Delorie [Mon, 18 Jun 2001 21:16:33 +0000 (21:16 +0000)]
merge from gcc

23 years ago * Makefile.am (ecriself.c, ed10velf.c, ei386moss.c): Depend on
Hans-Peter Nilsson [Mon, 18 Jun 2001 20:19:52 +0000 (20:19 +0000)]
* Makefile.am (ecriself.c, ed10velf.c, ei386moss.c): Depend on
$(srcdir)/emultempl/elf32.em, not $(srcdir)/emultempl/generic.em.
* Makefile.in: Regenerate.

23 years ago2001-06-18 H.J. Lu <hjl@gnu.org>
H.J. Lu [Mon, 18 Jun 2001 18:57:06 +0000 (18:57 +0000)]
2001-06-18  H.J. Lu  <hjl@gnu.org>

* elflink.h (elf_info_failed): Add a new field, verdefs.
(NAME(bfd_elf,size_dynamic_sections): Pass verdefs to
elf_export_symbol.
(elf_export_symbol): Check eif->verdefs to decide if a symbol
should be exported.

23 years ago2001-06-18 H.J. Lu <hjl@gnu.org>
H.J. Lu [Mon, 18 Jun 2001 17:23:52 +0000 (17:23 +0000)]
2001-06-18  H.J. Lu  <hjl@gnu.org>

* ldlang.c (init_os): Add the newline to the einfo call.
(lang_check): Likewise.
(lang_do_version_exports_section): Likewise.

23 years ago2001-06-17 H.J. Lu <hjl@gnu.org>
H.J. Lu [Sun, 17 Jun 2001 18:40:29 +0000 (18:40 +0000)]
2001-06-17  H.J. Lu <hjl@gnu.org>

* Makefile.in (gas.tar.bz2): Pass TOOL=bfd PACKAGE=gas to make.
(gas+binutils.tar.bz2): Likewise.
(binutils.tar.bz2): Pass TOOL=bfd PACKAGE=binutils to make.

23 years ago2001-06-17 H.J. Lu <hjl@gnu.org>
H.J. Lu [Sun, 17 Jun 2001 16:14:42 +0000 (16:14 +0000)]
2001-06-17  H.J. Lu  <hjl@gnu.org>

* elf32-mips.c (mips_elf_link_hash_entry): Add a new field,
readonly_reloc, to record if a relocation in the .rel.dyn
section is against a read-only section.
(mips_elf_link_hash_newfunc): Initialize the readonly_reloc
field to false.
(_bfd_mips_elf_check_relocs): Record if there is a relocation
in the .rel.dyn section against a read-only section by setting
DF_TEXTREL or readonly_reloc.
(_bfd_mips_elf_copy_indirect_symbol): Copy readonly_reloc if
it is true.
(_bfd_mips_elf_adjust_dynamic_symbol): Record DF_TEXTREL if
there is a relocation in the .rel.dyn section against a
read-only section.
(_bfd_mips_elf_size_dynamic_sections): Set DT_TEXTREL if
DF_TEXTREL is set.

23 years ago2001-06-15 Aldy Hernandez <aldyh@redhat.com>
Aldy Hernandez [Sat, 16 Jun 2001 16:00:46 +0000 (16:00 +0000)]
2001-06-15  Aldy Hernandez  <aldyh@redhat.com>

* m10300-opc.c (mn10300_opcodes): Change opcode for AM33 subc.

23 years ago2001-06-15 H.J. Lu <hjl@gnu.org>
H.J. Lu [Sat, 16 Jun 2001 03:41:45 +0000 (03:41 +0000)]
2001-06-15  H.J. Lu  <hjl@gnu.org>

* lexsup.c (parse_args); Save optind to report unrecognized
option.

23 years ago * dwarf2.h: Partial merge with gcc version.
Per Bothner [Fri, 15 Jun 2001 19:53:18 +0000 (19:53 +0000)]
* dwarf2.h:  Partial merge with gcc version.
(enum dwarf_descrim_list):  Fix typo -> dwarf_discrim_list.
(DW_LANG_Java):  Use value from dwarf 2.1 draft (also used in gcc).

23 years ago * ldlang.c (lang_check): Emit fatal error if relocatable link
Hans-Peter Nilsson [Fri, 15 Jun 2001 13:13:46 +0000 (13:13 +0000)]
* ldlang.c (lang_check): Emit fatal error if relocatable link
between different object flavours.

23 years ago * lexsup.c (parse_args) <case OPTION_EXPORT_DYNAMIC, case 'E'>:
Hans-Peter Nilsson [Fri, 15 Jun 2001 13:02:23 +0000 (13:02 +0000)]
* lexsup.c (parse_args) <case OPTION_EXPORT_DYNAMIC, case 'E'>:
Set new link_info member export_dynamic.
* ldmain.c (main): Initialize new link_info member export_dynamic.

23 years ago * bfdlink.h (struct bfd_link_info): New member export_dynamic.
Hans-Peter Nilsson [Fri, 15 Jun 2001 12:57:02 +0000 (12:57 +0000)]
* bfdlink.h (struct bfd_link_info): New member export_dynamic.

23 years agoChnage styp_flags_to_sec_flags() to a boolean function
Nick Clifton [Fri, 15 Jun 2001 09:03:14 +0000 (09:03 +0000)]
Chnage styp_flags_to_sec_flags() to a boolean function

23 years agoChnage load_symbols() to a boolean function
Nick Clifton [Fri, 15 Jun 2001 09:00:11 +0000 (09:00 +0000)]
Chnage load_symbols() to a boolean function

23 years agoIndex: opcodes/ChangeLog
Geoffrey Keating [Thu, 14 Jun 2001 20:38:42 +0000 (20:38 +0000)]
Index: opcodes/ChangeLog
2001-06-13  Geoffrey Keating  <geoffk@redhat.com>

* cgen-asm.c (cgen_parse_keyword): When looking for the
boundaries of a keyword, allow any special characters
that are actually in one of the allowed keyword.
* cgen-opc.c (cgen_keyword_add): Add any special characters
to the nonalpha_chars field.

Index: cgen/ChangeLog
2001-06-13  Geoffrey Keating  <geoffk@redhat.com>

* desc.scm (<keyword> 'gen-defn): Add extra zero into
CGEN_KEYWORD_ENTRY initializers.

Index: include/opcode/ChangeLog
2001-06-13  Geoffrey Keating  <geoffk@redhat.com>

* cgen.h (cgen_keyword): Add nonalpha_chars field.

23 years ago2001-06-13 Philip Blundell <philb@gnu.org>
Phil Blundell [Thu, 14 Jun 2001 07:58:12 +0000 (07:58 +0000)]
2001-06-13  Philip Blundell  <philb@gnu.org>

* config/tc-arm.c (thumb_shift): Improve wording of error message.
(do_t_arit): Likewise.

23 years agoHandle GDB's gdb/version.in.
Andrew Cagney [Wed, 13 Jun 2001 19:00:22 +0000 (19:00 +0000)]
Handle GDB's gdb/version.in.

23 years agoStop sh-coff port from trying to call dwarf2 debug functions
Nick Clifton [Wed, 13 Jun 2001 16:46:05 +0000 (16:46 +0000)]
Stop sh-coff port from trying to call dwarf2 debug functions

23 years ago * gas/vtable/vtable.exp (run_list_test): Don't run on sparc64.
Andreas Jaeger [Wed, 13 Jun 2001 13:42:42 +0000 (13:42 +0000)]
* gas/vtable/vtable.exp (run_list_test): Don't run on sparc64.

23 years agoFix typo in comment
Nick Clifton [Wed, 13 Jun 2001 11:29:53 +0000 (11:29 +0000)]
Fix typo in comment

23 years agoRegernate after recent change to as.texinfo
Nick Clifton [Wed, 13 Jun 2001 11:26:37 +0000 (11:26 +0000)]
Regernate after recent change to as.texinfo

23 years agoRebuild after recent change to gprof.texi
Nick Clifton [Wed, 13 Jun 2001 11:26:05 +0000 (11:26 +0000)]
Rebuild after recent change to gprof.texi

23 years agoOnly pad the tesxt section if the data section is going to follow it.
Nick Clifton [Wed, 13 Jun 2001 07:58:05 +0000 (07:58 +0000)]
Only pad the tesxt section if the data section is going to follow it.

23 years ago * config/default.exp (AS, GASP, OBJDUMP, NM, NMFLAGS, OBJCOPY,
Hans-Peter Nilsson [Wed, 13 Jun 2001 03:08:21 +0000 (03:08 +0000)]
* config/default.exp (AS, GASP, OBJDUMP, NM, NMFLAGS, OBJCOPY,
OBJCOPYFLAGS, READELF, READELFFLAGS, LD, LDFLAGS): Provide
default.

* lib/ld-lib.exp (run_dump_test): Import from gas testsuite.  Add
new options "ld", "source", "xfail", "target", "notarget" and
"error".  Support the runtest_file_p "*.exp=testname" feature.
(slurp_options, regexp_diff, file_contents, verbose_eval): Import
from gas testsuite.

23 years ago * elflink.h (elf_gc_propagate_vtable_entries): Replace FILE_ALIGN
Catherine Moore [Tue, 12 Jun 2001 17:44:38 +0000 (17:44 +0000)]
    * elflink.h (elf_gc_propagate_vtable_entries): Replace FILE_ALIGN
        with the file_align entry from elf_backend_data.
        (elf_gc_smash_unused_vtentry_relocs): Likewise.
        (elf_gc_record_vtentry): Likewise.

23 years agoCorrect setup_xfail rule.
Nick Clifton [Tue, 12 Jun 2001 16:02:13 +0000 (16:02 +0000)]
Correct setup_xfail rule.

23 years agoDocument use of comparison operators as infix operators
Nick Clifton [Tue, 12 Jun 2001 15:56:04 +0000 (15:56 +0000)]
Document use of comparison operators as infix operators

23 years agomerge from gcc
DJ Delorie [Tue, 12 Jun 2001 13:16:43 +0000 (13:16 +0000)]
merge from gcc

23 years agoAdd lgh instruction.
Nick Clifton [Tue, 12 Jun 2001 11:50:53 +0000 (11:50 +0000)]
Add lgh instruction.

23 years agoBytes stored in target order, not host order.
Nick Clifton [Tue, 12 Jun 2001 10:39:40 +0000 (10:39 +0000)]
Bytes stored in target order, not host order.

23 years agoFix m68k/mri mode problems.
Nick Clifton [Tue, 12 Jun 2001 10:35:24 +0000 (10:35 +0000)]
Fix m68k/mri mode problems.

23 years agofix test for overlflow of literal pool
Nick Clifton [Tue, 12 Jun 2001 08:27:53 +0000 (08:27 +0000)]
fix test for overlflow of literal pool

23 years ago * gas/i386/x86_64.d: Update for 2001-06-11 disassembler change.
Alan Modra [Tue, 12 Jun 2001 02:03:10 +0000 (02:03 +0000)]
* gas/i386/x86_64.d: Update for 2001-06-11 disassembler change.

23 years ago2001-06-11 H.J. Lu <hjl@gnu.org>
H.J. Lu [Mon, 11 Jun 2001 20:40:36 +0000 (20:40 +0000)]
2001-06-11  H.J. Lu  <hjl@gnu.org>

* NEWS: Updated for the new -n option for the MIPS assembler.

* config/tc-mips.c (md_show_usage): Add -n.

* doc/as.texinfo: Document the new -n option.
* doc/c-mips.texi: Likewise.
* doc/as.1: Regenerated.

23 years agoMerge insn decode tables, and generally tidy.
Alan Modra [Mon, 11 Jun 2001 13:25:07 +0000 (13:25 +0000)]
Merge insn decode tables, and generally tidy.