OSDN Git Service

pf3gnuchains/pf3gnuchains3x.git
23 years ago2001-08-27 Jeff Johnston <jjohnstn@redhat.com>
jjohnstn [Mon, 27 Aug 2001 19:01:09 +0000 (19:01 +0000)]
2001-08-27  Jeff Johnston  <jjohnstn@redhat.com>

        * libltdl/ltdl.c (lt_dlinit): Initialize loaders to 0.
        (lt_dlexit): Reset loaders to 0 after freeing all loaders.

23 years ago * tc_mips.c (load_address): Reflect change to MAX_GPREL_OFFSET.
ths [Mon, 27 Aug 2001 18:48:27 +0000 (18:48 +0000)]
* tc_mips.c (load_address): Reflect change to MAX_GPREL_OFFSET.
(macro): Reflect change to MAX_GPREL_OFFSET.

23 years ago * elf32-i386.c: Add missing prototypes.
drow [Mon, 27 Aug 2001 18:04:37 +0000 (18:04 +0000)]
    * elf32-i386.c: Add missing prototypes.
        * elf32-ppc.c: Likewise.
        * elf32-sh-lin.c: Likewise.
        * elfarm-nabi.c: Likewise.

23 years ago * elf32-i386.c (elf_i386_grok_prstatus): New function.
drow [Mon, 27 Aug 2001 17:36:31 +0000 (17:36 +0000)]
    * elf32-i386.c (elf_i386_grok_prstatus): New function.
        (elf_i386_grok_psinfo): New function.
        (elf_backend_grok_prstatus): Define.
        (elf_backend_grok_psinfo): Likewise.
        * elf32-ppc.c (ppc_elf_grok_prstatus): New function.
        (ppc_elf_grok_psinfo): New function.
        (elf_backend_grok_prstatus): Define.
        (elf_backend_grok_psinfo): Likewise.
        * elf32-sh-lin.c (elf32_shlin_grok_prstatus): New function.
        (elf32_shlin_grok_psinfo): New function.
        (elf_backend_grok_prstatus): Define.
        (elf_backend_grok_psinfo): Likewise.
        * elfarm-nabi.c (elf32_arm_nabi_grok_prstatus): New function.
        (elf32_arm_nabi_grok_psinfo): New function.
        (elf_backend_grok_prstatus): Define.
        (elf_backend_grok_psinfo): Likewise.

23 years ago* select.cc (cygwin_select): Ensure that arguments are zeroed on timeout.
cgf [Mon, 27 Aug 2001 15:59:25 +0000 (15:59 +0000)]
* select.cc (cygwin_select): Ensure that arguments are zeroed on timeout.
(select_stuff::wait): Ditto.

23 years ago2001-08-27 H.J. Lu <hjl@gnu.org>
hjl [Mon, 27 Aug 2001 15:40:38 +0000 (15:40 +0000)]
2001-08-27  H.J. Lu  <hjl@gnu.org>

* elf32-mips.c (mips_elf_create_dynamic_relocation): Add more
sanity check.
(mips_elf_calculate_relocation): Create dynamic relocation for
symbols with weak definition or the ELF_LINK_HASH_DEF_REGULAR
bit is not set.

23 years ago2001-08-27 H.J. Lu <hjl@gnu.org>
hjl [Mon, 27 Aug 2001 14:47:33 +0000 (14:47 +0000)]
2001-08-27  H.J. Lu  <hjl@gnu.org>

* elf32-mips.c (_bfd_mips_elf_hide_symbol): Add prototype.
(_bfd_mips_elf_copy_indirect_symbol): Likewise.
(_bfd_elf32_mips_grok_prstatus): Likewise.
(_bfd_elf32_mips_grok_psinfo): Likewise.
(_bfd_mips_elf_hide_symbol): Make it static and cast to
`struct mips_elf_link_hash_entry *'.
(_bfd_mips_elf_copy_indirect_symbol): Make it static.

23 years ago * gas/macros/macros.exp: xfail powerpc-*-aix.
amodra [Mon, 27 Aug 2001 10:51:17 +0000 (10:51 +0000)]
* gas/macros/macros.exp: xfail powerpc-*-aix.
* gas/ppc/astest64.s: New.
* gas/ppc/astest64.d: New.
* gas/ppc/astest2_64.s: New.
* gas/ppc/astest2_64.d: New.
* gas/ppc/test1elf.asm: New.
* gas/ppc/test1xcoff.asm: New.
* gas/ppc/generate.sh: New. Generate new files below from above .asm
* gas/ppc/test1elf32.s: New.
* gas/ppc/test1elf32.d: New.
* gas/ppc/test1elf64.s: New.
* gas/ppc/test1elf64.d: New.
* gas/ppc/test1xcoff32.s: New.
* gas/ppc/test1xcoff32.d: New.
* gas/ppc/ppc.exp: Run new tests.
* gas/ppc/simpshft.s: Tweak align now that we get nops.

23 years ago * ld-checks/checks.exp: .lcomm is incompatible with ppc coff.
amodra [Mon, 27 Aug 2001 10:49:54 +0000 (10:49 +0000)]
* ld-checks/checks.exp: .lcomm is incompatible with ppc coff.
* ld-scripts/cross1.t: Add .toc section.
* ld-scripts/cross2.t: Likewise.
* ld-scripts/phdrs.exp: powerpc64 is 64 bit.
* ld-srec/srec.exp: xfail powerpc64

23 years ago * Makefile.am (ALL_EMULATIONS): Add eelf64ppc.o and eelf64lppc.o.
amodra [Mon, 27 Aug 2001 10:45:54 +0000 (10:45 +0000)]
* Makefile.am (ALL_EMULATIONS): Add eelf64ppc.o and eelf64lppc.o.
(eelf64ppc.c, eelf64lppc.c): Add make targets.
Run "make dep-am"
* Makefile.in: Regenerate.
* configure.tgt: Add powerpc64 support.  Move pdp11, pjl, pj
entries to correct alphabetical position.
* emulparams/elf64ppc.sh: New.
* emulparams/elf64lppc.sh: New.

23 years ago * configure.in: Recognise powerpc*le*, not just powerpcle*.
amodra [Mon, 27 Aug 2001 10:42:09 +0000 (10:42 +0000)]
* configure.in: Recognise powerpc*le*, not just powerpcle*.
* configure: Regenerate.
* config/tc-ppc.c (PPC_LO, PPC_HI, PPC_HA, PPC_HIGHER,
PPC_HIGHERA, PPC_HIGHEST, PPC_HIGHESTA, SEX16): New macros.
(md_assemble): Use them.
(ppc_machine): Support stub for ELF64 as well as XCOFF.
(md_pseudo_table): Add "llong", "quad".
(md_parse_option): Match default_cpu of powerpc*.
(ppc_arch): Likewise.
(ppc_subseg_align): Only for OBJ_XCOFF.
(ppc_target_format): Return elf64-powerpc strings for 64 bit ELF.
(md_begin): Select PPC_OPCODE_64 for 64 bit.
(ppc_insert_operand): Don't bother testing 'file' before calling
as_bad_where.  Use as_bad_where for operand->insert errors.
(mapping): Add ELF64 relocation modifiers.
(ppc_elf_suffix): Replace symbol on BFD_RELOC_PPC64_TOC reloc
expressions with abs_symbol.
(ppc_elf_cons): Correct offset for little endian targets.
(ppc_elf_frob_symbol): New.
(md_assemble): Add support for 64 bit ELF relocs.
(ppc_tc): Ensure 8 byte alignment when 64 bit.
(ppc_is_toc_sym): Only define for OBJ_XCOFF and OBJ_ELF.  Match
".toc" section for 64 bit ELF.
(ppc_fix_adjustable): New.  Macro body moved from tc-ppc.h.
(md_apply_fix3): Silence warning with ATTRIBUTE_UNUSED.  Only do
the ppc_is_toc_sym check for OBJ_XCOFF and OBJ_ELF.  For 64 bit,
use BFD_RELOC_PPC64_TOC16_DS instead of BFD_RELOC_PPC_TOC16.
Expand on comments, error message.  Add support for 64 bit relocs,
and use PPC_HI etc. macros.
* config/tc-ppc.h (MAX_MEM_FOR_RS_ALIGN_CODE): Define.
(HANDLE_ALIGN): Define to generate nops in code sections rather
than zeros.
(TC_FORCE_RELOCATION): Force for BFD_RELOC_PPC64_TOC.
(ELF_TC_SPECIAL_SECTIONS): Add 64 bit ELF sections.
(tc_fix_adjustable): Move body of macro to tc-ppc.c.
(ppc_fix_adjustable): Declare.
(tc_frob_symbol): Define.
(ppc_elf_frob_symbol): Declare.

23 years ago * binutils-all/readelf.s-64: Adjust offsets for powerpc64. Don't
amodra [Mon, 27 Aug 2001 10:38:40 +0000 (10:38 +0000)]
* binutils-all/readelf.s-64: Adjust offsets for powerpc64.  Don't
use constructs like [45][08] when all combinations are not valid.
Instead use (48|50) to explicitly state which values are correct.

23 years agoAdd missing prototypes
nickc [Mon, 27 Aug 2001 10:35:20 +0000 (10:35 +0000)]
Add missing prototypes

23 years ago * readelf.c (dump_relocations): Recognise EM_PPC64.
amodra [Mon, 27 Aug 2001 10:33:19 +0000 (10:33 +0000)]
* readelf.c (dump_relocations): Recognise EM_PPC64.

23 years ago * ppc-opc.c (DS): Add PPC_OPERAND_DS flag.
amodra [Mon, 27 Aug 2001 10:27:48 +0000 (10:27 +0000)]
* ppc-opc.c (DS): Add PPC_OPERAND_DS flag.
(LS): Define.
(insert_ds): Complain if not a multiple of 4.
(XSYNC): Define.
(XSYNC_MASK): Define.
(powerpc_opcodes): Add "slbmte", "lwsync", "ptesync", "slbmfev",
"slbmfee".  Modify "sync" to use XSYNC_MASK and LS.

23 years ago * ppc.h (PPC_OPERAND_DS): Define.
amodra [Mon, 27 Aug 2001 10:26:57 +0000 (10:26 +0000)]
* ppc.h (PPC_OPERAND_DS): Define.

23 years ago * ppc.h: Add relocs from the 64-bit PowerPC ELF ABI revision 1.2.
amodra [Mon, 27 Aug 2001 10:26:34 +0000 (10:26 +0000)]
* ppc.h: Add relocs from the 64-bit PowerPC ELF ABI revision 1.2.

23 years ago * config.bfd: Add powerpc64 target. Add powerpc64 vectors to
amodra [Mon, 27 Aug 2001 10:22:03 +0000 (10:22 +0000)]
* config.bfd: Add powerpc64 target.  Add powerpc64 vectors to
targ64_selvecs for 32 bit powerpc targets.
* Makefile.am (BFD64_BACKENDS): Add elf64-ppc.lo.
(BFD64_BACKENDS_CFILES): Add elf64-ppc.c.
Run "make dep-am".
* Makefile.in: Regenerate.
* configure.in: Add elf64_powerpc vecs.
* configure: Regenerate.
* cpu-powerpc.c: Default to bfd_mach_ppc_620 entry for 64 bit.
* elf.c (prep_headers): EM_PPC64 for 64 bit ppc elf target.
* targets.c: Add bfd_elf64_powerpc_vec and bfd_elf64_powerpcle_vec.
* elf64-ppc.c: New file.
* reloc.c: Add powerpc64 relocs.
* libbfd.h: Regenerate.
* bfd-in2.h: Regenerate.

23 years ago * elf32-m68k.c (elf32_m68k_check_relocs): Set DF_TEXTREL if the
schwab [Mon, 27 Aug 2001 09:16:09 +0000 (09:16 +0000)]
* elf32-m68k.c (elf32_m68k_check_relocs): Set DF_TEXTREL if the
reloc is against read-only section.
(elf32_m68k_size_dynamic_sections): Use DF_TEXTREL flag instead of
looking up section names for DT_TEXTREL.
(elf32_m68k_reloc_type_class): New function.
(elf_backend_reloc_type_class): Define.

23 years ago * xcoff.h (struct __rtinit): Make proper prototype for rtl.
aj [Mon, 27 Aug 2001 09:08:38 +0000 (09:08 +0000)]
* xcoff.h (struct __rtinit): Make proper prototype for rtl.

23 years ago * elf64-s390.c (elf_s390_check_relocs): Set DF_TEXTREL if the
aj [Mon, 27 Aug 2001 08:59:06 +0000 (08:59 +0000)]
* elf64-s390.c (elf_s390_check_relocs): Set DF_TEXTREL if the
reloc is against read-only section.
(elf_s390_size_dynamic_sections): Use DF_TEXTREL flag instead of
looking up section names for DT_TEXTREL.
(elf_s390_reloc_type_class): New.
(elf_backend_reloc_type_class): Define.

* elf32-s390.c (elf_s390_check_relocs): Set DF_TEXTREL if the
reloc is against read-only section.
(elf_s390_size_dynamic_sections): Use DF_TEXTREL flag instead of
looking up section names for DT_TEXTREL.
(elf_s390_reloc_type_class): New.
(elf_backend_reloc_type_class): Define.

* elf32-ppc.c (ppc_elf_check_relocs): Set DF_TEXTREL if the reloc
is against read-only section.
(ppc_elf_size_dynamic_sections): Use DF_TEXTREL flag instead of
looking up section names for DT_TEXTREL.
(ppc_elf_reloc_type_class): New.
(elf_backend_reloc_type_class): Define.

23 years agoDeclare BSIZE as static
nickc [Mon, 27 Aug 2001 08:52:50 +0000 (08:52 +0000)]
Declare BSIZE as static

23 years agoFrom 2001-06-29 Andrew Cagney <ac131313@redhat.com>:
cagney [Mon, 27 Aug 2001 02:22:14 +0000 (02:22 +0000)]
From 2001-06-29 Andrew Cagney  <ac131313@redhat.com>:
* config/powerpc/nbsd.mh (XM_FILE): Delete.

23 years ago*** empty log message ***
gdbadmin [Mon, 27 Aug 2001 00:00:05 +0000 (00:00 +0000)]
*** empty log message ***

23 years ago* doublest.h (HOST_FLOAT_FORMAT): Delete macro.
cagney [Sun, 26 Aug 2001 18:46:10 +0000 (18:46 +0000)]
* doublest.h (HOST_FLOAT_FORMAT): Delete macro.
(HOST_DOUBLE_FORMAT): Delete macro.

23 years ago * elf32-cris.c (cris_elf_check_relocs): Set DF_TEXTREL if the
aj [Sun, 26 Aug 2001 18:03:19 +0000 (18:03 +0000)]
* elf32-cris.c (cris_elf_check_relocs): Set DF_TEXTREL if the
reloc is against read-only section.
(elf_cris_size_dynamic_sections): Use DF_TEXTREL flag instead of
looking up section names for DT_TEXTREL.
(elf_cris_reloc_type_class): New.
(elf_backend_reloc_type_class): Define.

* elf32-sh.c (sh_elf_check_relocs): Set DF_TEXTREL if the reloc is
against read-only section.
(elf_backend_reloc_type_class): Define.
(sh_elf_reloc_type_class): New.
(sh_elf_size_dynamic_sections): Use DF_TEXTREL flag instead of
looking up section names for DT_TEXTREL.

* elf32-arm.h (elf32_arm_check_relocs): Set DF_TEXTREL if the
reloc is against read-only section.
(elf32_arm_size_dynamic_sections): Use DF_TEXTREL flag instead of
looking up section names for DT_TEXTREL.
(elf32_arm_reloc_type_class): New.

23 years ago * h8500-opc.h: Add default initializers to h8500_table to shut up
aj [Sun, 26 Aug 2001 14:04:42 +0000 (14:04 +0000)]
* h8500-opc.h: Add default initializers to h8500_table to shut up
GCC warnings.

23 years ago * readelf.c (get_machine_flags): Add detection of EF_MIPS_32BITMODE.
ths [Sun, 26 Aug 2001 13:04:34 +0000 (13:04 +0000)]
* readelf.c (get_machine_flags): Add detection of EF_MIPS_32BITMODE.

23 years agoFor include/opcode:
aj [Sun, 26 Aug 2001 11:47:38 +0000 (11:47 +0000)]
For include/opcode:
* d30v.h: Fix declaration of reg_name_cnt.

* d10v.h: Fix declaration of d10v_reg_name_cnt.

* arc.h: Add prototypes from opcodes/arc-opc.c.

For opcodes:
* tic54x-dis.c: Add unused attributes where needed.

* z8k-dis.c (output_instr): Add unused attribute.

* h8300-dis.c: Add missing prototypes.
(bfd_h8_disassemble): Make static.

* cris-dis.c: Add missing prototype.
* h8500-dis.c: Likewise.
* m68hc11-dis.c: Likewise.
* pj-dis.c: Likewise.
* tic54x-dis.c: Likewise.
* v850-dis.c: Likewise.
* vax-dis.c: Likewise.
* w65-dis.c: Likewise.
* z8k-dis.c: Likewise.

* d10v-dis.c: Add missing prototype.
(dis_long): Remove unused variable.
(dis_2_short): Likewise.

* sh-dis.c: Add missing prototypes.
* v850-opc.c: Likewise.
Add unused attributes where needed.

* ns32k-dis.c: Add missing prototypes.
(bit_extract_simple): Remove unused variable.

23 years ago * oasys.c: Add missing prototypes.
aj [Sun, 26 Aug 2001 11:46:03 +0000 (11:46 +0000)]
* oasys.c: Add missing prototypes.

* elf64-alpha.c (elf64_alpha_size_dynamic_sections): Add unused
attribute for parameter.
* elf.c (_bfd_elf_reloc_type_class): Likewise.

* versados.c (get_4): Make static.
(get_10): Make static.
Add missing prototypes.
(process_esd): Fix call to versados_new_symbol.

23 years ago * config/tc-s390.c: Add missing prototypes
aj [Sun, 26 Aug 2001 11:44:51 +0000 (11:44 +0000)]
* config/tc-s390.c: Add missing prototypes
(md_gather_operands): Make static.

23 years ago * tc_mips.h (MAX_GPREL_OFFSET): Change it to the maximum allowed
ths [Sun, 26 Aug 2001 10:42:12 +0000 (10:42 +0000)]
* tc_mips.h (MAX_GPREL_OFFSET): Change it to the maximum allowed
value, not the word beyond maximum.
* tc_mips.c (macro_build_lui): Code cleanup.
(macro): Reflect change to MAX_GPREL_OFFSET.
(mips_ip): Check explicitly against S_EX_NONE.
(my_get_SmallExpression): parse for %gp_rel, not %gprel.
(md_apply_fix): Code cleanup.

23 years ago* libc/include/sys/errno.h: Add a cautionary comment.
cgf [Sun, 26 Aug 2001 02:28:33 +0000 (02:28 +0000)]
* libc/include/sys/errno.h: Add a cautionary comment.

23 years ago*** empty log message ***
gdbadmin [Sun, 26 Aug 2001 00:00:02 +0000 (00:00 +0000)]
*** empty log message ***

23 years ago* syscalls.cc (check_tty_fds): New function. Check whether there is a fd
cgf [Sat, 25 Aug 2001 17:27:31 +0000 (17:27 +0000)]
* syscalls.cc (check_tty_fds): New function.  Check whether there is a fd
referring to pty slave.
(setsid): Don't detach console if the process has a pty slave.

23 years ago2001-08-25 H.J. Lu <hjl@gnu.org>
hjl [Sat, 25 Aug 2001 15:16:39 +0000 (15:16 +0000)]
2001-08-25  H.J. Lu  <hjl@gnu.org>

* nm.c (print_width): New.
(display_rel_file): Set `print_width' according to
bfd_sprintf_vma.
(print_symbol_info_bsd): Check `print_width' instead of BFD64.

23 years agoAdd missing prototypes
nickc [Sat, 25 Aug 2001 09:49:44 +0000 (09:49 +0000)]
Add missing prototypes

23 years agofix compile time warning message
nickc [Sat, 25 Aug 2001 09:48:13 +0000 (09:48 +0000)]
fix compile time warning message

23 years agoAdd missing prototypes
nickc [Sat, 25 Aug 2001 09:47:34 +0000 (09:47 +0000)]
Add missing prototypes

23 years ago * elf32-mips.c (elf_mips_abi_name): Return the right ABI string for
ths [Sat, 25 Aug 2001 01:27:54 +0000 (01:27 +0000)]
* elf32-mips.c (elf_mips_abi_name): Return the right ABI string for
E_MIPS_ABI_O64 and E_MIPS_ABI_EABI64

23 years ago * binutils-all/readelf.exp: Don't regard mips*el-*-* as traditional
ths [Sat, 25 Aug 2001 00:48:49 +0000 (00:48 +0000)]
* binutils-all/readelf.exp: Don't regard mips*el-*-* as traditional
mips.
* gas/mips/mips.exp: Likewise. Use traditional testcases for
mips${el}16-f if needed.
* gas/mips/elempic.d: New file, testcase for little endian empic.
* gas/mips/elfel-rel2.d: Don't test trailing zeroes in dump.
* gas/mips/mips16-f.d: Use non-traditional symbol sorting.
* gas/mips/mipsel16-f.d: Likewise.
* gas/mips/mipsel16-e.d: New file, testcase for little endian MIPS16
relocations.
* gas/mips/tmipsel16-f.d: New file, testcase for little endian MIPS16
relocations, traditional variant.

23 years ago*** empty log message ***
gdbadmin [Sat, 25 Aug 2001 00:00:02 +0000 (00:00 +0000)]
*** empty log message ***

23 years ago2001-08-24 H.J. Lu <hjl@gnu.org>
hjl [Fri, 24 Aug 2001 20:10:25 +0000 (20:10 +0000)]
2001-08-24  H.J. Lu  <hjl@gnu.org>

* elf.c (_bfd_elf_merge_sections): Fail if not using an ELF
hash structure.

23 years ago * config/tc-ppc.h: Fix prototype declaration.
aj [Fri, 24 Aug 2001 19:18:44 +0000 (19:18 +0000)]
* config/tc-ppc.h: Fix prototype declaration.

23 years agoApply H.J.'s patch to revert change to elfxx-target.h
nickc [Fri, 24 Aug 2001 16:36:01 +0000 (16:36 +0000)]
Apply H.J.'s patch to revert change to elfxx-target.h
Apply my patch to allow SREC as output format.

23 years ago* defeat aggressive/early error detection
fche [Fri, 24 Aug 2001 16:09:46 +0000 (16:09 +0000)]
* defeat aggressive/early error detection

2001-08-24  Frank Ch. Eigler  <fche@redhat.com>

        * baseboards/basic-sid.exp (find_sid_conf): Tolerate not finding
        path to pregen configuration file.

23 years ago * src/tkTable.tcl: Use "string compare" instead of "string
kseitz [Fri, 24 Aug 2001 15:32:08 +0000 (15:32 +0000)]
* src/tkTable.tcl: Use "string compare" instead of "string
equal". The latter is only available in newer versions of
tcl.

23 years ago* objcopy.c (use_alt_mach_code): New variable.
aoliva [Fri, 24 Aug 2001 13:56:08 +0000 (13:56 +0000)]
* objcopy.c (use_alt_mach_code): New variable.
(OPTION_ALT_MACH_CODE): Define.
(copy_options): Added --alt-machine-code.
(copy_main): Handle it.
(copy_object): Switch to alternate machine code if requested.
* doc/binutils.texi: Document new option.
* NEWS: Likewise.

23 years ago* bfd.c (bfd_alt_mach_code): New function.
aoliva [Fri, 24 Aug 2001 13:55:54 +0000 (13:55 +0000)]
* bfd.c (bfd_alt_mach_code): New function.
* bfd-in2.h: Rebuilt.

23 years ago* elf-m10300.c (mn10300_elf_relocate_section): Test the right
aoliva [Fri, 24 Aug 2001 13:14:46 +0000 (13:14 +0000)]
* elf-m10300.c (mn10300_elf_relocate_section): Test the right
`type' field in the hash entry when deciding whether to follow a
link.

23 years ago* config/xm-lynx.h, config/xm-nbsd.h, config/xm-sysv4.h,
kettenis [Fri, 24 Aug 2001 12:19:50 +0000 (12:19 +0000)]
* config/xm-lynx.h, config/xm-nbsd.h, config/xm-sysv4.h,
config/i386/xm-i386aix.h, config/m68k/xm-dpx2.h: Remove redundant
inclusion of <limits.h>.

23 years ago * elflink.h (elf_link_sort_cmp1): Sort RELATIVE relocs first, not
jakub [Fri, 24 Aug 2001 11:17:28 +0000 (11:17 +0000)]
* elflink.h (elf_link_sort_cmp1): Sort RELATIVE relocs first, not
last.
(elf_link_sort_relocs): Adjust accordingly.

* elf64-alpha.c (struct alpha_elf_link_hash_entry): Add reltext flag.
(elf64_alpha_check_relocs): Set it if section this reloc is against
is read-only.  Set DF_TEXTREL if a RELATIVE reloc is needed against
read-only section.
(elf64_alpha_calc_dynrel_sizes): Set DF_TEXTREL flag if relocation
is is against read-only section.
(elf64_alpha_size_dynamic_sections): Use DF_TEXTREL flag, don't
check section names.
(elf64_alpha_reloc_type_class): New.
(elf_backend_reloc_type_class): Define.

23 years ago * net.cc (free_addr_list): Add define for symmetry.
corinna [Fri, 24 Aug 2001 06:57:53 +0000 (06:57 +0000)]
    * net.cc (free_addr_list): Add define for symmetry.
        (free_hostent_ptr): Use free_addr_list to free h_addr_list element.
        (dup_addr_list): New static function.
        (dup_hostent_ptr): Use dup_addr_list instead of dup_char_list in order
        to handle embedded null characters.

23 years ago* regcache.c (read_register_bytes): When REGISTER_NAME indicates
cagney [Fri, 24 Aug 2001 05:11:07 +0000 (05:11 +0000)]
* regcache.c (read_register_bytes): When REGISTER_NAME indicates
that a register should be ignored, supply a value for the register
from the raw registers[] buffer.

23 years ago* go32-nat.c (go32_create_inferior): Use xfree instead of free.
cagney [Fri, 24 Aug 2001 05:00:05 +0000 (05:00 +0000)]
* go32-nat.c (go32_create_inferior): Use xfree instead of free.
* config/djgpp/fnchange.lst: Add entries for i386bsd-tdep.c and
i386bsd-nat.c.

23 years ago* gdbtypes.h (builtin_type_ieee_single_big)
cagney [Fri, 24 Aug 2001 04:46:42 +0000 (04:46 +0000)]
* gdbtypes.h (builtin_type_ieee_single_big)
(builtin_type_ieee_single_little, builtin_type_ieee_double_big)
(builtin_type_ieee_double_little)
(builtin_type_ieee_double_littlebyte_bigword)
(builtin_type_i387_ext, builtin_type_m68881_ext)
(builtin_type_i960_ext, builtin_type_m88110_ext)
(builtin_type_m88110_harris_ext, builtin_type_arm_ext_big)
(builtin_type_arm_ext_littlebyte_bigword)
(builtin_type_ia64_spill_big, builtin_type_ia64_spill_little)
(builtin_type_ia64_quad_big)
(builtin_type_ia64_quad_little): Declare.
* gdbtypes.c (builtin_type_ieee_single_big)
(builtin_type_ieee_single_little, builtin_type_ieee_double_big)
(builtin_type_ieee_double_little)
(builtin_type_ieee_double_littlebyte_bigword)
(builtin_type_i387_ext, builtin_type_m68881_ext)
(builtin_type_i960_ext, builtin_type_m88110_ext)
(builtin_type_m88110_harris_ext, builtin_type_arm_ext_big)
(builtin_type_arm_ext_littlebyte_bigword)
(builtin_type_ia64_spill_big, builtin_type_ia64_spill_little)
(builtin_type_ia64_quad_big)
(builtin_type_ia64_quad_little): Define.
(_initialize_gdbtypes): Initialize builtin floatformat types.

23 years ago * linker.c (_bfd_generic_link_add_archive_symbols): Replace alloca()
ths [Fri, 24 Aug 2001 03:56:28 +0000 (03:56 +0000)]
* linker.c (_bfd_generic_link_add_archive_symbols): Replace alloca()
by bfd_malloc().

23 years ago* duh bug fixes
fche [Fri, 24 Aug 2001 00:31:50 +0000 (00:31 +0000)]
* duh bug fixes

2001-08-23  Frank Ch. Eigler  <fche@redhat.com>

* lib/monkey.exp (monkey_stop): New routine.
(monkey_test): Upon failure in test loop, break out, to always
call `monkey_stop'.
(monkey_test_pin): Don't mistakenly return "eof".

23 years ago * internal.h (R_JMP2, R_JMPL2, R_MOVL2): Comment spelling fix.
amylaar [Fri, 24 Aug 2001 00:20:01 +0000 (00:20 +0000)]
* internal.h (R_JMP2, R_JMPL2, R_MOVL2): Comment spelling fix.

23 years ago * library/srcwin.itb (SrcWin::fillFuncCB): Sort function names.
tromey [Fri, 24 Aug 2001 00:11:06 +0000 (00:11 +0000)]
* library/srcwin.itb (SrcWin::fillFuncCB): Sort function names.

23 years ago*** empty log message ***
gdbadmin [Fri, 24 Aug 2001 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

23 years ago * config/tc-ia64.c (dot_endp): Set function symbol sizes.
jakub [Thu, 23 Aug 2001 20:43:01 +0000 (20:43 +0000)]
* config/tc-ia64.c (dot_endp): Set function symbol sizes.
* config/obj-elf.c (obj_elf_size): When size is constant, free
and clear symbol_get_obj(sym)->size if any.

23 years ago* tracepoint.c (read_actions): Add FIXME for code depending on
kettenis [Thu, 23 Aug 2001 20:31:35 +0000 (20:31 +0000)]
* tracepoint.c (read_actions): Add FIXME for code depending on
STOP_SIGNAL.

23 years ago2001-08-23 Martin M. Hunt <hunt@redhat.com>
hunt [Thu, 23 Aug 2001 19:27:50 +0000 (19:27 +0000)]
2001-08-23  Martin M. Hunt  <hunt@redhat.com>

* remote-mips.c (pmon_load_fast): Add ui_load_progress_hook
to download loop.
(mips_load_srec): Ditto.

23 years ago * elf64-x86-64.c (elf64_x86_64_check_relocs): Set DF_TEXTREL if
aj [Thu, 23 Aug 2001 18:14:28 +0000 (18:14 +0000)]
* elf64-x86-64.c (elf64_x86_64_check_relocs): Set DF_TEXTREL if
the reloc is against read-only section.
(elf64_x86_64_size_dynamic_sections): Use DF_TEXTREL flag instead
of looking up section names for DT_TEXTREL.
(elf64_x86_64_reloc_type_class): New.
(elf_backend_reloc_type_class): Define.

23 years agoAdd more missing prototypes
nickc [Thu, 23 Aug 2001 17:05:52 +0000 (17:05 +0000)]
Add more missing prototypes

23 years agomerge from gcc
dj [Thu, 23 Aug 2001 16:38:09 +0000 (16:38 +0000)]
merge from gcc

23 years ago2001-08-23 Martin M. Hunt <hunt@redhat.com>
hunt [Thu, 23 Aug 2001 16:35:33 +0000 (16:35 +0000)]
2001-08-23  Martin M. Hunt  <hunt@redhat.com>

* library/targetselection.itb: Added PMON and DDB targets.

23 years ago2001-08-23 H.J. Lu <hjl@gnu.org>
hjl [Thu, 23 Aug 2001 15:45:18 +0000 (15:45 +0000)]
2001-08-23  H.J. Lu  <hjl@gnu.org>

* syms.c (bfd_print_symbol_vandf): Add abfd to arg.
* bfd-in2.h (bfd_print_symbol_vandf): Regenerated.

* aoutx.h (NAME(aout,print_symbol)): Pass abfd to
bfd_print_symbol_vandf.
* coffgen.c (coff_print_symbol): Likewise.
* elf.c (bfd_elf_print_symbol): Likewise.
* ieee.c (ieee_print_symbol): Likewise.
* nlmcode.h (nlm_print_symbol): Likewise.
* oasys.c (oasys_print_symbol): Likewise.
* pdp11.c (NAME(aout,print_symbol)): Likewise.
* som.c (som_print_symbol): Likewise.
* srec.c (srec_print_symbol): Likewise.
* tekhex.c (tekhex_print_symbol): Likewise.
* versados.c (versados_print_symbol): Likewise.
* vms.c (vms_print_symbol): Likewise.

* elf.c (_bfd_elf_print_private_bfd_data): Replace fprintf_vma
with bfd_fprintf_vma.
(bfd_elf_print_symbol): Likewise.
* syms.c (bfd_print_symbol_vandf): Likewise.

23 years agoAdd missing prototypes for bout.c
nickc [Thu, 23 Aug 2001 15:30:33 +0000 (15:30 +0000)]
Add missing prototypes for bout.c

23 years ago * elf-bfd.h (enum elf_reloc_type_class): New.
jakub [Thu, 23 Aug 2001 15:14:13 +0000 (15:14 +0000)]
* elf-bfd.h (enum elf_reloc_type_class): New.
(struct elf_backend_data): Add elf_backend_reloc_type_class.
(_bfd_elf_reloc_type_class): New.
* elfxx-target.h (elf_backend_reloc_type_class): Define.
(elfNN_bed): Add elf_backend_reloc_type_class.
* elf.c (_bfd_elf_reloc_type_class): New.
* elf32-i386.c (elf_i386_check_relocs): Set DF_TEXTREL if the reloc
is against read-only section.
(elf_i386_size_dynamic_sections): Use DF_TEXTREL flag instead of
looking up section names for DT_TEXTREL.
(elf_i386_reloc_type_class): New.
(elf_backend_reloc_type_class): Define.
* elf32-sparc.c (elf32_sparc_check_relocs): Set DF_TEXTREL if the
reloc is against read-only section.
(elf32_sparc_size_dynamic_sections): Use DF_TEXTREL flag instead of
looking up section names for DT_TEXTREL.
(elf32_sparc_reloc_type_class): New.
(elf_backend_reloc_type_class): Define.
* elf64-sparc.c (sparc64_elf_check_relocs): Set DF_TEXTREL if the
reloc is against read-only section.
(sparc64_elf_size_dynamic_sections): Use DF_TEXTREL flag instead of
looking up section names for DT_TEXTREL.
(sparc64_elf_reloc_type_class): New.
(elf_backend_reloc_type_class): Define.
* elfxx-ia64.c (struct elfNN_ia64_link_hash_table): Add reltext field.
(elfNN_ia64_hash_table_create): Clear ia64_info.
(get_reloc_section): Set DF_TEXTREL if the reloc is against read-only
section.
(elfNN_ia64_size_dynamic_sections): Use ia64_info->reltext flag
instead of looking up section names for DT_TEXTREL.
(elfNN_ia64_reloc_type_class): New.
(elf_backend_reloc_type_class): Define.
* elflink.h (size_dynamic_sections): Add spare DT_NULL tags.
(struct elf_link_sort_rela): New.
(elf_link_sort_cmp1, elf_link_sort_cmp2, elf_link_sort_relocs): New.
(elf_bfd_final_link): Call elf_link_sort_relocs.
Convert one spare DT_NULL into DT_RELCOUNT resp. DT_RELACOUNT if
necessary.

* bfdlink.h (struct bfd_link_info): Add combreloc and
spare_dynamic_tags fields.

* emultempl/elf32.em (place_orphan): Place orphan .rel* sections
into .rel.dyn resp. .rela.dyn if combreloc.
(get_script): If .x linker script is equal to .xn, only put it
once into the binary.
Add .xc and .xsc scripts.
(parse_args): Handle -z combreloc and -z nocombreloc.
* scripttempl/elf.sc (.rela.sbss): Fix a typo.
For .xc and .xsc scripts put all .rel* or .rela* input sections
but .rel*.plt and PLT-like sections into .rel.dyn resp. .rela.dyn.
* genscripts.sh (GENERATE_COMBRELOC_SCRIPT): Set if SCRIPT_NAME
is elf.
Strip trailing whitespace from script.
Generate .xc and .xsc scripts if requested.
* ldmain.c (main): Initialize link_info.combreloc and
link_info.spare_dynamic_tags.
* lexsup.c (OPTION_SPARE_DYNAMIC_TAGS): Define.
(ld_options): Add --spare-dynamic-tags option.
(parse_args): Likewise.
* ld.texinfo: Document -z combreloc and -z nocombreloc.
* ldint.texinfo: Document .xc and .xsc linker scripts.
* NEWS: Add notes about -z combreloc and SHF_MERGE.

23 years agomerge from gcc
dj [Thu, 23 Aug 2001 14:51:49 +0000 (14:51 +0000)]
merge from gcc

23 years agoNo corefile support for x86-bsdi systems
nickc [Thu, 23 Aug 2001 14:33:50 +0000 (14:33 +0000)]
No corefile support for x86-bsdi systems

23 years ago * opcodes/s390-opc.c: Add "low or high" and "not low or high"
aj [Thu, 23 Aug 2001 06:38:56 +0000 (06:38 +0000)]
* opcodes/s390-opc.c: Add "low or high" and "not low or high"
branch instructions for gcc 3.0.
* opcodes/s390-opc.txt: Likewise.

23 years ago* dtable.cc (dtable::dup2): Allow extension of fd table by dup2.
cgf [Thu, 23 Aug 2001 02:27:01 +0000 (02:27 +0000)]
* dtable.cc (dtable::dup2): Allow extension of fd table by dup2.
* syscalls.cc: Minor code cleanup.
(fpathconf): Check for bad fd before doing anything else.
* termios.cc (tcsetattr): Don't convert to new termios if bad fd.
(tcgetattr): Minor debugging tweak.

23 years agoAdd TYPE_FLOATFORMAT().
cagney [Thu, 23 Aug 2001 01:09:38 +0000 (01:09 +0000)]
Add TYPE_FLOATFORMAT().

23 years ago*** empty log message ***
gdbadmin [Thu, 23 Aug 2001 00:00:02 +0000 (00:00 +0000)]
*** empty log message ***

23 years agomerge from gcc
dj [Wed, 22 Aug 2001 22:55:38 +0000 (22:55 +0000)]
merge from gcc

23 years ago * net.cc (cygwin_inet_ntoa): Rearrange previous patch to use
corinna [Wed, 22 Aug 2001 21:51:48 +0000 (21:51 +0000)]
    * net.cc (cygwin_inet_ntoa): Rearrange previous patch to use
        thread local buffer space when compiled thread safe.
        (cygwin_getprotobyname): Ditto.
        (cygwin_getprotobynumber): Ditto.
        (cygwin_getservbyname): Ditto.
        (cygwin_getservbyport): Ditto.
        (cygwin_gethostbyname): Ditto.
        (cygwin_gethostbyaddr): Ditto. Move near to cygwin_gethostbyname.
        * thread.h (struct _winsup_t): Add pointers for above used buffer space.
        * passwd.cc (getpwduid): Remove initializing passwd.
        (setpwent): Ditto.
        (endpwent): Ditto.
        (setpassent): Ditto.

23 years ago * library/prefs.tcl (pref_read): Version number appears in
tromey [Wed, 22 Aug 2001 21:11:16 +0000 (21:11 +0000)]
* library/prefs.tcl (pref_read): Version number appears in
comment.

23 years ago * readelf.c (get_machine_flags): Add detection of EF_MIPS_UCODE.
ths [Wed, 22 Aug 2001 18:42:07 +0000 (18:42 +0000)]
* readelf.c (get_machine_flags): Add detection of EF_MIPS_UCODE.

23 years ago* smallprint.c (console_printf): New function.
cgf [Wed, 22 Aug 2001 17:50:22 +0000 (17:50 +0000)]
* smallprint.c (console_printf): New function.
* dcrt0.cc (dll_crt0_1): Use console_printf for debugging output.
* debug.cc (debug_mark_closed): New function.
(close_handle): Use debug_mark_closed.
* debug.h: Declare new functions.
* dtable.cc (dtable::build_fhandler): Remove unneeded extern.
* spawn.cc: Cosmetic changes.
* winsup.h: Define NO_COPY for C files, too.  Declare a global.

23 years ago2001-08-22 H.J. Lu <hjl@gnu.org>
hjl [Wed, 22 Aug 2001 16:00:23 +0000 (16:00 +0000)]
2001-08-22  H.J. Lu  <hjl@gnu.org>

* emulparams/elf32fr30.sh: Add a newline.

23 years ago * net.cc (free_char_list): New static function.
corinna [Wed, 22 Aug 2001 15:31:59 +0000 (15:31 +0000)]
    * net.cc (free_char_list): New static function.
        (dup_char_list): Ditto.
        (free_protoent_ptr): Ditto.
        (dup_protoent_ptr): Ditto.
        (free_servent_ptr): Ditto.
        (dup_servent_ptr): Ditto.
        (free_hostent_ptr): Ditto.
        (dup_hostent_ptr): Ditto.
        (cygwin_inet_ntoa): Use local static buffer to allow propagating of
        the result to child processes.
        (cygwin_getprotobyname): Ditto.
        (cygwin_getprotobynumber): Ditto.
        (cygwin_getservbyname): Ditto.
        (cygwin_getservbyport): Ditto.
        (cygwin_gethostbyname): Ditto.
        (cygwin_gethostbyaddr): Ditto.

23 years agoAdd missing comma
nickc [Wed, 22 Aug 2001 08:43:00 +0000 (08:43 +0000)]
Add missing comma

23 years ago2001-08-22 Ben Elliston <bje@redhat.com>
bje [Wed, 22 Aug 2001 05:32:17 +0000 (05:32 +0000)]
2001-08-22  Ben Elliston  <bje@redhat.com>

* config/default.exp (sid_assert): New proc.

23 years agofix typo.
cgf [Wed, 22 Aug 2001 02:40:22 +0000 (02:40 +0000)]
fix typo.

23 years agomerge from gcc
dj [Wed, 22 Aug 2001 02:12:15 +0000 (02:12 +0000)]
merge from gcc

23 years agomerge from gcc
dj [Wed, 22 Aug 2001 02:11:38 +0000 (02:11 +0000)]
merge from gcc

23 years ago2001-08-22 Ben Elliston <bje@redhat.com>
bje [Wed, 22 Aug 2001 00:43:35 +0000 (00:43 +0000)]
2001-08-22  Ben Elliston  <bje@redhat.com>

* sidbusutil.h (class fixed_control_register): Add a new
convenience constructor which creates a register which is
readable, writable and initialised to 0.

23 years ago * mips/Makefile.in (jmr3904-io.o): Remove bogus use of `-mips3.'
jlarmour [Wed, 22 Aug 2001 00:22:58 +0000 (00:22 +0000)]
* mips/Makefile.in (jmr3904-io.o): Remove bogus use of `-mips3.'

23 years ago*** empty log message ***
gdbadmin [Wed, 22 Aug 2001 00:00:04 +0000 (00:00 +0000)]
*** empty log message ***

23 years ago* coff-go32.c: Set the alignment of dwarf2 linkonce sections to 0.
dj [Tue, 21 Aug 2001 22:39:47 +0000 (22:39 +0000)]
* coff-go32.c: Set the alignment of dwarf2 linkonce sections to 0.
* coff-stgo32.c: Likewise.

23 years ago* coff-go32.c: Make DWARF2 sections use an alignment of 0.
dj [Tue, 21 Aug 2001 20:23:37 +0000 (20:23 +0000)]
* coff-go32.c: Make DWARF2 sections use an alignment of 0.
* coff-sto32.c: Likewise.

23 years ago2001-08-21 Jeff Johnston <jjohnstn@redhat.com>
jjohnstn [Tue, 21 Aug 2001 20:23:15 +0000 (20:23 +0000)]
2001-08-21  Jeff Johnston  <jjohnstn@redhat.com>

        * libc/stdlib/mallocr.c [!defined(MALLOC_ALIGNMENT)]: Add conditional
        for SIZE_SZ so that alignment ends up a minimum of 8.

23 years ago * generic/gdbtk.c (gdbtk_init): Reinitialize disassemle info's
kseitz [Tue, 21 Aug 2001 19:29:00 +0000 (19:29 +0000)]
* generic/gdbtk.c (gdbtk_init): Reinitialize disassemle info's
stream parameter: we just deleted the one it saved when we

23 years ago * printcmd.c (print_insn): Use the given stream for
kseitz [Tue, 21 Aug 2001 19:25:39 +0000 (19:25 +0000)]
* printcmd.c (print_insn): Use the given stream for
output.

23 years ago * generic/gdbtk.c (gdbtk_init): Reinitialize disassemle info's
kseitz [Tue, 21 Aug 2001 16:55:21 +0000 (16:55 +0000)]
* generic/gdbtk.c (gdbtk_init): Reinitialize disassemle info's
stream parameter: we just deleted the one it saved when we
re-routed gdb_stdout to our own gdb_stdout.

23 years agoReturn if target is `vax-*-ultrix*'.
nickc [Tue, 21 Aug 2001 16:04:36 +0000 (16:04 +0000)]
Return if target is `vax-*-ultrix*'.
Continue with other tests when there is a compilation error.

23 years ago2001-08-21 H.J. Lu <hjl@gnu.org>
hjl [Tue, 21 Aug 2001 15:54:16 +0000 (15:54 +0000)]
2001-08-21  H.J. Lu  <hjl@gnu.org>

* binutils-all/readelf.r: Updated for the readelf change.

* binutils-all/readelf.r-64: New for the readelf change.