OSDN Git Service

pf3gnuchains/pf3gnuchains4x.git
21 years ago * frv.cpu: Add IDOC attribute.
Doug Evans [Tue, 10 Jun 2003 21:24:48 +0000 (21:24 +0000)]
* frv.cpu: Add IDOC attribute.

21 years ago * gas/mips/mips.exp: Fix typo.
Thiemo Seufer [Tue, 10 Jun 2003 19:45:24 +0000 (19:45 +0000)]
* gas/mips/mips.exp: Fix typo.
* gas/mips/elempic.d: Force o64 ABI.
* gas/mips/telempic.d: Likewise.
* ld-mips-elf/rel32-n32.d: Force big endian assembly.
* ld-mips-elf/rel32-o32.d: Likewise.
* ld-mips-elf/rel64.d: Likewise.

21 years ago * gdb/fileio.h: New file.
Corinna Vinschen [Tue, 10 Jun 2003 14:23:05 +0000 (14:23 +0000)]
* gdb/fileio.h: New file.

21 years ago * Makefile.tpl: Fix stupid pasto.
Nathanael Nerode [Tue, 10 Jun 2003 13:37:14 +0000 (13:37 +0000)]
* Makefile.tpl: Fix stupid pasto.
* Makefile.in: Regenerate.

21 years ago * gas/cfi/cfi.exp: Use here. Only run tests when ELF.
Alan Modra [Tue, 10 Jun 2003 13:31:59 +0000 (13:31 +0000)]
* gas/cfi/cfi.exp: Use here.  Only run tests when ELF.
* gas/macros/and.s: Avoid .set so we don't break mips.

21 years ago * gas/macros/and.s: Avoid .set so we don't break mips.
Alan Modra [Tue, 10 Jun 2003 13:24:33 +0000 (13:24 +0000)]
* gas/macros/and.s: Avoid .set so we don't break mips.

21 years ago * gas/macros/and.s: New.
Alan Modra [Tue, 10 Jun 2003 09:23:47 +0000 (09:23 +0000)]
* gas/macros/and.s: New.
* gas/macros/macros.exp: Assemble it.

21 years ago * scripttempl/h8300sxn.sc: New file.
Richard Sandiford [Tue, 10 Jun 2003 08:31:04 +0000 (08:31 +0000)]
* scripttempl/h8300sxn.sc: New file.

21 years agoAdd "attn", "lq" and "stq" power4 insns.
Alan Modra [Tue, 10 Jun 2003 07:44:11 +0000 (07:44 +0000)]
Add "attn", "lq" and "stq" power4 insns.

21 years agoinclude/opcode/
Richard Sandiford [Tue, 10 Jun 2003 07:33:46 +0000 (07:33 +0000)]
include/opcode/
* h8300.h (IMM4_NS, IMM8_NS): New.
(h8_opcodes): Replace IMM4 with IMM4_NS in mov.b and mov.w entries.
Likewise IMM8 for mov.w and mov.l.  Likewise IMM16U for mov.l.

gas/testsuite
* gas/h8300/h8sx_mov_imm.[sd]: New test.
* gas/h8300/h8300.exp: Run it.

21 years agoopcodes/
Richard Sandiford [Tue, 10 Jun 2003 07:27:56 +0000 (07:27 +0000)]
opcodes/
* h8300-dis.c (bfd_h8_disassemble): Don't print brackets round
rts/l and rte/l register lists.

gas/
* config/tc-h8300.c (get_rtsl_operands): Accept unbracketed register
lists.  Allow single-register ranges.

testsuite/
* gas/h8300/h8sx_rtsl.[sd]: New test.
* gas/h8300/h8300.exp: Run it.

21 years ago * gas/h8300/h8sx_disp2.[sd]: New test.
Richard Sandiford [Tue, 10 Jun 2003 07:22:22 +0000 (07:22 +0000)]
* gas/h8300/h8sx_disp2.[sd]: New test.
* gas/h8300/h8300.exp: Run it.

21 years agoFix last changelog.
Richard Sandiford [Tue, 10 Jun 2003 07:14:29 +0000 (07:14 +0000)]
Fix last changelog.

21 years agoinclude/elf/
Richard Sandiford [Tue, 10 Jun 2003 07:09:31 +0000 (07:09 +0000)]
include/elf/
* h8.h (E_H8_MACH_H8300SXN): New flag.

bfd/
* archures.c (bfd_mach_h8300sxn): New architecture.
* bfd-in2.h: Regenerate.
* cpu-h8300.c (h8300_scan): Check for 'sxn'.
(h8300sxn_info_struct): New.
(h8300sx_info_struct): Link to it.
* elf32-h8300.c (elf32_h8_mach): Add h8300sxn case.
(elf32_h8_final_write_processing): Likewise.

gas/
* config/tc-h8300.c (h8300sxnmode): New.
(md_pseudo_table): Add .h8300sxn entry.  Sync others with FSF version.

ld/
* configure.tgt (h8300*): Add h8300sxn emulations.
* Makefile.am (ALL_EMULATIONS): Add eh8300sxn.o and eh8300sxnelf.o.
(eh8300sxn.c, eh8300sxnelf.c): New rules.
* Makefile.in: Regenerate.
* emulparams/h8300sxnelf.sh, emulparams/h8300sxn.sh: New files.

21 years ago2003-06-09 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Tue, 10 Jun 2003 06:46:34 +0000 (06:46 +0000)]
2003-06-09  H.J. Lu <hongjiu.lu@intel.com>

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

* config/tc-i386.c (optimize_align_code): New.
(md_shortopts): Add 'n'.
(md_parse_option): Handle 'n'.
(md_show_usage): Add '-n'.

* config/tc-i386.h (optimize_align_code): Declared.
(md_do_align): Optimize code alignment only if optimize_align_code
is not 0.

* doc/as.texinfo: Add the new -n option.

* doc/c-i386.texi: Document the new -n option.

21 years ago * ld-elfvsb/elfvsb.exp: Run for powerpc64 too.
Alan Modra [Tue, 10 Jun 2003 04:36:01 +0000 (04:36 +0000)]
* ld-elfvsb/elfvsb.exp: Run for powerpc64 too.
* ld-powerpc/tls.t: Update.
* ld-powerpc/tlsexe.d: Update.
* ld-powerpc/tlsexe.r: Update.
* ld-powerpc/tlsexetoc.d: Update.
* ld-powerpc/tlsexetoc.r: Update.
* ld-powerpc/tlsexetoc.t: Update.
* ld-powerpc/tlsso.d: Update.
* ld-powerpc/tlsso.g: Update.
* ld-powerpc/tlsso.r: Update.
* ld-powerpc/tlsso.t: Update.
* ld-powerpc/tlstocso.d: Update.
* ld-powerpc/tlstocso.g: Update.
* ld-powerpc/tlstocso.r: Update.
* ld-powerpc/tlstocso.t: Update.

21 years ago * emulparams/elf64ppc.sh (EXECUTABLE_SYMBOLS, OTHER_BSS_END_SYMBOLS,
Alan Modra [Tue, 10 Jun 2003 04:35:28 +0000 (04:35 +0000)]
* emulparams/elf64ppc.sh (EXECUTABLE_SYMBOLS, OTHER_BSS_END_SYMBOLS,
CTOR_START, CTOR_END, DTOR_START, DTOR_END): Don't define.

21 years ago * Makefile.tpl: Remove bogus conditional.
Nathanael Nerode [Tue, 10 Jun 2003 02:11:57 +0000 (02:11 +0000)]
* Makefile.tpl: Remove bogus conditional.
* Makefile.in: Regenerate.

21 years agodaily update
Alan Modra [Tue, 10 Jun 2003 00:00:05 +0000 (00:00 +0000)]
daily update

21 years agodaily update
Alan Modra [Mon, 9 Jun 2003 00:00:05 +0000 (00:00 +0000)]
daily update

21 years ago * emultempl/ppc64elf.em (emit_stub_syms, toc_section): New vars.
Alan Modra [Sun, 8 Jun 2003 14:07:34 +0000 (14:07 +0000)]
* emultempl/ppc64elf.em (emit_stub_syms, toc_section): New vars.
(build_toc_list): New function.
(gld${EMULATION_NAME}_finish): Call build_toc_list and
ppc64_elf_reinit_toc.  Adjust ppc64_elf_build_stubs call.
(OPTION_STUBSYMS): Define.
(PARSE_AND_LIST_LONGOPTS): Add emit-stub-syms.
(PARSE_AND_LIST_OPTIONS): Document.
(PARSE_AND_LIST_ARGS_CASES): Handle.

21 years ago * elf64-ppc.c: Move TARGET_LITTLE_SYM and other macros used by
Alan Modra [Sun, 8 Jun 2003 14:06:38 +0000 (14:06 +0000)]
* elf64-ppc.c: Move TARGET_LITTLE_SYM and other macros used by
elfxx-target.h so that we can use elf_backend_got_header_size.
(ELF_MACHINE_ALT1, ELF_MACHINE_ALT2): Delete.
(GLINK_CALL_STUB_SIZE): Modify.  Define new glink call stub and
associated macros.
(ppc64_elf_howto_raw <GOT_TPREL16_DS, GOT_TPREL16_LO_DS>): Correct
dst_mask.
(enum ppc_stub_type): Add ppc_stub_long_branch_r2off and
ppc_stub_plt_branch_r2off.
(struct ppc_stub_hash_entry): Reorganize.
(struct ppc_link_hash_table): Add no_multi_toc, multi_toc_needed,
toc_curr, toc_off and emit_stub_syms.
(ppc64_elf_link_hash_table_create): Init them.
(ppc_stub_name): Correct string size.
(ppc64_elf_check_relocs): Set has_gp_reloc on GOT and TOC relocs.
(ppc64_elf_size_dynamic_sections): Set no_multi_toc if GOT entries
used.
(ppc_type_of_stub): Tweak root.type test.
(build_plt_stub): Remove glink code.  Adjust for insn macro changes.
(ppc_size_one_stub): Handle ppc_stub_long_branch_r2off and
ppc_stub_plt_branch_r2off.
(ppc_build_one_stub): Likewise.  Fix var shadowing.  Correct addis,addi
range test.  Use toc_off to calculte r2 values.  Handle emit_stub_syms.
(ppc64_elf_setup_section_lists): Remove htab creator flavour test.
Initialize elf_gp and toc_curr.
(ppc64_elf_next_toc_section, ppc64_elf_reinit_toc): New functions.
(ppc64_elf_next_input_section): Set toc_off.
(group_sections): Ensure groups have the same TOC.
(ppc64_elf_size_stubs): Check whether we need a TOC adjusting stub.
(ppc64_elf_build_stubs): Add emit_stub_syms param, and stash in htab.
Build new glink stub.
(ppc64_elf_relocate_section): Handle multiple TOCs.  Fix comments.
(ppc64_elf_finish_dynamic_sections): Adjust DT_PPC64_GLINK.
* elf64-ppc.h (ppc64_elf_build_stubs): Update prototype.
(ppc64_elf_next_toc_section, ppc64_elf_reinit_toc): Declare.
* section.c (struct sec): Rename flag12 to has_gp_reloc.
(STD_SECTION): Update.
* ecoff.c (bfd_debug_section): Update comment.
* bfd-in2.h: Regenerate.

21 years ago * doc/as.texinfo: Document .cfi_rel_offset.
Richard Henderson [Sun, 8 Jun 2003 10:06:17 +0000 (10:06 +0000)]
    * doc/as.texinfo: Document .cfi_rel_offset.

21 years ago * dw2gencfi.c (struct cfa_save_data, cfa_save_stack): New.
Richard Henderson [Sun, 8 Jun 2003 03:59:44 +0000 (03:59 +0000)]
    * dw2gencfi.c (struct cfa_save_data, cfa_save_stack): New.
        (cfi_add_CFA_offset): Detect invalid offsets.
        (cfi_add_CFA_remember_state): Save cur_cfa_offset.
        (cfi_add_CFA_restore_state): Restore it.
        (CFI_rel_offset): New.
        (cfi_pseudo_table): Add it.
        (dot_cfi): Handle it.

        * gas/cfi/cfi-common-1.d, gas/cfi/cfi-common-1.s: New.
        * gas/cfi/cfi-common-2.d, gas/cfi/cfi-common-2.s: New.
        * gas/cfi/cfi-diag-1.d, gas/cfi/cfi-diag-1.s: New.
        * gas/cfi/cfi.exp: Run them.

21 years agodaily update
Alan Modra [Sun, 8 Jun 2003 00:00:06 +0000 (00:00 +0000)]
daily update

21 years ago2003-06-07 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Sat, 7 Jun 2003 14:53:59 +0000 (14:53 +0000)]
2003-06-07  H.J. Lu <hongjiu.lu@intel.com>

* app.c (do_scrub_chars): Add states 14 and 15 to handle
predicate for ia64.

21 years agodaily update
Alan Modra [Sat, 7 Jun 2003 00:00:05 +0000 (00:00 +0000)]
daily update

21 years ago2003-06-06 Andrew Cagney <cagney@redhat.com>
Andrew Cagney [Fri, 6 Jun 2003 21:49:30 +0000 (21:49 +0000)]
2003-06-06  Andrew Cagney  <cagney@redhat.com>

Contributed by Red Hat.
* iq2000.cpu: New file.  Written by Ben Elliston, Jeff Johnston,
Stan Cox, and Frank Ch. Eigler.
* iq2000.opc: New file.  Written by Ben Elliston, Frank
Ch. Eigler, Chris Moller, Jeff Johnston, and Stan Cox.
* iq2000m.cpu: New file.  Written by Jeff Johnston.
* iq10.cpu: New file.  Written by Jeff Johnston.

21 years ago.
Roland McGrath [Fri, 6 Jun 2003 06:28:50 +0000 (06:28 +0000)]
.

21 years ago2003-06-05 Roland McGrath <roland@redhat.com>
Roland McGrath [Fri, 6 Jun 2003 06:28:42 +0000 (06:28 +0000)]
2003-06-05  Roland McGrath  <roland@redhat.com>

* emultempl/elf32.em (gld${EMULATION_NAME}_list_options): Remove
extra \t in -z noexecstack line.

21 years ago * elfcode.h (elf_slurp_reloc_table_from_section): Don't dereference
Daniel Jacobowitz [Fri, 6 Jun 2003 02:12:04 +0000 (02:12 +0000)]
* elfcode.h (elf_slurp_reloc_table_from_section): Don't dereference
NULL function pointers.

21 years agodaily update
Alan Modra [Fri, 6 Jun 2003 00:00:05 +0000 (00:00 +0000)]
daily update

21 years ago2003-06-05 Michael Snyder <msnyder@redhat.com>
Michael Snyder [Thu, 5 Jun 2003 18:53:35 +0000 (18:53 +0000)]
2003-06-05  Michael Snyder  <msnyder@redhat.com>

* config/tc-h8sx.c (get_specific): Distinguish h8h from h8s ops.
(build_bytes): Ditto.

2003-06-05  Richard Sandiford  <rsandifo@redhat.com>

* config/tc-h8sx.c (DMODE): Remove.
(colonmod24): Don't choose a default if the operand is a 16-bit
constant integer.
(fix_operand_size): New function.
(md_assemble): Use it to choose between @(d:2, ERn) and @(d:16,ERn).
Adjust @(d:2,ERn) operands before choosing the specific opcodes.

21 years ago2003-06-05 Michael Snyder <msnyder@redhat.com>
Michael Snyder [Thu, 5 Jun 2003 18:52:00 +0000 (18:52 +0000)]
2003-06-05  Michael Snyder  <msnyder@redhat.com>

* gas/h8300/t01_mov.s: New file, tests mov instructions.
* gas/h8300/t02_mova.s: New file, tests mova instructions.
* gas/h8300/t03_add.s: New file, tests add instructions.
* gas/h8300/t04_sub.s: New file, tests sub instructions.
* gas/h8300/t05_cmp.s: New file, tests cmp instructions.
* gas/h8300/t06_ari2.s: New file, tests arithmetic instructions.
* gas/h8300/t07_ari3.s: New file, tests arithmetic instructions.
* gas/h8300/t08_or.s: New file, tests or instructions.
* gas/h8300/t09_xor.s: New file, tests xor instructions.
* gas/h8300/t10_and.s: New file, tests and instructions.
* gas/h8300/t11_logs.s: New file, tests logical instructions.
* gas/h8300/t12_bit.s: New file, tests bit instructions.
* gas/h8300/t13_otr.s.s: New file, tests misc. instructions.
* gas/h8300/t01_mov.exp: New file.
* gas/h8300/t02_mova.exp: New file.
* gas/h8300/t03_add.exp: New file.
* gas/h8300/t04_sub.exp: New file.
* gas/h8300/t05_cmp.exp: New file.
* gas/h8300/t06_ari2.exp: New file.
* gas/h8300/t07_ari3.exp: New file.
* gas/h8300/t08_or.exp: New file.
* gas/h8300/t09_xor.exp: New file.
* gas/h8300/t10_and.exp: New file.
* gas/h8300/t11_logs.exp: New file.
* gas/h8300/t12_bit.exp: New file.
* gas/h8300/t13_otr.exp: New file.

21 years ago2003-06-03 Michael Snyder <msnyder@redhat.com>
Michael Snyder [Thu, 5 Jun 2003 18:47:12 +0000 (18:47 +0000)]
2003-06-03  Michael Snyder  <msnyder@redhat.com>

* h8sx.h (enum h8_model): Add AV_H8S to distinguish from H8H.
(ldc): Split ccr ops from exr ops (which are only available
on H8S or H8SX).
(stc): Ditto.
(andc, orc, xorc): Ditto.
(ldmac, stmac, clrmac, mac): Change access to AV_H8S.

21 years agomerge from gcc
DJ Delorie [Thu, 5 Jun 2003 17:03:32 +0000 (17:03 +0000)]
merge from gcc

21 years agoAdd code to handle even-numbered only register operands
Nick Clifton [Thu, 5 Jun 2003 16:04:20 +0000 (16:04 +0000)]
Add code to handle even-numbered only register operands

21 years ago * simple.c (bfd_simple_get_relocated_section_contents): Call
Daniel Jacobowitz [Thu, 5 Jun 2003 14:07:52 +0000 (14:07 +0000)]
* simple.c (bfd_simple_get_relocated_section_contents): Call
_bfd_generic_link_add_symbols instead of bfd_link_add_symbols.

21 years ago2003-06-05 Michal Ludvig <mludvig@suse.cz>
Michal Ludvig [Thu, 5 Jun 2003 09:23:47 +0000 (09:23 +0000)]
2003-06-05  Michal Ludvig  <mludvig@suse.cz>

* dw2gencfi.c (cfi_add_CFA_insn, cfi_add_CFA_insn_reg)
(cfi_add_CFA_insn_reg_reg, cfi_add_CFA_insn_reg_offset): New.
(cfi_add_CFA_offset, cfi_add_CFA_def_cfa)
(cfi_add_CFA_register, cfi_add_CFA_def_cfa_register)
(cfi_add_CFA_def_cfa_offset): Use cfi_add_CFA_insn_*().
(cfi_add_CFA_restore, cfi_add_CFA_undefined)
(cfi_add_CFA_same_value, cfi_add_CFA_remember_state)
(cfi_add_CFA_restore_state, cfi_add_CFA_nop): New.
(cfi_pseudo_table): New directives .cfi_return_column,
.cfi_restore, .cfi_undefined, .cfi_same_value,
.cfi_remember_state, .cfi_restore_state, .cfi_nop.
(dot_cfi, output_cfi_insn): Handle new directives.
* dw2gencfi.h (cfi_add_CFA_restore, cfi_add_CFA_undefined)
(cfi_add_CFA_same_value, cfi_add_CFA_remember_state)
(cfi_add_CFA_restore_state, cfi_add_CFA_nop): New prototypes.

21 years ago * dw2gencfi.c (output_cfi_insn): Fix typo for negative offsets.
Richard Henderson [Thu, 5 Jun 2003 06:53:40 +0000 (06:53 +0000)]
    * dw2gencfi.c (output_cfi_insn): Fix typo for negative offsets.

21 years ago * dw2gencfi.c (cfi_finish): Set .eh_frame read-only.
Richard Henderson [Thu, 5 Jun 2003 05:25:38 +0000 (05:25 +0000)]
    * dw2gencfi.c (cfi_finish): Set .eh_frame read-only.

21 years ago * config/tc-alpha.c (s_alpha_usepv): New.
Richard Henderson [Thu, 5 Jun 2003 03:27:03 +0000 (03:27 +0000)]
    * config/tc-alpha.c (s_alpha_usepv): New.
        (md_pseudo_table): Add it.
        (alpha_cfi_frame_initial_instructions): New.
        * config/tc-alpha.h (TARGET_USE_CFIPOP): New.
        (tc_cfi_frame_initial_instructions): New.
        * doc/c-alpha.texi: Document .usepv.

        * gas/alpha/elf-usepv-1.[sd]: New.
        * gas/alpha/elf-usepv-2.[sd]: New.
        * gas/alpha/alpha.exp: Run them.
        * gas/cfi/cfi-alpha-3.[sd]: New.
        * gas/cfi/cfi.exp: Run it.

21 years ago * as.c (show_usage): Document --execstack and --noexecstack.
Jakub Jelinek [Wed, 4 Jun 2003 16:54:45 +0000 (16:54 +0000)]
* as.c (show_usage): Document --execstack and --noexecstack.
(parse_args): Add --execstack and --noexecstack.
(main): Create .note.GNU-stack section if --execstack or
--noexecstack was given on comand line, set its SHF_EXECINSTR bit.
* as.h (flag_execstack, flag_noexecstack): New.

21 years agoMoved the ticoff0/1 swaptables and coff0/1 bad format hooks to coffcode.h
Svein Seldal [Wed, 4 Jun 2003 11:38:30 +0000 (11:38 +0000)]
Moved the ticoff0/1 swaptables and coff0/1 bad format hooks to coffcode.h

21 years agoAltered the CREATE_xxx_COFF_TARGET_VEC macro arguments -- changelog dropped out
Svein Seldal [Wed, 4 Jun 2003 11:15:09 +0000 (11:15 +0000)]
Altered the CREATE_xxx_COFF_TARGET_VEC macro arguments -- changelog dropped out

21 years agoAltered the CREATE_xxx_COFF_TARGET_VEC macro arguments
Svein Seldal [Wed, 4 Jun 2003 10:47:33 +0000 (10:47 +0000)]
Altered the CREATE_xxx_COFF_TARGET_VEC macro arguments

21 years agoFixed initialization bug
Svein Seldal [Wed, 4 Jun 2003 10:11:02 +0000 (10:11 +0000)]
Fixed initialization bug

21 years ago2003-06-03 Chris Demetriou <cgd@broadcom.com>
Chris Demetriou [Wed, 4 Jun 2003 06:38:38 +0000 (06:38 +0000)]
2003-06-03  Chris Demetriou  <cgd@broadcom.com>

        * config/tc-mips.c: (OPTION_ARCH_BASE, OPTION_ASE_BASE)
        (OPTION_COMPAT_ARCH_BASE, OPTION_FIX_BASE)
        (OPTION_MISC_BASE): New defines.
        (OPTION_BREAK, OPTION_CONSTRUCT_FLOATS, OPTION_EB, OPTION_EL)
        (OPTION_ELF_BASE, OPTION_FIX_VR4122, OPTION_FP32, OPTION_FP64)
        (OPTION_GP32, OPTION_GP64, OPTION_M3900, OPTION_M4010, OPTION_M4100)
        (OPTION_M4650, OPTION_M7000_HILO_FIX, OPTION_MARCH, OPTION_MDMX)
        (OPTION_MEMBEDDED_PIC, OPTION_MIPS1, OPTION_MIPS16, OPTION_MIPS2)
        (OPTION_MIPS3, OPTION_MIPS32, OPTION_MIPS32R2, OPTION_MIPS3D)
        (OPTION_MIPS4, OPTION_MIPS5, OPTION_MIPS64)
        (OPTION_MNO_7000_HILO_FIX, OPTION_MTUNE, OPTION_NO_CONSTRUCT_FLOATS)
        (OPTION_NO_FIX_VR4122, OPTION_NO_M3900, OPTION_NO_M4010)
        (OPTION_NO_M4100, OPTION_NO_M4650, OPTION_NO_MDMX, OPTION_NO_MIPS16)
        (OPTION_NO_MIPS3D, OPTION_NO_RELAX_BRANCH, OPTION_RELAX_BRANCH)
        (OPTION_TRAP): Redefine in terms of new defines.
        (md_longopts): Reorder entries.

21 years agobinutils/
Jakub Jelinek [Tue, 3 Jun 2003 22:27:24 +0000 (22:27 +0000)]
binutils/
* readelf.c (get_segment_type): Handle PT_GNU_STACK.
bfd/
* elf.c (_bfd_elf_print_private_bfd_data): Handle PT_GNU_STACK.
(bfd_section_from_phdr): Likewise.
(map_sections_to_segments): Create PT_GNU_STACK segment header.
(get_program_header_size): Count with PT_GNU_STACK.
* elf-bfd.h (struct elf_obj_tdata): Add stack_flags.
* elflink.h (bfd_elfNN_size_dynamic_sections): Set stack_flags.
include/
* bfdlink.h (struct bfd_link_info): Add execstack and noexecstack.
* elf/common.h (PT_GNU_STACK): Define.
ld/
* ldgram.y (phdr_type): Grok PT_GNU_STACK.
* emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Add
-z execstack and -z noexecstack.
(gld${EMULATION_NAME}_list_options): Likewise.
* scripttempl/elf.sc: If not -r, discard .note.GNU-stack section.

21 years ago2003-06-03 Michael Snyder <msnyder@redhat.com>
Michael Snyder [Tue, 3 Jun 2003 21:43:52 +0000 (21:43 +0000)]
2003-06-03  Michael Snyder  <msnyder@redhat.com>
        and Bernd Schmidt   <bernds@redhat.com>
and Alexandre Oliva <aoliva@redhat.com>
* Makefile.am: Add new emulations for h8300sx.
* Makefile.in: Regenerate.
* configure.tgt: Add new emulations.
* emulparams/h8300sx.sh: New emulation.
* emulparams/h8300sxelf.sh: Ditto.
* scripttempl/h8300sx.sc: Ditto.

21 years ago2003-06-03 Michael Snyder <msnyder@redhat.com>
Michael Snyder [Tue, 3 Jun 2003 21:32:52 +0000 (21:32 +0000)]
2003-06-03  Michael Snyder  <msnyder@redhat.com>
and Bernd Schmidt   <bernds@redhat.com>
and Alexandre Oliva <aoliva@redhat.com>
* disassemble.c (disassembler): Add support for h8300sx.
* h8300-dis.c: Ditto.

21 years ago2003-05-14 Michael Snyder <msnyder@redhat.com>
Michael Snyder [Tue, 3 Jun 2003 21:29:08 +0000 (21:29 +0000)]
2003-05-14  Michael Snyder  <msnyder@redhat.com>
From Bernd Schmidt  <bernds@redhat.com>
and Michael Snyder  <msnyder@redhat.com>
        and Alexandre Oliva <aoliva@redhat.com>
* config/tc-h8300.c: Add insns and addressing modes for h8300sx.
* config/tc-h8300.h: Ditto.

21 years ago2003-06-03 Michael Snyder <msnyder@redhat.com>
Michael Snyder [Tue, 3 Jun 2003 21:23:21 +0000 (21:23 +0000)]
2003-06-03  Michael Snyder  <msnyder@redhat.com>
and Bernd Schmidt   <bernds@redhat.com>
and Alexandre Oliva <aoliva@redhat.com>
* h8300.h: Add support for h8300sx instruction set.

21 years ago * Makefile.tpl: Make 'recursive targets' using autogen rather
Nathanael Nerode [Tue, 3 Jun 2003 20:44:31 +0000 (20:44 +0000)]
* Makefile.tpl: Make 'recursive targets' using autogen rather
than shell loop.  Remove duplicate 'clean' targets and false
comments.
* Makefile.def: Add systematic dependencies to 'recursive' targets.
Add systematic method of specifying missing targets in subdirs.
Add copyright boilerplate.
* Makefile.in: Regenerate.
* configure.in: Add 'recursive targets' to maybe list.
* configure: Regenerate.

21 years agoasprintf.c: Change comment to note that -1 is returned upon error.
Nick Clifton [Tue, 3 Jun 2003 18:17:29 +0000 (18:17 +0000)]
asprintf.c: Change comment to note that -1 is returned upon error.
vasprintf.c: Likewise. (vasprintf): Return -1 upon error.
functions.texi: Document changes to asprintf and vasprintf.

21 years agobfd/
H.J. Lu [Tue, 3 Jun 2003 18:15:05 +0000 (18:15 +0000)]
bfd/

2003-06-03  H.J. Lu <hongjiu.lu@intel.com>

* elflink.h (elf_link_input_bfd): Call linker error_handler
for discarded definitions.

include/

2003-06-03  H.J. Lu <hongjiu.lu@intel.com>

* bfdlink.h (LD_DEFINITION_IN_DISCARDED_SECTION): New.

ld/

2003-06-03  H.J. Lu <hongjiu.lu@intel.com>

* ldmisc.c: Include "bfdlink.h".
(error_handler): Handle LD_DEFINITION_IN_DISCARDED_SECTION
and -LD_DEFINITION_IN_DISCARDED_SECTION.

* Makefile.am: Rebuild dependency.
* Makefile.in: Regenerated.

ld/testsuite/

2003-06-03  H.J. Lu <hongjiu.lu@intel.com>

* ld-discard/extern.d: Updated.
* ld-discard/start.d: Likewise.
* ld-discard/static.d: Likewise.

21 years agoReturn 'n' if section flags are SEC_HAS_CONTENTS && SEC_READONLY.
Nick Clifton [Tue, 3 Jun 2003 17:45:49 +0000 (17:45 +0000)]
Return 'n' if section flags are SEC_HAS_CONTENTS && SEC_READONLY.

21 years agoFRV: Use a signed 6-bit immediate value not unsigned for mdrotli insn.
Nick Clifton [Tue, 3 Jun 2003 17:15:25 +0000 (17:15 +0000)]
FRV: Use a signed 6-bit immediate value not unsigned for mdrotli insn.
Use maintainer mode to regenerate ports.

21 years ago * Makefile.tpl: Rename [+target+] to [+make_target+].
Nathanael Nerode [Tue, 3 Jun 2003 16:36:52 +0000 (16:36 +0000)]
* Makefile.tpl: Rename [+target+] to [+make_target+].
* Makefile.def: Rename 'target' to 'make_target'.

21 years agoAdd pc-relative 32-bit reloc to v850 port. Fixes ld-elf/merge test failure.
Nick Clifton [Tue, 3 Jun 2003 16:24:06 +0000 (16:24 +0000)]
Add pc-relative 32-bit reloc to v850 port.  Fixes ld-elf/merge test failure.

21 years ago2003-06-03 Andrew Cagney <cagney@redhat.com>
Andrew Cagney [Tue, 3 Jun 2003 15:41:12 +0000 (15:41 +0000)]
2003-06-03  Andrew Cagney  <cagney@redhat.com>

Contributed by Red Hat.
* frv.cpu: New file.  Written by Dave Brolley, Catherine Moore,
and Eric Christopher.
* frv.opc: New file.  Written by Catherine Moore, and Dave
Brolley.
* simplify.inc: New file.  Written by Doug Evans.

21 years ago2003-06-03 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Tue, 3 Jun 2003 15:28:36 +0000 (15:28 +0000)]
2003-06-03  H.J. Lu <hongjiu.lu@intel.com>

* ld-elfcomm/elfcomm.exp: Mark tests untested if compiler is
not available.

21 years ago * emulparams/shlelf_linux.sh (GENERATE_PIE_SCRIPT): Set to yes.
Kaz Kojima [Tue, 3 Jun 2003 04:51:49 +0000 (04:51 +0000)]
* emulparams/shlelf_linux.sh (GENERATE_PIE_SCRIPT): Set to yes.
* emulparams/shlelf32_linux.sh (GENERATE_PIE_SCRIPT): Likewize.

21 years ago * elf32-sh.c (sh_elf_size_dynamic_sections): Create .interp section
Kaz Kojima [Tue, 3 Jun 2003 04:50:20 +0000 (04:50 +0000)]
* elf32-sh.c (sh_elf_size_dynamic_sections): Create .interp section
and DT_DEBUG dynamic tag even for position independent executables.
* elf64-sh64.c (sh64_elf64_size_dynamic_sections): Likewize.

21 years agoReformat.
H.J. Lu [Mon, 2 Jun 2003 23:11:43 +0000 (23:11 +0000)]
Reformat.

21 years ago * read.c (emit_expr): Set dot_value.
Alan Modra [Mon, 2 Jun 2003 22:48:59 +0000 (22:48 +0000)]
* read.c (emit_expr): Set dot_value.
* dw2gencfi.c (output_fde): Remove pcrel reloc hack.

21 years ago * config.bfd: Move obsolete entries out of the range of the
Daniel Jacobowitz [Mon, 2 Jun 2003 19:25:51 +0000 (19:25 +0000)]
* config.bfd: Move obsolete entries out of the range of the
targmatch sed script.

21 years ago * config.bfd (mips*-dec-bsd*, mips*-*-pe*): Mark as obsolete.
Daniel Jacobowitz [Mon, 2 Jun 2003 18:59:49 +0000 (18:59 +0000)]
* config.bfd (mips*-dec-bsd*, mips*-*-pe*): Mark as obsolete.

21 years ago * macro.c (sub_actual): Don't lose string if it turns out that
Alan Modra [Mon, 2 Jun 2003 15:03:20 +0000 (15:03 +0000)]
* macro.c (sub_actual): Don't lose string if it turns out that
&string wasn't an arg.

21 years ago* objcopy.c (redefine_list_append): Add an argument that
Jason Thorpe [Mon, 2 Jun 2003 14:45:13 +0000 (14:45 +0000)]
* objcopy.c (redefine_list_append): Add an argument that
indicates the context from which this function is being
called.  Change all callers.
(copy_options): Add a new option, --redefine-syms.
(copy_usage): Document new option.
(copy_main): Handle the --redefine-syms option.
* doc/binutils.text (objcopy): Document new option.

21 years agoAdd new test for cygwin target: building an executable with an export table.
Nick Clifton [Mon, 2 Jun 2003 09:11:01 +0000 (09:11 +0000)]
Add new test for cygwin target: building an executable with an export table.

21 years agoScan table pe_dll->exports, which is sorted alphabetically, instead of
Nick Clifton [Mon, 2 Jun 2003 08:43:37 +0000 (08:43 +0000)]
Scan table pe_dll->exports, which is sorted alphabetically, instead of
exported_symbols, which is sorted by ordinal.

21 years agodaily update
Alan Modra [Mon, 2 Jun 2003 00:00:05 +0000 (00:00 +0000)]
daily update

21 years agodaily update
Alan Modra [Sun, 1 Jun 2003 00:00:05 +0000 (00:00 +0000)]
daily update

21 years ago * dw2gencfi.c (output_fde): Use fix_new to emit pc-relative reloc.
Richard Henderson [Sat, 31 May 2003 19:36:45 +0000 (19:36 +0000)]
    * dw2gencfi.c (output_fde): Use fix_new to emit pc-relative reloc.
        (cfi_finish): Set flag_traditional_format around .eh_frame data.

        * gas/alpha/elf-reloc-8.d: Correct .eh_frame relocs.
        * gas/cfi/cfi-alpha-2.d: New.
        * gas/cfi/cfi-alpha-2.s: New.
        * gas/cfi/cfi.exp: Run it.

21 years ago * readelf.c (byte_get_signed): New.
Richard Henderson [Sat, 31 May 2003 19:29:19 +0000 (19:29 +0000)]
    * readelf.c (byte_get_signed): New.
        (get_encoded_value): New.
        (display_debug_frames): Use it.  Always pre-process opcodes.

21 years ago * elf32-ppc.c (allocate_dynrelocs): Use single slot for first 8192
Jakub Jelinek [Sat, 31 May 2003 07:55:10 +0000 (07:55 +0000)]
* elf32-ppc.c (allocate_dynrelocs): Use single slot for first 8192
plt entries, not just 8191.

21 years agodaily update
Alan Modra [Sat, 31 May 2003 00:57:55 +0000 (00:57 +0000)]
daily update

21 years ago * elfxx-mips.c (_bfd_mips_elf_discard_info): Correct loop index.
Daniel Jacobowitz [Fri, 30 May 2003 19:13:36 +0000 (19:13 +0000)]
* elfxx-mips.c (_bfd_mips_elf_discard_info): Correct loop index.
Reported by Ken Faiczak <kfaiczak@SANDVINE.com>.

21 years agobfd/
Jakub Jelinek [Fri, 30 May 2003 15:50:12 +0000 (15:50 +0000)]
bfd/
* elflink.h (elf_link_add_object_symbols): Use !info->executable
instead of info->shared where appropriate.
(bfd_elfNN_size_dynamic_sections, elf_link_output_extsym): Likewise.
* elflink.c (_bfd_elf_create_got_section): Likewise.
(_bfd_elf_link_create_dynamic_sections): Likewise.
(_bfd_elf_link_assign_sym_version): Likewise.
* elf32-i386.c (elf_i386_size_dynamic_sections): Create .interp section
and DT_DEBUG dynamic tag even for position independent executables.
* elf32-ppc.c (ppc_elf_size_dynamic_sections): Likewise.
* elf32-s390.c (elf_s390_size_dynamic_sections: Likewise.
* elf64-ppc.c (ppc64_elf_size_dynamic_sections: Likewise.
* elf64-s390.c (elf_s390_size_dynamic_sections: Likewise.
* elf64-x86-64.c (elf64_x86_64_size_dynamic_sections: Likewise.
* elfxx-ia64.c (elfNN_ia64_size_dynamic_sections: Likewise.
* elf32-sparc.c (elf32_sparc_size_dynamic_sections: Likewise.
* elf64-alpha.c (elf64_alpha_size_dynamic_sections: Likewise.
* elf64-sparc.c (sparc64_elf_size_dynamic_sections: Likewise.
include/
* bfdlink.h (struct bfd_link_info): Add pie and executable
bits.
ld/
* lexsup.c (OPTION_PIE): Define.
(ld_options): Add -pie and --pic-executable options.
(parse_args): Handle OPTION_PIE.
* ldmain.c (main): Initialize link_info.pie and
link_info.executable.
* genscripts.sh: Generate PIE scripts.
* ld.texinfo: Document -pie and --pic-executable options.
* emultempl/elf32.em (gld${EMULATION_NAME}_after_open):
(gld${EMULATION_NAME}_place_orphan): Likewise.
(gld${EMULATION_NAME}_get_script): Include PIE scripts.
* scripttempl/elf.sc: In PIE scripts set . the same way as in
shared scripts.
* emulparams/elf_i386.sh (GENERATE_PIE_SCRIPT): Set to yes.
* emulparams/elf64_ia64.sh (GENERATE_PIE_SCRIPT): Likewise.
* emulparams/elf32ppc.sh (GENERATE_PIE_SCRIPT): Likewise.
* emulparams/elf64ppc.sh (GENERATE_PIE_SCRIPT): Likewise.
* emulparams/elf_x86_64.sh (GENERATE_PIE_SCRIPT): Likewise.
* emulparams/elf_s390.sh (GENERATE_PIE_SCRIPT): Likewise.
* emulparams/elf32_sparc.sh (GENERATE_PIE_SCRIPT): Likewise.
* emulparams/elf64_sparc.sh (GENERATE_PIE_SCRIPT): Likewise.
* emulparams/elf64alpha.sh (GENERATE_PIE_SCRIPT): Likewise.
* emulparams/elf64_s390.sh (GENERATE_PIE_SCRIPT): Likewise.
* emulparams/elf_i386.sh (GENERATE_PIE_SCRIPT): Likewise.

21 years agold/
H.J. Lu [Fri, 30 May 2003 13:23:25 +0000 (13:23 +0000)]
ld/

2003-05-30  H.J. Lu <hongjiu.lu@intel.com>

* genscripts.sh: Create tmpdir/libpath.exp.

ld/testsuite/

2003-05-30  H.J. Lu <hongjiu.lu@intel.com>

* config/default.exp: Load tmpdir/libpath.exp.
(gcc_ld_flag): Set from $libpath.

21 years ago(arm_elf_before_allocation): Replace ASSERT with a test for a NULL
Nick Clifton [Fri, 30 May 2003 08:19:30 +0000 (08:19 +0000)]
(arm_elf_before_allocation): Replace ASSERT with a test for a NULL
bfd_for_interworking.

21 years agoUpdate URL
Nick Clifton [Fri, 30 May 2003 07:30:26 +0000 (07:30 +0000)]
Update URL

21 years ago * config/tc-alpha.c (alpha_cur_ent_sym): Remove.
Richard Henderson [Fri, 30 May 2003 03:01:12 +0000 (03:01 +0000)]
    * config/tc-alpha.c (alpha_cur_ent_sym): Remove.
        (all_frame_data, plast_frame_data, cur_frame_data): New.
        (s_alpha_ent): Record data for dwarf2 cfi.
        (s_alpha_end, s_alpha_mask, s_alpha_frame, s_alpha_prologue): Likewise.[
        (alpha_elf_md_end): Emit dwarf2 cfi for ecoff unwind directives.
        * config/tc-alpha.h (md_end): New.
        (DWARF2_DEFAULT_RETURN_COLUMN): New.
        (DWARF2_CIE_DATA_ALIGNMENT): New.

        * gas/alpha/elf-reloc-8.d: Add .eh_frame relocs.
        * gas/cfi/cfi-alpha-1.d: New.
        * gas/cfi/cfi-alpha-1.s: New.
        * gas/cfi/cfi.exp: Run it.

21 years agodaily update
Alan Modra [Fri, 30 May 2003 00:00:04 +0000 (00:00 +0000)]
daily update

21 years ago * elf.c (elfcore_grok_nto_status): Only set lwpid for the active or
Alan Modra [Thu, 29 May 2003 23:50:04 +0000 (23:50 +0000)]
* elf.c (elfcore_grok_nto_status): Only set lwpid for the active or
signalled thread.
(elfcore_grok_nto_gregs): Only make .reg section for the active thread.

21 years agoAdd i386-*-freebsd* entry.
Nick Clifton [Thu, 29 May 2003 18:17:55 +0000 (18:17 +0000)]
Add i386-*-freebsd* entry.

21 years ago* configure.host (*-*-netbsd*): Set HOSTING_CRT0 and HOSTING_LIBS
Jason Thorpe [Thu, 29 May 2003 17:38:52 +0000 (17:38 +0000)]
* configure.host (*-*-netbsd*): Set HOSTING_CRT0 and HOSTING_LIBS
correctly for more recent versions of NetBSD.
(alpha*-*-netbsd*): Remove.
(i[3-7]86-*-netbsd*): Remove.

21 years agoChange Mitsubishi to Renesas
Nick Clifton [Thu, 29 May 2003 17:37:03 +0000 (17:37 +0000)]
Change Mitsubishi to Renesas

21 years agoReplace <ctype.h> with "safe-ctype.h"
Nick Clifton [Thu, 29 May 2003 15:05:41 +0000 (15:05 +0000)]
Replace <ctype.h> with "safe-ctype.h"

21 years agoImport patch to add FreeBSD support.
Nick Clifton [Thu, 29 May 2003 14:02:04 +0000 (14:02 +0000)]
Import patch to add FreeBSD support.

21 years ago * elfxx-mips.c: Don't force symbols local unconditionally.
Thiemo Seufer [Thu, 29 May 2003 02:28:32 +0000 (02:28 +0000)]
* elfxx-mips.c: Don't force symbols local unconditionally.

21 years ago* ld-elf/elf.exp: Use if_elf_format.
Jason Thorpe [Thu, 29 May 2003 00:16:46 +0000 (00:16 +0000)]
* ld-elf/elf.exp: Use if_elf_format.
* ld-elf/sec64k.exp: Likewise.
* ld-elfcomm/elfcomm.exp: Likewise.
* lib/ld-lib.exp (is_elf_format): Match hppa*64*-*-hpux*.

21 years agodaily update
Alan Modra [Thu, 29 May 2003 00:00:05 +0000 (00:00 +0000)]
daily update

21 years ago2003-05-28 Alan Modra <amodra@bigpond.net.au>
H.J. Lu [Wed, 28 May 2003 20:27:51 +0000 (20:27 +0000)]
2003-05-28  Alan Modra  <amodra@bigpond.net.au>

* elf32-hppa.c (elf32_hppa_relocate_section): Delete bogus
undefined_symbol call.

21 years ago* Makefile.tpl: Make maybe-check-gcc .PHONY.
DJ Delorie [Wed, 28 May 2003 19:16:29 +0000 (19:16 +0000)]
* Makefile.tpl: Make maybe-check-gcc .PHONY.
* Makefile.in: Regenerate.

21 years ago2003-05-28 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Wed, 28 May 2003 17:51:42 +0000 (17:51 +0000)]
2003-05-28  Jeff Johnston  <jjohnstn@redhat.com>

        * COPYING.NEWLIB: Add license info for newlib/libc/sys/linux/stdlib.

21 years ago * expr.c (make_expr_symbol): Fold FAKE_LABEL_NAME use into the
Richard Henderson [Tue, 27 May 2003 19:19:29 +0000 (19:19 +0000)]
    * expr.c (make_expr_symbol): Fold FAKE_LABEL_NAME use into the
        symbol_create call.
        (current_location): Use symbol_temp_new_now.
        * stabs.c (s_stab_generic): Use symbol_temp_new.
        * symbols.c (temp_label_name): Remove.
        (symbol_temp_new, symbol_temp_make): Use FAKE_LABEL_NAME.

21 years ago * dw2gencfi.c, dw2gencfi.h: Rewrite from scratch.
Richard Henderson [Tue, 27 May 2003 16:52:49 +0000 (16:52 +0000)]
    * dw2gencfi.c, dw2gencfi.h: Rewrite from scratch.
        * as.c (main): Always call cfi_finish.
        * config/tc-i386.c (x86_dwarf2_return_column): New.
        (x86_cie_data_alignment): New.
        (md_begin): Set them.
        (tc_x86_cfi_init): Remove.
        (tc_x86_regname_to_dw2regnum): Fix 32-bit register numbers;
        return int, not unsigned long; don't as_bad here.
        (tc_x86_frame_initial_instructions): Streamline; use
        updated api.
        * config/tc-i386.h (tc_cfi_init): Remove.
        (DWARF2_DEFAULT_RETURN_COLUMN): New.
        (DWARF2_CIE_DATA_ALIGNMENT): New.

        * gas/cfi/cfi-i386.d: Update for dw2gencfi rewrite.
        * gas/cfi/cfi-x86_64.d: Likewise.
        * gas/cfi/cfi-i386-2.d: New.
        * gas/cfi/cfi-i386-2.s: New.

21 years ago * symbols.c (temp_label_name): New.
Richard Henderson [Tue, 27 May 2003 16:00:04 +0000 (16:00 +0000)]
    * symbols.c (temp_label_name): New.
        (symbol_temp_new, symbol_temp_new_now, symbol_temp_make): New.
        (symbol_set_value_now): New.
        * symbols.h: Prototype them.
        * dwarf2dbg.c: Use them.
        (fake_label_name, symbol_new_now, set_symbol_value_now): Remove.