]> sourceware.org Git - newlib-cygwin.git/log
newlib-cygwin.git
22 years ago* configure.in: Complain about lack of w32api directory.
Christopher Faylor [Sun, 2 Jun 2002 05:54:33 +0000 (05:54 +0000)]
* configure.in: Complain about lack of w32api directory.
* configure: Regenerate.

22 years ago* fhandler.cc (fhandler_base::fstat): Move dev and ino calculation into caller.
Christopher Faylor [Sun, 2 Jun 2002 03:13:22 +0000 (03:13 +0000)]
* fhandler.cc (fhandler_base::fstat): Move dev and ino calculation into caller.
* syscalls.cc (stat_worker): Calculate dev and ino calculation here, if zero.
* fhandler_proc.cc (fhandler_proc::fhandler_proc): Minor reorg for debugging.
* fhandler_process.cc (fhandler_process::exists): Return 0 on nonexistence.
(fhandler_process::fstat): Simplify pid logic.
* fhandler_tape.cc (fhandler_dev_tape::fstat): Minor reformatting.

22 years ago include/elf/
Richard Henderson [Sun, 2 Jun 2002 02:28:45 +0000 (02:28 +0000)]
include/elf/
        * alpha.h (LITUSE_ALPHA_ADDR, LITUSE_ALPHA_BASE, LITUSE_ALPHA_BYTOFF,
        LITUSE_ALPHA_JSR, LITUSE_ALPHA_TLSGD, LITUSE_ALPHA_TLSLDM): New.

gas/
        * config/tc-alpha.c: Move LITUSE constants to "elf/alpha.h".
        Rename them LITUSE_ALPHA_*.

bfd/
        * elf64-alpha.c (alpha_get_dtprel_base, alpha_get_tprel_base): New.
        (elf64_alpha_relocate_section): Use them.  Reject LE TLS relocs
        in shared libraries.  Fix DTPRELHI and TPRELHI value.
        (INSN_ADDQ, INSN_RDUNIQ): New.
        (struct alpha_relax_info): Add symtab_hdr, tls_segment, first_gotent.
        (elf64_alpha_relax_with_lituse): Return boolean.  Remove irelend
        argument.  Reject dynamic symbols.  Use LITUSE symbolic constants.
        (elf64_alpha_relax_got_load): Rename from relax_without_lituse.
        Handle GOTDTPREL and GOTTPREL relocations.
        (elf64_alpha_relax_gprelhilo): New.
        (elf64_alpha_relax_tls_get_addr): New.
        (elf64_alpha_relax_find_tls_segment): New.
        (elf64_alpha_relax_section): Handle TLS relocations.
        (ALPHA_ELF_LINK_HASH_TLS_IE): New.
        (elf64_alpha_check_relocs): Set it.

22 years ago * include/windef.h: Fix typo in last change.
Danny Smith [Sat, 1 Jun 2002 21:09:29 +0000 (21:09 +0000)]
* include/windef.h: Fix typo in last change.

22 years ago * include/windef.h: Add no-op __try, __except, __finally
Danny Smith [Sat, 1 Jun 2002 20:38:33 +0000 (20:38 +0000)]
* include/windef.h: Add no-op __try, __except, __finally
defines from ...
* include/excpt.h: Remove file.
* include/windows.h: Don't include excpt.h.

22 years ago* path.cc (chdir): Don't allow cd'ing to a non-directory virtual path.
Christopher Faylor [Sat, 1 Jun 2002 18:20:51 +0000 (18:20 +0000)]
* path.cc (chdir): Don't allow cd'ing to a non-directory virtual path.

22 years agoFill-out d10v enum so that there are no ``=''.
Andrew Cagney [Sat, 1 Jun 2002 18:15:42 +0000 (18:15 +0000)]
Fill-out d10v enum so that there are no ``=''.

22 years ago* fhandler_disk_file.cc (readdir): Move inode calculation into caller.
Christopher Faylor [Sat, 1 Jun 2002 02:45:38 +0000 (02:45 +0000)]
* fhandler_disk_file.cc (readdir): Move inode calculation into caller.
(fhandler_cygdrive::readdir): Add "." and "..".
* dir.cc (readdir): Move inode calculation here so that fhandler readdirs can
benefit.

22 years agoremove accidentally checked in test version.
Christopher Faylor [Sat, 1 Jun 2002 02:31:53 +0000 (02:31 +0000)]
remove accidentally checked in test version.

22 years agooops
Christopher Faylor [Fri, 31 May 2002 23:00:18 +0000 (23:00 +0000)]
oops

22 years ago(add the rest of the ChangeLog)
Christopher Faylor [Fri, 31 May 2002 22:59:57 +0000 (22:59 +0000)]
(add the rest of the ChangeLog)
* dtable.cc (dtable::init_std_file_from_handle): Default to using binmode
derived from path_conv, when required.
* fhandler.h (fhandler_base::get_w_binary): Default to binmode if nothing else
is specified.
* fhandler.h (fhandler_base::get_r_binary): Ditto.
* fhandler_disk_file.cc (fhandler_disk_file::fstat_by_handle): Work around g++
warning.
* path.cc (path_conv::check): Remove a debugging statement.

22 years ago* fhandler_console.cc (fhandler_console::open): Reinstate setting of flags.
Christopher Faylor [Fri, 31 May 2002 22:53:25 +0000 (22:53 +0000)]
* fhandler_console.cc (fhandler_console::open): Reinstate setting of flags.

22 years ago* fhandler_console.cc (fhandler_console::open): Always default to binmode.
Christopher Faylor [Fri, 31 May 2002 22:35:57 +0000 (22:35 +0000)]
* fhandler_console.cc (fhandler_console::open): Always default to binmode.
(fhandler_console::write_normal): Don't honor binmode setting.  There is
already a termios setting for this.
(fhandler_console::init): Correct argument order in init call.

22 years ago* fhandler.cc (fhandler_base::open): Make default open mode == binmode.
Christopher Faylor [Fri, 31 May 2002 20:48:14 +0000 (20:48 +0000)]
* fhandler.cc (fhandler_base::open): Make default open mode == binmode.
(fhandler_base::init): Set open flags based on derived binmode argument.

22 years ago* dll_init.cc (dll_list::init): Eliminate unneeded debugging statement.
Christopher Faylor [Fri, 31 May 2002 20:34:40 +0000 (20:34 +0000)]
* dll_init.cc (dll_list::init): Eliminate unneeded debugging statement.

22 years ago* fhandler_proc.cc (fhandler_proc::readdir): Set errno when no more files.
Christopher Faylor [Fri, 31 May 2002 20:30:36 +0000 (20:30 +0000)]
* fhandler_proc.cc (fhandler_proc::readdir): Set errno when no more files.
* fhandler_process.cc (fhandler_process::readdir): Ditto.
* fhandler_registry.cc (fhandler_registry::readdir): Ditto.

22 years ago2002-05-31 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Fri, 31 May 2002 20:18:59 +0000 (20:18 +0000)]
2002-05-31  Jeff Johnston  <jjohnstn@redhat.com>

        * libc/sys/linux/Makefile.am: Add sig.c and sigaction.c.  Also
        make siglist.inc dependent on sig.c instead of signal.c.
        * libc/sys/linux/Makefile.in: Regenerated.
        * libc/sys/linux/sig.c: Rename from signal.c and change code to
        use NSIG instead of _NSIG.
        * libc/sys/linux/sigaction.c: New file.
        * libc/sys/linux/signal.c: Changed to be linux signal() function
        so as to override regular newlib default signal.c.
        * libc/sys/linux/linuxthreads/config.h: Add __ASSUME_REALTIME_SIGNALS
        definition.
        * libc/sys/linux/linuxthreads/testrtsig.h: New file.
        * libc/sys/linux/machine/i386/Makefile.am: Remove sigset.c.
        * libc/sys/linux/machine/i386/Makefile.in: Regenerated.
        * libc/sys/linux/machine/i386/sigset.c: Moved to linux main directory.
        * libc/sys/linux/sigset.c: Moved from machine/i386 directory.
        * libc/sys/linux/sys/signal.h: Redefine NSIG to _NSIG and override
        default linux sigset_t typedef by defining it equal to __sigset_t.
        * libc/unix/sigset.c: Add check so code isn't compiled on systems
        with a sigset_t that isn't implemented with a single int.

22 years ago* Makefile.in: Replace HOST_PREFIX, HOST_PREFIX_1 with BUILD_PREFIX,
DJ Delorie [Fri, 31 May 2002 20:09:45 +0000 (20:09 +0000)]
* Makefile.in: Replace HOST_PREFIX, HOST_PREFIX_1 with BUILD_PREFIX,
BUILD_PREFIX_1, to correct nomenclature.
* configure: Likewise.

22 years ago* Makefile.in: Eliminate version-specific references to tcl8.1, tk8.1.
DJ Delorie [Fri, 31 May 2002 19:42:41 +0000 (19:42 +0000)]
* Makefile.in: Eliminate version-specific references to tcl8.1, tk8.1.
* configure.in: Eliminate version-specific references to tcl8.1, tk8.1.

22 years ago* config-ml.in: Propogate DESTDIR also.
DJ Delorie [Fri, 31 May 2002 19:30:32 +0000 (19:30 +0000)]
* config-ml.in: Propogate DESTDIR also.

22 years ago2002-05-31 Michal Ludvig <mludvig@suse.cz>
Michal Ludvig [Fri, 31 May 2002 15:28:33 +0000 (15:28 +0000)]
2002-05-31  Michal Ludvig  <mludvig@suse.cz>

* elf/dwarf2.h (DW_CFA_low_user, DW_CFA_high_user): Renamed
to DW_CFA_lo_user, DW_CFA_hi_user respectively.

22 years ago* path.cc (path_conv::check): Set fileattr to INVALID_FILE_ATTRIBUTES for
Christopher Faylor [Fri, 31 May 2002 03:11:21 +0000 (03:11 +0000)]
* path.cc (path_conv::check): Set fileattr to INVALID_FILE_ATTRIBUTES for
nonexistent virtual device path.
(chdir): Set correct errno when attempt is made to cd to nonexistent virtual
device path.

22 years ago[ gas/ChangeLog ]
Chris Demetriou [Fri, 31 May 2002 01:17:17 +0000 (01:17 +0000)]
[ gas/ChangeLog ]
2002-05-30  Chris G. Demetriou  <cgd@broadcom.com>
            Ed Satterthwaite  <ehs@broadcom.com>

* config/tc-mips.c (mips_set_options): New "ase_mdmx" member.
(mips_opts): Initialize "ase_mdmx" member.
(file_ase_mdmx): New variable.
(CPU_HAS_MDMX): New macro.
(md_begin): Initialize mips_opts.ase_mdmx and file_ase_mdmx
based on command line options and configuration defaults.
(macro_build): Note in comment that use of MDMX in macros is
not currently allowed.
(validate_mips_insn): Add support for the "O", "Q", "X", "Y", and
"Z" MDMX operand types.
(mips_ip): Accept MDMX instructions if mips_opts.ase_mdmx is set,
and add support for the "O", "Q", "X", "Y", and "Z" MDMX operand
types.
(OPTION_MDMX, OPTION_NO_MDMX, md_longopts, md_parse_option):
Add support for "-mdmx" and "-no-mdmx" options.
(OPTION_ELF_BASE): Move to accomodate new options.
(s_mipsset): Support ".set mdmx" and ".set nomdmx".
(mips_elf_final_processing): Set MDMX ASE ELF header flag if
file_ase_mdmx was set.
* doc/as.texinfo: Document -mdmx and -no-mdmx options.
* doc/c-mips.texi: Likewise, and document ".set mdmx" and ".set
nomdmx" directives.

[ gas/testsuite/ChangeLog ]
2002-05-30  Chris G. Demetriou  <cgd@broadcom.com>

* gas/mips/mips64-mdmx.s: New file.
* gas/mips/mips64-mdmx.d: Likewise.
* gas/mips/mips.exp: Run new "mips64-mdmx" test.

[ include/opcode/ChangeLog ]
2002-05-30  Chris G. Demetriou  <cgd@broadcom.com>

* mips.h (OP_SH_ALN, OP_MASK_ALN, OP_SH_VSEL, OP_MASK_VSEL)
(MDMX_FMTSEL_IMM_QH, MDMX_FMTSEL_IMM_OB, MDMX_FMTSEL_VEC_QH)
(MDMX_FMTSEL_VEC_OB, INSN_READ_MDMX_ACC, INSN_WRITE_MDMX_ACC)
(INSN_MDMX): New constants, for MDMX support.
(opcode character list): Add "O", "Q", "X", "Y", and "Z" for MDMX.

[ opcodes/ChangeLog ]
2002-05-30  Chris G. Demetriou  <cgd@broadcom.com>
            Ed Satterthwaite  <ehs@broadcom.com>

* mips-dis.c (print_insn_arg): Add support for 'O', 'Q', 'X', 'Y',
and 'Z' formats, for MDMX.
        (mips_isa_type): Add MDMX instructions to the ISA
bit mask for bfd_mach_mipsisa64.
* mips-opc.c: Add support for MDMX instructions.
(MX): New definition.

* mips-dis.c: Update copyright years to include 2002.

22 years ago* fhandler_disk_file.cc (fhandler_disk_file::fstat): Always call fstat_by_name
Christopher Faylor [Fri, 31 May 2002 00:15:22 +0000 (00:15 +0000)]
* fhandler_disk_file.cc (fhandler_disk_file::fstat): Always call fstat_by_name
if fd is not opened to allow fstat_by_name to properly set errno.
* fhandler.cc (binmode): Default to binmode when mode is not known.

22 years agoinclude/elf/
Richard Henderson [Thu, 30 May 2002 22:01:38 +0000 (22:01 +0000)]
include/elf/
        * alpha.h (R_ALPHA_TLSGD, R_ALPHA_TLSLDM, R_ALPHA_DTPMOD64,
        R_ALPHA_GOTDTPREL, R_ALPHA_DTPREL64, R_ALPHA_DTPRELHI,
        R_ALPHA_DTPRELLO, R_ALPHA_DTPREL16, R_ALPHA_GOTTPREL, R_ALPHA_TPREL64,
        R_ALPHA_TPRELHI, R_ALPHA_TPRELLO, R_ALPHA_TPREL16): New.

bfd/
        * elf64-alpha.c (ALPHA_ELF_LINK_HASH_LU_TLSGD,
        ALPHA_ELF_LINK_HASH_LU_TLSLDM, ALPHA_ELF_LINK_HASH_LU_FUNC): New.
        (ALPHA_ELF_GOT_ENTRY_RELOCS_DONE): Remove.
        (ALPHA_ELF_GOT_ENTRY_RELOCS_XLATED): Remove.
        (struct alpha_elf_got_entry): Add reloc_type, reloc_done, reloc_xlated.
        (struct alpha_elf_obj_tdata): Rename total_got_entries and
        n_local_got_entries to total_got_size and local_got_size.
        (elf64_alpha_howto, elf64_alpha_reloc_map): Update for TLS relocs.
        (alpha_got_entry_size): New.
        (elf64_alpha_relax_with_lituse): Use it.
        (elf64_alpha_relax_without_lituse): Likewise.
        (MAX_GOT_SIZE): Rename from MAX_GOT_ENTRIES.
        (get_got_entry): New.
        (elf64_alpha_check_relocs): Handle TLS relocs.  Reorganize.
        (elf64_alpha_adjust_dynamic_symbol): Test LU_FUNC as a mask.
        (elf64_alpha_merge_ind_symbols): Check gotent->reloc_type.
        (elf64_alpha_can_merge_gots, elf64_alpha_merge_gots): Likewise.
        (elf64_alpha_calc_got_offsets_for_symbol): Use alpha_got_entry_size.
        (elf64_alpha_calc_got_offsets): Likewise.
        (alpha_dynamic_entries_for_reloc): New.
        (elf64_alpha_calc_dynrel_sizes): Use it.
        (elf64_alpha_size_dynamic_sections): Likewise.
        (elf64_alpha_relocate_section): Handle TLS relocations.
        * reloc.c: Add Alpha TLS relocations.
        * bfd-in2.h, libbfd.h: Rebuild.

gas/
        * expr.h (operatorT): Add O_md17..O_md32.
        * config/tc-alpha.c (O_lituse_tlsgd, O_lituse_tlsldm, O_tlsgd,
        O_tlsldm, O_gotdtprel, O_dtprelhi, O_dtprello, O_dtprel, O_gottprel,
        O_tprelhi, O_tprello, O_tprel): New.
        (USER_RELOC_P, alpha_reloc_op_tag, debug_exp): Include them.
        (DUMMY_RELOC_LITUSE_TLSGD, DUMMY_RELOC_LITUSE_TLSLDM): New.
        (LITUSE_TLSGD, LITUSE_TLSLDM): New.
        (struct alpha_reloc_tag): Add master, saw_tlsgd, saw_tlsld,
        saw_lu_tlsgd, saw_lu_tlsldm.  Make multi_section_p a bit field.
        (md_apply_fix3): Handle TLS relocations.
        (alpha_force_relocation, alpha_fix_adjustable): Likewise.
        (alpha_adjust_symtab_relocs): Sort LITERAL relocs after the
        associated TLS reloc.  Check lituse_tls relocs match up.
        (emit_insn): Handle TLS relocations.
        (ldX_op): Remove.

gas/testsuite/
        * gas/alpha/elf-tls-1.s, gas/alpha/elf-tls-1.d: New.
        * gas/alpha/elf-tls-2.s, gas/alpha/elf-tls-1.l: New.
        * gas/alpha/elf-tls-3.s, gas/alpha/elf-tls-1.l: New.
        * gas/alpha/alpha.exp: Run them.

22 years ago2002-05-30 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Thu, 30 May 2002 20:51:03 +0000 (20:51 +0000)]
2002-05-30  Jeff Johnston  <jjohnstn@redhat.com>

        * libc/sys/linux/Makefile.am: Add support for new files.
        * libc/sys/linux/Makefile.in: Regenerated.
        * libc/sys/linux/ids.c: Add __getuid weak alias for getuid.
        * libc/sys/linux/signal.c: Change to use real-time syscalls for
        sigsuspend, sigprocmask, and sigpending.  Also remove sigaction as
        it is in a separate file now.
        * libc/sys/linux/machine/i386/Makefile.am
        * libc/sys/linux/machine/i386/Makefile.in
        * libc/sys/linux/sys/signal.h: Add include of <bits/signum.h>.
        * libc/sys/linux/sigaction.c: New file.
        * libc/sys/linux/sigqueue.c: Ditto.
        * libc/sys/linux/sigwait.c: Ditto.
        * libc/sys/linux/machine/i386/sigaction.c: Ditto.
        * libc/sys/linux/kernel_sigaction.h: Ditto.

22 years ago* mkpasswd.cc (main): Don't reset to binmode if stdout is a terminal.
Christopher Faylor [Thu, 30 May 2002 19:35:51 +0000 (19:35 +0000)]
* mkpasswd.cc (main): Don't reset to binmode if stdout is a terminal.

22 years ago * include/ntdef.h (ANSI_STRING, PANSI_STRING, OEM_STRING, POEM_STRING):
Corinna Vinschen [Thu, 30 May 2002 08:20:52 +0000 (08:20 +0000)]
* include/ntdef.h (ANSI_STRING, PANSI_STRING, OEM_STRING, POEM_STRING):
Add missing typedefs.

22 years ago * autoload.cc: Replace autoload statments for ZwXXX by NtXXX.
Corinna Vinschen [Thu, 30 May 2002 07:45:30 +0000 (07:45 +0000)]
* autoload.cc: Replace autoload statments for ZwXXX by NtXXX.
Drop ZwQuerySystemInformation since NtQuerySystemInformation was
already available.
* fhandler_proc.cc (format_proc_uptime): Replace call to
ZwQuerySystemInformation by call to NtQuerySystemInformation.
(format_proc_stat): Ditto.
* fhandler_process.cc (format_process_stat): Replace call to
ZwQueryInformationProcess by call to NtQueryInformationProcess.
(get_process_state): Ditto.
(get_mem_values): Ditto.  Replace call to ZwQueryVirtualMemory by
call to NtQueryVirtualMemory.
* ntdll.h: Cleanup.  Drop ZwQuerySystemInformation since
NtQuerySystemInformation was already available.  Replace declarations
of ZwXXX functions by declarations of NtXXX.
* pinfo.cc (winpids::enumNT): Replace call to ZwQuerySystemInformation
by call to NtQuerySystemInformation.

22 years ago* mount.cc (main): Make -b the default.
Christopher Faylor [Thu, 30 May 2002 03:42:19 +0000 (03:42 +0000)]
* mount.cc (main): Make -b the default.

22 years agospeling fxi
Christopher Faylor [Thu, 30 May 2002 03:14:04 +0000 (03:14 +0000)]
speling fxi

22 years ago* configure.in (vax-*-netbsd*): Don't build gas for this
Jason Thorpe [Thu, 30 May 2002 02:47:47 +0000 (02:47 +0000)]
* configure.in (vax-*-netbsd*): Don't build gas for this
platform.

22 years ago2002-05-29 Matt Thomas <matt@3am-software.com>
Jason Thorpe [Thu, 30 May 2002 01:43:48 +0000 (01:43 +0000)]
2002-05-29  Matt Thomas  <matt@3am-software.com>

* vax.h: New file

22 years ago* include/sys/cygwin.h (EXTERNAL_PINFO_VERSION): Reinstate.
Christopher Faylor [Wed, 29 May 2002 21:00:55 +0000 (21:00 +0000)]
* include/sys/cygwin.h (EXTERNAL_PINFO_VERSION): Reinstate.
* external.cc (fillout_pinfo): Use it.

22 years ago * ps.cc (main): Use uid or uid32 member of struct external_pinfo
Corinna Vinschen [Wed, 29 May 2002 20:10:27 +0000 (20:10 +0000)]
* ps.cc (main): Use uid or uid32 member of struct external_pinfo
dependent of the value of the struct's version member.

22 years ago * external.cc (fillout_pinfo): Use new version define.
Corinna Vinschen [Wed, 29 May 2002 20:07:54 +0000 (20:07 +0000)]
* external.cc (fillout_pinfo): Use new version define.
* include/sys/cygwin.h (external_pinfo): Define
EXTERNAL_PINFO_VERSION_16_BIT and EXTERNAL_PINFO_VERSION_32_BIT
instead of just EXTERNAL_PINFO_VERSION.

22 years ago* external.cc (fillout_pinfo): Set new version field in external_pinfo
Christopher Faylor [Wed, 29 May 2002 17:12:07 +0000 (17:12 +0000)]
* external.cc (fillout_pinfo): Set new version field in external_pinfo
structure.
* include/sys/cygwin.h (external_pinfo): Replace strace_file with version
field.

22 years ago * ps.cc (main): Change print format for uid to unsigned. Use uid32
Corinna Vinschen [Wed, 29 May 2002 15:07:14 +0000 (15:07 +0000)]
* ps.cc (main): Change print format for uid to unsigned.  Use uid32
member of struct external_pinfo instead of uid.

22 years ago Change internal uid datatype from __uid16_t to __uid32_t
Corinna Vinschen [Wed, 29 May 2002 15:04:29 +0000 (15:04 +0000)]
Change internal uid datatype from __uid16_t to __uid32_t
throughout.
* cygwin.din: Export new symbols getpwuid32, getpwuid_r32, getuid32,
geteuid32, setuid32, seteuid32.
* passwd.cc (getpwuid32): New function.
(getpwuid_r32): Ditto.
* syscalls.cc (seteuid32): Ditto.
(setuid32): Ditto.
* uinfo.cc (getuid32): Ditto.
(geteuid32): Ditto.
* winsup.h (uid16touid32): New macro, correclt casting from __uid16_t
to __uid32_t.
(gid16togid32): Ditto fir gids.
(getuid32): Declare.
(geteuid32): Ditto.
(getpwuid32): Ditto.
* include/sys/cygwin.h (struct external_pinfo): Add members uid32 and
gid32.

22 years ago * include/cygwin/socket.h: Protect some symbols against multiple
Corinna Vinschen [Wed, 29 May 2002 07:38:54 +0000 (07:38 +0000)]
* include/cygwin/socket.h: Protect some symbols against multiple
definition.
* include/netinet/ip.h: Ditto.
* include/netinet/tcp.h: Ditto.

* include/netinet/ip.h: Replace by BSD derived version of the file.
* include/netinet/tcp.h: Ditto.
* include/netinet/udp.h: New file.
* include/cygwin/ip.h: Remove.

22 years ago * passwd.c (prog_name): New global variable.
Corinna Vinschen [Wed, 29 May 2002 07:13:09 +0000 (07:13 +0000)]
* passwd.c (prog_name): New global variable.
(longopts): Ditto.
(opts): Ditto.
(usage): Standardize output. Accomodate new options.
(print_version): New function.
(main): Accomodate longopts and new --help, --version options.

22 years ago* dtable.cc (dtable::init_std_file_from_handle): Attempt stronger detection of
Christopher Faylor [Wed, 29 May 2002 05:15:43 +0000 (05:15 +0000)]
* dtable.cc (dtable::init_std_file_from_handle): Attempt stronger detection of
invalid handle.
(handle_to_fn): Detect pathological condition where NT resets the buffer
pointer to NULL on an invalid handle.

22 years agoclarify changelog
Christopher Faylor [Wed, 29 May 2002 03:42:12 +0000 (03:42 +0000)]
clarify changelog

22 years ago* fhandler_disk_file.cc (fhandler_disk_file::fstat_helper): Properly check for
Christopher Faylor [Wed, 29 May 2002 03:06:37 +0000 (03:06 +0000)]
* fhandler_disk_file.cc (fhandler_disk_file::fstat_helper): Properly check for
whether we should be opening the file to search for #! characters.  Set
path_conv structure execability, too, if found.

22 years ago2002-05-28 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Tue, 28 May 2002 22:26:36 +0000 (22:26 +0000)]
2002-05-28  Jeff Johnston  <jjohnstn@redhat.com>

        * libc/sys/linux/Makefile.am: Add support for cfspeed.c and
        tcsendbrk.c.
        * libc/sys/linux/Makefile.in: Regenerated.
        * libc/sys/linux/termios.c: Add tcflow(), tcflush(),
        tcgetpgrp(), and tcsetpgrp() functions.
        * libc/sys/linux/sys/termios.h: Add include of machine/termios.h
        to get __MAX_BAUD rate.
        * libc/sys/linux/machine/i386/include/termios.h: New file.
        * libc/include/machine/termios.h: Ditto.
        * libc/sys/linux/cfspeed.c: Ditto.
        * libc/sys/linux/tcsendbrk.c: Ditto.

22 years ago2002-05-28 Marek Michalkiewicz <marekm@amelek.gda.pl>
Marek Michalkiewicz [Tue, 28 May 2002 20:06:27 +0000 (20:06 +0000)]
2002-05-28  Marek Michalkiewicz  <marekm@amelek.gda.pl>

* configure.in (noconfigdirs): Don't compile libiberty, libstdcxx
and libgcj for AVR.

22 years agoAdd DLX target
Nick Clifton [Tue, 28 May 2002 17:56:42 +0000 (17:56 +0000)]
Add DLX target

22 years ago * ps.cc (usage): Fix typo.
Corinna Vinschen [Tue, 28 May 2002 14:59:36 +0000 (14:59 +0000)]
* ps.cc (usage): Fix typo.

22 years ago * security.cc (set_security_attribute): Call getegid32() instead of
Corinna Vinschen [Tue, 28 May 2002 14:58:13 +0000 (14:58 +0000)]
* security.cc (set_security_attribute): Call getegid32() instead of
getegid().
* include/cygwin/grp.h: Declare getegid32().

22 years ago Change internal gid datatype from __gid16_t to __gid32_t
Corinna Vinschen [Tue, 28 May 2002 14:10:55 +0000 (14:10 +0000)]
Change internal gid datatype from __gid16_t to __gid32_t
throughout.
* cygwin.din: Export new symbols chown32, fchown32, getegid32,
getgid32, getgrgid32, getgrnam32, getgroups32, initgroups32, lchown32,
setgid32, setegid32, getgrent32.
* grp.cc (grp32togrp16): New static function.
(getgrgid32): New function.
(getgrnam32): Ditto.
(getgrent32): Ditto.
(getgroups32): Change name of internal function from getgroups.
(getgroups32): New function.
(initgroups32): Ditto.
* syscalls.cc (chown32): Ditto.
(lchown32): Ditto.
(fchown32): Ditto.
(setegid32): Ditto.
(setgid32): Ditto.
* uinfo.cc (getgid32): Ditto.
(getegid32): Ditto.
* include/cygwin/grp.h: Remove declaration of getgrgid() and getgrnam().
Declare getgrgid32() and getgrnam32() instead.  Declare getgid32().

22 years agoAdd DLX target
Nick Clifton [Tue, 28 May 2002 14:08:26 +0000 (14:08 +0000)]
Add DLX target

22 years ago * include/w32api.h: Increment version to 1.5
Earnie Boyd [Tue, 28 May 2002 13:24:26 +0000 (13:24 +0000)]
* include/w32api.h: Increment version to 1.5
* Makefile.in: Ditto.

22 years agoMerging MinGW changes
Earnie Boyd [Tue, 28 May 2002 13:20:28 +0000 (13:20 +0000)]
Merging MinGW changes

22 years agoMerging MinGW changes
Earnie Boyd [Tue, 28 May 2002 13:13:45 +0000 (13:13 +0000)]
Merging MinGW changes

22 years ago* ps.cc (prog_name): New global variable.
Christopher Faylor [Tue, 28 May 2002 03:38:36 +0000 (03:38 +0000)]
* ps.cc (prog_name): New global variable.
(longopts): Ditto.
(opts): Ditto.
(usage): New function.
(print_version): New function.
(main): Accomodate longopts and new --help, --version options.

22 years ago* autoload.cc (noload): Properly mask low order word for determining number of
Christopher Faylor [Tue, 28 May 2002 02:09:15 +0000 (02:09 +0000)]
* autoload.cc (noload): Properly mask low order word for determining number of
bytes to pop.

22 years ago* fhandler_disk_file.cc (fhandler_disk_file::fstat): Minor logic cleanup.
Christopher Faylor [Tue, 28 May 2002 02:00:55 +0000 (02:00 +0000)]
* fhandler_disk_file.cc (fhandler_disk_file::fstat): Minor logic cleanup.

22 years ago* autoload.cc (LoadFuncEx): Define via new LoadFuncEx2 macro.
Christopher Faylor [Tue, 28 May 2002 01:55:40 +0000 (01:55 +0000)]
* autoload.cc (LoadFuncEx): Define via new LoadFuncEx2 macro.
(LoadFuncEx2): Adapted from LoadFuncEx.  Provides control of return value for
nonexistent function.
(NtQueryObject): Declare.
(IsDebuggerPresent): Declare via LoadFuncEx2 and always return true if not
available.
* debug.h (being_debugged): Just rely on IsDebuggerPresent return value.
* dtable.cc (handle_to_fn): New function.
(dtable::init_std_file_from_handle): Attempt to derive std handle's name via
handle_to_fn.
(dtable::build_fhandler_from_name): Fill in what we can in path_conv structure
when given a handle and path doesn't exist.
* fhandler.cc (fhandler_base::open): Don't set the file pointer here.  Use
pc->exists () to determine if file exists rather than calling GetFileAttributes
again.
* fhandler.h (fhandler_base::exec_state_isknown): New method.
(fhandler_base::fstat_helper): Add extra arguments to declaration.
(fhandler_base::fstat_by_handle): Declare new method.
(fhandler_base::fstat_by_name): Declare new method.
* fhandler_disk_file (num_entries): Make __stdcall.
(fhandler_base::fstat_by_handle): Define new method.
(fhandler_base::fstat_by_name): Define new method.
(fhandler_base:fstat): Call fstat_by_{handle,name} as appropriate.
(fhandler_disk_file::fstat_helper): Accept extra arguments for filling out stat
structure.  Move handle or name specific stuff to new methods above.
(fhandler_disk_file::open): Use real_path->exists rather than calling
GetFileAttributes again.
* ntdll.h (FILE_NAME_INFORMATION): Define new structure.
(OBJECT_INFORMATION_CLASS): Partially define new enum.
(OBJECT_NAME_INFORMATION): Define new structure.
(NtQueryInformationFile): New declaration.
(NtQueryObject): New declaration.
* path.cc (path_conv::fillin): Define new method.
* path.h (path_conv::fillin): Declare new method.
(path_conv::drive_thpe): Rename from 'get_drive_type'.
(path_conv::volser): Declare new method.
(path_conv::volname): Declare new method.
(path_conv::root_dir): Declare new method.
* syscalls.cc (fstat64): Send real path_conv to fstat as second argument.

22 years ago * security.cc (lsa2str): New function.
Corinna Vinschen [Mon, 27 May 2002 11:58:49 +0000 (11:58 +0000)]
* security.cc (lsa2str): New function.
(get_priv_list): Call lsa2str instead of sys_wcstombs.

22 years ago * syscalls.cc (seteuid): Do not take allow_ntsec into account.
Corinna Vinschen [Mon, 27 May 2002 11:48:15 +0000 (11:48 +0000)]
* syscalls.cc (seteuid): Do not take allow_ntsec into account.
Attempt to use an existing or new token even when the uid
matches orig_uid, but the gid is not in the process token.
Major reorganization after several incremental changes.
(setegid): Do not take allow_ntsec into account. Minor
reorganization after several incremental changes.

22 years ago2002-05-27 Ren� M�ller Fonseca <fonseca@users.sourceforge.net>
Danny Smith [Mon, 27 May 2002 09:44:17 +0000 (09:44 +0000)]
2002-05-27  Ren� M�ller Fonseca  <fonseca@users.sourceforge.net>

* include/winreg.h: (RegConnectRegistry[AW]): Replace
LP[W]STR with LPC[W]STR.
(REG_QWORD, REG_QWORD_LITTLE_ENDIAN): Add defines.
Clean up whitespace.

22 years ago2002-05-27 Rick Rankin <rick_rankin@yahoo.com>
Danny Smith [Mon, 27 May 2002 08:49:26 +0000 (08:49 +0000)]
2002-05-27  Rick Rankin  <rick_rankin@yahoo.com>

* include/winnls.h: Add #define for LOCALE_RETURN_NUMBER.

22 years ago* debug.h (being_debugged): New macro.
Christopher Faylor [Mon, 27 May 2002 02:25:28 +0000 (02:25 +0000)]
* debug.h (being_debugged): New macro.
* dtable.cc (dtable::extend): Use new macro.
* exceptions.cc (try_to_debug): Ditto.
* strace.cc (strace::hello): Only output debugging info when we think we're
being debugged.

22 years ago* winsup.h: Remove duplicate declarations of malloc_lock and malloc_unlock.
Christopher Faylor [Mon, 27 May 2002 02:09:19 +0000 (02:09 +0000)]
* winsup.h: Remove duplicate declarations of malloc_lock and malloc_unlock.

22 years agoupdate comment
Christopher Faylor [Mon, 27 May 2002 02:06:16 +0000 (02:06 +0000)]
update comment

22 years ago* strace.cc (attach_process): Don't tell process to start stracing here.
Christopher Faylor [Mon, 27 May 2002 01:49:08 +0000 (01:49 +0000)]
* strace.cc (attach_process): Don't tell process to start stracing here.
(proc_child): Do it here, instead, after first debug event.  This should work
around inexplicable races with DebugActiveProcess.
(dostrace): Pass any pid argument to proc_child.

22 years ago * ia64.h: Use #include "" instead of <> for local header files.
Alan Modra [Sat, 25 May 2002 12:53:48 +0000 (12:53 +0000)]
* ia64.h: Use #include "" instead of <> for local header files.
* sparc.h: Likewise.

22 years agoRemove unneeded sync.h, where appropriate, throughout. Remove unneeded heap.h,
Christopher Faylor [Sat, 25 May 2002 02:22:50 +0000 (02:22 +0000)]
Remove unneeded sync.h, where appropriate, throughout.  Remove unneeded heap.h,
where appropriate, throughout.  Remove unneeded exceptions.h, where
appropriate, throughout.  Remove unneeded perprocess.h, where appropriate,
throughout.

22 years ago2002-05-24 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Fri, 24 May 2002 23:44:39 +0000 (23:44 +0000)]
2002-05-24  Jeff Johnston  <jjohnstn@redhat.com>

        * libc/include/string.h: Add strnlen and strerror_r prototypes.
        * libc/string/Makefile.am: Add strnlen.c and strerror_r.c support.
        * libc/string/Makefile.in: Regenerated.
        * libc/string/strerror_r.c: New file.
        * libc/string/strnlen.c: New file.
        * libc/sys/linux/Makefile.am: Add rename.c.
        * libc/sys/linux/Makefile.in: Regenerated.
        * libc/sys/linux/rename.c: New file to override default rename.

22 years agoFix typos.
Christopher Faylor [Fri, 24 May 2002 21:11:43 +0000 (21:11 +0000)]
Fix typos.

22 years ago * libc/sys/linux/sys/cdefs.h: Add __weak_reference macros.
Thomas Fitzsimmons [Fri, 24 May 2002 18:50:29 +0000 (18:50 +0000)]
* libc/sys/linux/sys/cdefs.h: Add __weak_reference macros.
* libc/sys/linux/sys/time.h: Add conversion macros.
* libc/sys/linux/sys/types.h: Add FD_ macros.  Include <bits/types.h>.
* libc/sys/linux/ids.c: Add setresuid and syslog syscalls.
* libc/sys/linux/gethostname.c: New file.
* libc/sys/linux/seteuid.c: New file.
* libc/sys/linux/sysctl.c: New file.

22 years ago * security.cc (create_token): Call __sec_user() instead of
Corinna Vinschen [Fri, 24 May 2002 14:44:05 +0000 (14:44 +0000)]
* security.cc (create_token): Call __sec_user() instead of
sec_user() to remove dependence on allow_ntsec. Verify that
the returned sd is non-null.

22 years ago * setfacl.c (usage): Standardize usage output. Change return type to
Corinna Vinschen [Fri, 24 May 2002 14:40:14 +0000 (14:40 +0000)]
    * setfacl.c (usage): Standardize usage output. Change return type to
        static void.
        (print_version): New function.
        (longopts): Added longopts for all options.
        (main): Accommodate changes in usage function and new version option.

22 years ago2002-05-25 Robert Collins <rbtcollins@hotmail.com>
Robert Collins [Fri, 24 May 2002 14:24:33 +0000 (14:24 +0000)]
2002-05-25  Robert Collins   <rbtcollins@hotmail.com>

        * gmon.c (fake_sbrk): Correctly return -1 on failed malloc's.

22 years ago* dtable.cc (dtable::build_fhandler_from_name): Just pass posix path along to
Christopher Faylor [Fri, 24 May 2002 05:44:10 +0000 (05:44 +0000)]
* dtable.cc (dtable::build_fhandler_from_name): Just pass posix path along to
set_name via return_and_clear_normalized_path.
(dtable::build_fhandler): New method with const char * argument.
(dtable::reset_unix_path_name): Eliminate.
(dtable::dup_worker): Use correct build_fhandler method.
* mmap.cc (mmap_record::alloc_fh): Ditto.
* dtable.h (dtable::build_fhandler): New method.
(dtable::reset_unix_path_name): Eliminate.
* fhandler.cc (fhandler_base::set_name): Assume that unix_name has already been
cmalloced.
(fhandler_base::reset_unix_path_name): Eliminate.
(fhandler_base::~fhandler_base): Coercion for cfree.
* fhandler.h (fhandler_base::unix_path_name): Make const char *.
(fhandler_base::win32_path_name): Ditto.
(fhandler_base::reset_unix_path_name): Eliminate.
* fhandler_disk_file.cc (fhandler_cygdrive::set_drives): Accommodate const char
*ness of win32_path_name.
* fhandler_socket.cc (fhandler_socket::fstat): Accommodate new set_name
requirements.
* path.cc (path_conv::return_and_clear_normalized_path): New method.
(path_conv::clear_normalized_path): Eliminate.
(path_conv::~path_conv): Ditto.
(path_conv::check): Accommodate new build_fhandler method.
* path.h (path_conv::~path_conv): Eliminate.
(path_conv::clear_normalized_path): Ditto.
(path_conv::return_and_clear_normalized_path): Declare new method.

22 years ago2002-05-23 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Fri, 24 May 2002 00:13:57 +0000 (00:13 +0000)]
2002-05-23  Jeff Johnston  <jjohnstn@redhat.com>

        * libc/string/Makefile.am: Add support for strsep.c.
        * libc/string/Makefile.in: Regenerated.
        * libc/string/strsep.c: New file.
        * libc/string/strtok.c: Change to call __strtok_r service routine.
        * libc/string/strtok_r.c: Add __strtok_r routine which takes
        additional flag parameter regarding whether to skip leading delimeters.
        Change strtok_r to call __strtok_r.

22 years ago* sim-d10v.h: Delete file. Moved to include/gdb/.
Andrew Cagney [Fri, 24 May 2002 00:12:18 +0000 (00:12 +0000)]
* sim-d10v.h: Delete file.  Moved to include/gdb/.

* sim-d10v.h: New file.  Moved from include/sim-d10v.h.

* Makefile.in (INCLUDE): Add "gdb/sim-d10v.h".
* interp.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".

* d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
* Makefile.in (sim_d10v_h): Update definition.

22 years ago2002-05-23 Gareth Pearce <tilps@hotmail.com>
Jeff Johnston [Thu, 23 May 2002 22:05:54 +0000 (22:05 +0000)]
2002-05-23  Gareth Pearce  <tilps@hotmail.com>

        * libc/stdio/Makefile.am: Modify to add setbuffer.c and setlinebuf.c.
        * libc/stdio/Makefile.in: Regenerated.
        * libc/stdio/setbuffer.c: New file.
        * libc/stdio/setlinebuf.c: New file.

22 years ago* path.cc (path_conv::check): Make sure any trailing path component is part of
Christopher Faylor [Thu, 23 May 2002 20:01:46 +0000 (20:01 +0000)]
* path.cc (path_conv::check): Make sure any trailing path component is part of
potential normalized posix path.

22 years ago2002-05-23 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Thu, 23 May 2002 19:52:46 +0000 (19:52 +0000)]
2002-05-23  Jeff Johnston  <jjohnstn@redhat.com>

        * libc/sys/linux/Makefile.am: Add resource.c.
        * libc/sys/linux/Makefile.in: Regenerated.
        * libc/sys/linux/resource.c: New file.
        * libc/sys/linux/time.c: Add settimeofday, getitimer, and setitimer.
        * libc/sys/linux/machine/i386/Makefile.am: Remove syscalls.c.
        * libc/sys/linux/machine/i386/Makefile.in: Regenerated.
        * libc/sys/linux/machine/i386/syscalls.c: Removed as functions
        are now found in libc/sys/linux/resource.c.

22 years ago2002-05-23 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Thu, 23 May 2002 18:46:04 +0000 (18:46 +0000)]
2002-05-23  Jeff Johnston  <jjohnstn@redhat.com>

        * libc/include/string.h (bcmp, bcopy, bzero): Change prototypes
        to use void * pointers and comply with Single Unix spec.
        * libc/string/bcmp.c: Change to use void * instead of char *.
        * libc/string/bcopy.c: Ditto.
        * libc/string/bzero.c: Ditto.

22 years ago * elf.c (_bfd_elf_make_section_from_shdr): Set SEC_THREAD_LOCAL
Jakub Jelinek [Thu, 23 May 2002 13:12:52 +0000 (13:12 +0000)]
* elf.c (_bfd_elf_make_section_from_shdr): Set SEC_THREAD_LOCAL
for symbols from SHF_TLS section.
(_bfd_elf_print_private_bfd_data): Add PT_TLS.
(elf_fake_sections): Set SHF_TLS for SEC_THREAD_LOCAL sections.
(map_sections_to_segments): Build PT_TLS segment if necessary.
(assign_file_positions_for_segments): Likewise.
(get_program_header_size): Account for PT_TLS segment.
(swap_out_syms): Set type of BSF_THREAD_LOCAL symbols and symbols from
SEC_THREAD_LOCAL sections to STT_TLS.
* reloc.c: Add 386 and IA-64 TLS relocs.
* section.c (SEC_THREAD_LOCAL): Define.
(SEC_CONSTRUCTOR_TEXT, SEC_CONSTRUCTOR_DATA, SEC_CONSTRUCTOR_BSS):
Remove.
* elflink.h (elf_link_add_object_symbols): Support .tcommon.
(size_dynamic_sections): If DF_STATIC_TLS, set DF_FLAGS
unconditionally.
(struct elf_final_link_info): Add first_tls_sec.
(elf_bfd_final_link): Set first_tls_sec.
Compute elf_hash_table (info)->tls_segment.
(elf_link_output_extsym): Handle STT_TLS symbols.
(elf_link_input_bfd): Likewise.
* syms.c (BSF_THREAD_LOCAL): Define.
* bfd-in2.h: Rebuilt.
* libbfd.h: Rebuilt.
* elf32-i386.c (elf_i386_tls_transition, dtpoff_base, tpoff,
elf_i386_mkobject, elf_i386_object_p): New functions.
(elf_howto_table): Add TLS relocs.
(elf_i386_reloc_type_lookup): Support TLS relocs.
(elf_i386_info_to_howto_rel): Likewise.
(struct elf_i386_link_hash_entry): Add tls_type.
(struct elf_i386_obj_tdata): New.
(elf_i386_hash_entry, elf_i386_tdata, elf_i386_local_got_tls_type):
New macros.
(struct elf_i386_link_hash_table): Add tls_ldm_got.
(link_hash_newfunc): Clear tls_type.
(elf_i386_check_relocs): Support TLS relocs.
(elf_i386_gc_sweep_hook): Likewise.
(allocate_dynrelocs): Likewise.
(elf_i386_size_dynamic_sections): Likewise.
(elf_i386_relocate_section): Likewise.
(elf_i386_finish_dynamic_symbol): Likewise.
(bfd_elf32_mkobject, elf_backend_object_p): Define.
* elfxx-ia64.c (struct elfNN_ia64_dyn_sym_info): Add tprel_offset,
dtpmod_offset, dtprel_offset, tprel_done, dtpmod_done, dtprel_done,
want_tprel, want_dtpmod, want_dtprel.
(elfNN_ia64_tprel_base, elfNN_ia64_dtprel_base): New functions.
(ia64_howto_table): Add TLS relocs, rename R_IA64_LTOFF_TP22 to
R_IA64_LTOFF_TPREL22.
(elf_code_to_howto_index): Add TLS relocs.
(elfNN_ia64_check_relocs): Support TLS relocs.
(allocate_global_data_got): Account for TLS .got data.
(allocate_dynrel_entries): Account for TLS dynamic relocations.
(elfNN_ia64_install_value): Supprt TLS relocs.
(set_got_entry): Support TLS relocs.
(elfNN_ia64_relocate_section): Likewise.

* config/obj-elf.c (elf_common): Renamed from obj_elf_common.
(obj_elf_common): Call elf_common.
(obj_elf_tls_common): New function.
(elf_pseudo_tab): Support .tls_common.
(special_sections): Add .tdata and .tbss.
(obj_elf_change_section): Set SEC_THREAD_LOCAL for SHF_TLS
sections.
(obj_elf_parse_section_letters): Support T in section flags (SHF_TLS).
(obj_elf_parse_section_letters): Include T in error message.
* config/tc-ppc.c (ppc_section_letter): Likewise.
* config/tc-alpha.c (alpha_elf_section_letter): Likewise.
(tc_gen_reloc): Handle SEC_THREAD_LOCAL the same way as
SEC_MERGE.
* config/tc-sparc.c (md_apply_fix3): Likewise.
* config/tc-i386.c (tc_i386_fix_adjustable): Add TLS relocs.
Define them if not BFD_ASSEMBLER.
(lex_got): Support @TLSGD, @TLSLDM, @GOTTPOFF, @TPOFF, @DTPOFF
and @NTPOFF.
(md_apply_fix3): Add TLS relocs.
* config/tc-ia64.c (enum reloc_func): Add FUNC_DTP_MODULE,
FUNC_DTP_RELATIVE, FUNC_TP_RELATIVE, FUNC_LT_DTP_MODULE,
FUNC_LT_DTP_RELATIVE, FUNC_LT_TP_RELATIVE.
(pseudo_func): Support @dtpmod(), @dtprel() and @tprel().
(ia64_elf_section_letter): Include T in error message.
(md_begin): Support TLS operators.
(md_operand): Likewise.
(ia64_gen_real_reloc_type): Support TLS relocs.
* testsuite/gas/i386/tlspic.s: New file.
* testsuite/gas/i386/tlsd.s: New file.
* testsuite/gas/i386/tlsnopic.s: New file.
* testsuite/gas/i386/tlsd.d: New file.
* testsuite/gas/i386/tlsnopic.d: New file.
* testsuite/gas/i386/tlspic.d: New file.
* testsuite/gas/i386/i386.exp: Add tlsd, tlsnopic and tlspic tests.
* testsuite/gas/ia64/tls.s: New file.
* testsuite/gas/ia64/tls.d: New file.
* testsuite/gas/ia64/ia64.exp: Add tls test.
* write.c (adjust_reloc_syms): Don't change symbols in
SEC_THREAD_LOCAL sections to STT_SECTION + addend.

* elf/common.h (PT_TLS, SHF_TLS, STT_TLS, DF_STATIC_TLS): Define.
* elf/ia64.h (R_IA64_LTOFF_TPREL22): Renamed from R_IA64_LTOFF_TP22.
* elf/i386.h: Add TLS relocs.

* scripttempl/elf.sc: Add .rel{,a}.t{bss,data}, .tdata and .tbss.
* ldlang.c (lang_add_section): Set SEC_THREAD_LOCAL for
output section if necessary.  Handle .tbss.
(lang_size_sections): Clear _raw_size for .tbss section
(it allocates space in PT_TLS segment only).
* ldwrite.c (build_link_order): Build link order for .tbss too.

* readelf.c (get_segment_type): Add PT_TLS.
(get_elf_section_flags): Add SHF_TLS.
(get_dynamic_flags): Optimize.  Add DF_STATIC_TLS.
(process_dynamic_segment): Use puts instead of printf.
(get_symbol_type): Support STT_TLS.
* objdump.c (dump_section_header): Remove SEC_CONSTRUCTOR_TEXT,
SEC_CONSTRUCTOR_DATA, SEC_CONSTRUCTOR_BSS.
Add SEC_THREAD_LOCAL.

22 years ago * getfacl.c (usage): Standardize usage output. Change return type to
Corinna Vinschen [Thu, 23 May 2002 10:56:57 +0000 (10:56 +0000)]
* getfacl.c (usage): Standardize usage output. Change return type to
static void.
(print_version): New function.
(longopts): Added longopts for all options.
(main): Accommodate new help and version options.

22 years ago* smallprint.c (__small_vsprintf): Implement '%o' after all these years.
Christopher Faylor [Thu, 23 May 2002 06:00:49 +0000 (06:00 +0000)]
* smallprint.c (__small_vsprintf): Implement '%o' after all these years.

22 years agofix typo.
Christopher Faylor [Thu, 23 May 2002 04:48:03 +0000 (04:48 +0000)]
fix typo.

22 years ago* mount.cc (version) New global variable.
Christopher Faylor [Thu, 23 May 2002 04:19:07 +0000 (04:19 +0000)]
* mount.cc (version) New global variable.
(usage) Standardize usage output.  Accomodate new version option.
(print_version) New function.
(longopts) Accomodate new version option.
(opts) Ditto.
(main) Ditto.

22 years ago* fhandler.h (fhandler_virtual::exists): Eliminate path argument.
Christopher Faylor [Wed, 22 May 2002 22:09:58 +0000 (22:09 +0000)]
* fhandler.h (fhandler_virtual::exists): Eliminate path argument.
(fhandler_proc::exists): Ditto.
(fhandler_registry::exists): Ditto.
(fhandler_process::exists): Ditto.
* fhandler_proc.cc (fhandler_proc::exists): Ditto.  Use built-in name.
* fhandler_process.cc (fhandler_process::exists): Ditto.
(fstat): Ditto.
* fhandler_registry.cc (fhandler_registry::exists): Ditto.
(fhandler_registry::fstat): Ditto.
* fhandler_virtual.cc (fhandler_virtual::opendir): Ditto.
* path.cc (path_conv::check): Ditto.  Add debugging.
* syscalls.cc (dup): Always call dup2 for error handling.

22 years ago* acinclude.m4: Allow for PWDCMD to override hardcoded pwd.
DJ Delorie [Wed, 22 May 2002 21:06:53 +0000 (21:06 +0000)]
* acinclude.m4: Allow for PWDCMD to override hardcoded pwd.

22 years ago2002-05-22 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Wed, 22 May 2002 20:26:28 +0000 (20:26 +0000)]
2002-05-22  Jeff Johnston  <jjohnstn@redhat.com>

        * libc/sys/linux/shm_open.c: New file.
        * libc/sys/linux/shm_unlink.c: Ditto.
        * libc/sys/linux/Makefile.am: Add support for shm_open.c and
        shm_unlink.c.
        * libc/sys/linux/Makefile.in: Regenerated.
        * libc/sys/linux/sys/types.h: Add some additional checks to see
        if clock_t or time_t is already defined.

22 years ago* config.guess: Update to 2002-05-22 version.
Jason Thorpe [Wed, 22 May 2002 18:36:13 +0000 (18:36 +0000)]
* config.guess: Update to 2002-05-22 version.
* config.sub: Likewise.

22 years ago2002-05-22 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Wed, 22 May 2002 18:25:12 +0000 (18:25 +0000)]
2002-05-22  Jeff Johnston  <jjohnstn@redhat.com>

        * Makefile.am: Don't pass $toollibdir down directly in
        AM_MAKEFLAGS as it causes all multilibs to use the same toollibdir.
        Pass it under the name: top_toollibdir.
        * Makefile.in: Regenerated.

22 years ago * include/cygwin/types.h: Revert previous patch.
Corinna Vinschen [Wed, 22 May 2002 12:47:54 +0000 (12:47 +0000)]
* include/cygwin/types.h: Revert previous patch.

22 years ago * libc/include/sys/types.h: Revert previous patch.
Corinna Vinschen [Wed, 22 May 2002 12:34:12 +0000 (12:34 +0000)]
* libc/include/sys/types.h: Revert previous patch.

22 years ago * libc/include/sys/types.h: Include cygwin/types.h always under
Corinna Vinschen [Wed, 22 May 2002 11:39:07 +0000 (11:39 +0000)]
* libc/include/sys/types.h: Include cygwin/types.h always under
Cygwin, not only if _POSIX_THREADS is defined.

22 years ago * include/cygwin/types.h: Define pthread stuff only if _POSIX_THREADS
Corinna Vinschen [Wed, 22 May 2002 10:33:39 +0000 (10:33 +0000)]
* include/cygwin/types.h: Define pthread stuff only if _POSIX_THREADS
is defined.

22 years ago * cygpath.cc (usage): Change usage output slightly.
Corinna Vinschen [Wed, 22 May 2002 10:05:41 +0000 (10:05 +0000)]
* cygpath.cc (usage): Change usage output slightly.

* cygpath.cc (main): Add option l to support conversion to
Windows long file names.  Refactured code for capital options.
Support of options from file for capital options.
(dowin): New function.  Refactured from main.
(doit): Call long path conversion.
(get_long_name): New function.
(get_long_paths): New function.
(get_long_path_name_w32impl): New function.  Reimplementation
of Windows API function GetLongPathName (only 98/Me/2000/XP or
higher).
(get_short_name): Call GetShortPathName only once.
(get_short_paths): Fix calculating buffer size.
* utils.sgml: Update cygpath section for l option.

22 years agoAllow for PWDCMD to override hardcoded pwd.
Nick Clifton [Wed, 22 May 2002 09:21:32 +0000 (09:21 +0000)]
Allow for PWDCMD to override hardcoded pwd.

22 years ago2002-05-21 H.J. Lu (hjl@gnu.org)
H.J. Lu [Wed, 22 May 2002 05:07:20 +0000 (05:07 +0000)]
2002-05-21  H.J. Lu  (hjl@gnu.org)

* bfdlink.h (bfd_link_info): Add allow_multiple_definition.

22 years ago? gas/testsuite/gas/mips/rol64.d
Thiemo Seufer [Tue, 21 May 2002 23:54:46 +0000 (23:54 +0000)]
? gas/testsuite/gas/mips/rol64.d
? gas/testsuite/gas/mips/rol64.s
Index: gas/ChangeLog
===================================================================
RCS file: /cvs/src/src/gas/ChangeLog,v
retrieving revision 1.1334
diff -u -p -r1.1334 ChangeLog
--- gas/ChangeLog 21 May 2002 20:01:51 -0000 1.1334
+++ gas/ChangeLog 21 May 2002 23:32:51 -0000
@@ -1,3 +1,8 @@
+2002-05-22  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
+
+ * config/tc-mips.c (macro2): Add 64 bit drol, dror macros.
+ Optimize the rotate by zero case.
+
 2002-05-21  Nick Clifton  <nickc@cambridge.redhat.com>

  * configure.in: Remove accidental enabling of bfd_gas=yes for
Index: gas/config/tc-mips.c
===================================================================
RCS file: /cvs/src/src/gas/config/tc-mips.c,v
retrieving revision 1.123
diff -u -p -r1.123 tc-mips.c
--- gas/config/tc-mips.c 14 May 2002 23:35:59 -0000 1.123
+++ gas/config/tc-mips.c 21 May 2002 23:32:52 -0000
@@ -6686,6 +6686,17 @@ macro2 (ip)
       --mips_opts.noreorder;
       break;

+    case M_DROL:
+      macro_build ((char *) NULL, &icnt, (expressionS *) NULL, "dsubu",
+    "d,v,t", AT, 0, treg);
+      macro_build ((char *) NULL, &icnt, (expressionS *) NULL, "dsrlv",
+    "d,t,s", AT, sreg, AT);
+      macro_build ((char *) NULL, &icnt, (expressionS *) NULL, "dsllv",
+    "d,t,s", dreg, sreg, treg);
+      macro_build ((char *) NULL, &icnt, (expressionS *) NULL, "or",
+    "d,v,t", dreg, dreg, AT);
+      break;
+
     case M_ROL:
       macro_build ((char *) NULL, &icnt, (expressionS *) NULL, "subu",
     "d,v,t", AT, 0, treg);
@@ -6697,15 +6708,55 @@ macro2 (ip)
     "d,v,t", dreg, dreg, AT);
       break;

+    case M_DROL_I:
+      {
+ unsigned int rot;
+ char *l, *r;
+
+ if (imm_expr.X_op != O_constant)
+   as_bad (_("rotate count too large"));
+ rot = imm_expr.X_add_number & 0x3f;
+ if (! rot)
+   break;
+ l = (rot < 0x20) ? "dsll" : "dsll32";
+ r = ((0x40 - rot) < 0x20) ? "dsrl" : "dsrl32";
+ rot &= 0x1f;
+ macro_build ((char *) NULL, &icnt, (expressionS *) NULL, l,
+      "d,w,<", AT, sreg, rot);
+ macro_build ((char *) NULL, &icnt, (expressionS *) NULL, r,
+      "d,w,<", dreg, sreg, (0x20 - rot) & 0x1f);
+ macro_build ((char *) NULL, &icnt, (expressionS *) NULL, "or",
+      "d,v,t", dreg, dreg, AT);
+      }
+      break;
+
     case M_ROL_I:
-      if (imm_expr.X_op != O_constant)
- as_bad (_("rotate count too large"));
-      macro_build ((char *) NULL, &icnt, (expressionS *) NULL, "sll", "d,w,<",
-    AT, sreg, (int) (imm_expr.X_add_number & 0x1f));
-      macro_build ((char *) NULL, &icnt, (expressionS *) NULL, "srl", "d,w,<",
-    dreg, sreg, (int) ((0 - imm_expr.X_add_number) & 0x1f));
-      macro_build ((char *) NULL, &icnt, (expressionS *) NULL, "or", "d,v,t",
-    dreg, dreg, AT);
+      {
+ unsigned int rot;
+
+ if (imm_expr.X_op != O_constant)
+   as_bad (_("rotate count too large"));
+ rot = imm_expr.X_add_number & 0x1f;
+ if (! rot)
+   break;
+ macro_build ((char *) NULL, &icnt, (expressionS *) NULL, "sll",
+      "d,w,<", AT, sreg, rot);
+ macro_build ((char *) NULL, &icnt, (expressionS *) NULL, "srl",
+      "d,w,<", dreg, sreg, (0x20 - rot) & 0x1f);
+ macro_build ((char *) NULL, &icnt, (expressionS *) NULL, "or",
+      "d,v,t", dreg, dreg, AT);
+      }
+      break;
+
+    case M_DROR:
+      macro_build ((char *) NULL, &icnt, (expressionS *) NULL, "dsubu",
+    "d,v,t", AT, 0, treg);
+      macro_build ((char *) NULL, &icnt, (expressionS *) NULL, "dsllv",
+    "d,t,s", AT, sreg, AT);
+      macro_build ((char *) NULL, &icnt, (expressionS *) NULL, "dsrlv",
+    "d,t,s", dreg, sreg, treg);
+      macro_build ((char *) NULL, &icnt, (expressionS *) NULL, "or",
+    "d,v,t", dreg, dreg, AT);
       break;

     case M_ROR:
@@ -6719,15 +6770,44 @@ macro2 (ip)
     "d,v,t", dreg, dreg, AT);
       break;

+    case M_DROR_I:
+      {
+ unsigned int rot;
+ char *l, *r;
+
+ if (imm_expr.X_op != O_constant)
+   as_bad (_("rotate count too large"));
+ rot = imm_expr.X_add_number & 0x3f;
+ if (! rot)
+   break;
+ r = (rot < 0x20) ? "dsrl" : "dsrl32";
+ l = ((0x40 - rot) < 0x20) ? "dsll" : "dsll32";
+ rot &= 0x1f;
+ macro_build ((char *) NULL, &icnt, (expressionS *) NULL, r,
+      "d,w,<", AT, sreg, rot);
+ macro_build ((char *) NULL, &icnt, (expressionS *) NULL, l,
+      "d,w,<", dreg, sreg, (0x20 - rot) & 0x1f);
+ macro_build ((char *) NULL, &icnt, (expressionS *) NULL, "or",
+      "d,v,t", dreg, dreg, AT);
+      }
+      break;
+
     case M_ROR_I:
-      if (imm_expr.X_op != O_constant)
- as_bad (_("rotate count too large"));
-      macro_build ((char *) NULL, &icnt, (expressionS *) NULL, "srl", "d,w,<",
-    AT, sreg, (int) (imm_expr.X_add_number & 0x1f));
-      macro_build ((char *) NULL, &icnt, (expressionS *) NULL, "sll", "d,w,<",
-    dreg, sreg, (int) ((0 - imm_expr.X_add_number) & 0x1f));
-      macro_build ((char *) NULL, &icnt, (expressionS *) NULL, "or", "d,v,t",
-    dreg, dreg, AT);
+      {
+ unsigned int rot;
+
+ if (imm_expr.X_op != O_constant)
+   as_bad (_("rotate count too large"));
+ rot = imm_expr.X_add_number & 0x1f;
+ if (! rot)
+   break;
+ macro_build ((char *) NULL, &icnt, (expressionS *) NULL, "srl",
+      "d,w,<", AT, sreg, rot);
+ macro_build ((char *) NULL, &icnt, (expressionS *) NULL, "sll",
+      "d,w,<", dreg, sreg, (0x20 - rot) & 0x1f);
+ macro_build ((char *) NULL, &icnt, (expressionS *) NULL, "or",
+      "d,v,t", dreg, dreg, AT);
+      }
       break;

     case M_S_DOB:
Index: gas/testsuite/ChangeLog
===================================================================
RCS file: /cvs/src/src/gas/testsuite/ChangeLog,v
retrieving revision 1.315
diff -u -p -r1.315 ChangeLog
--- gas/testsuite/ChangeLog 20 May 2002 17:05:34 -0000 1.315
+++ gas/testsuite/ChangeLog 21 May 2002 23:32:54 -0000
@@ -1,3 +1,9 @@
+2002-05-22  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
+
+ * gas/mips/rol64.s: New file, test of drol, dror macros.
+ * gas/mips/rol64.d: Likewise.
+ * gas/mips/mips.exp: Add new test.
+
 2002-05-20  Nick Clifton  <nickc@cambridge.redhat.com>

  * gas/arm/arm.exp: Replace deprecated command line switches
Index: gas/testsuite/gas/mips/mips.exp
===================================================================
RCS file: /cvs/src/src/gas/testsuite/gas/mips/mips.exp,v
retrieving revision 1.32
diff -u -p -r1.32 mips.exp
--- gas/testsuite/gas/mips/mips.exp 4 Apr 2002 08:23:30 -0000 1.32
+++ gas/testsuite/gas/mips/mips.exp 21 May 2002 23:32:54 -0000
@@ -122,6 +122,7 @@ if { [istarget mips*-*-*] } then {
  run_dump_test "mul"
     }
     run_dump_test "rol"
+    run_dump_test "rol64"
     if !$aout { run_dump_test "sb" }
     run_dump_test "trunc"
     if !$aout { run_dump_test "ulh" }
Index: include/opcode/ChangeLog
===================================================================
RCS file: /cvs/src/src/include/opcode/ChangeLog,v
retrieving revision 1.167
diff -u -p -r1.167 ChangeLog
--- include/opcode/ChangeLog 17 May 2002 19:01:03 -0000 1.167
+++ include/opcode/ChangeLog 21 May 2002 23:32:57 -0000
@@ -1,3 +1,7 @@
+2002-05-22  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
+
+ * mips.h: Add M_DROL, M_DROL_I, M_DROR, M_DROR_I macro cases.
+
 2002-05-17  Andrey Volkov  <avolkov@sources.redhat.com>

         * h8300.h: Corrected defs of all control regs
Index: include/opcode/mips.h
===================================================================
RCS file: /cvs/src/src/include/opcode/mips.h,v
retrieving revision 1.24
diff -u -p -r1.24 mips.h
--- include/opcode/mips.h 16 Mar 2002 03:09:18 -0000 1.24
+++ include/opcode/mips.h 21 May 2002 23:32:57 -0000
@@ -526,9 +526,13 @@ enum
   M_REM_3I,
   M_REMU_3,
   M_REMU_3I,
+  M_DROL,
   M_ROL,
+  M_DROL_I,
   M_ROL_I,
+  M_DROR,
   M_ROR,
+  M_DROR_I,
   M_ROR_I,
   M_S_DA,
   M_S_DOB,
Index: opcodes/ChangeLog
===================================================================
RCS file: /cvs/src/src/opcodes/ChangeLog,v
retrieving revision 1.447
diff -u -p -r1.447 ChangeLog
--- opcodes/ChangeLog 17 May 2002 14:36:45 -0000 1.447
+++ opcodes/ChangeLog 21 May 2002 23:33:00 -0000
@@ -1,3 +1,7 @@
+2002-05-22  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
+
+ * mips-opc.c (mips_builtin_opcodes): Add drol, dror macros.
+
 Fri May 17 14:26:44 2002  J"orn Rennecke <joern.rennecke@superh.com>

  * disassemble.c (disassembler): Just use print_insn_sh for bfd_arch_sh.
Index: opcodes/mips-opc.c
===================================================================
RCS file: /cvs/src/src/opcodes/mips-opc.c,v
retrieving revision 1.32
diff -u -p -r1.32 mips-opc.c
--- opcodes/mips-opc.c 17 Mar 2002 02:42:25 -0000 1.32
+++ opcodes/mips-opc.c 21 May 2002 23:33:00 -0000
@@ -492,6 +492,10 @@ const struct mips_opcode mips_builtin_op
 {"dremu",   "z,s,t",    0x0000001f, 0xfc00ffff, RD_s|RD_t|WR_HILO,      I3      },
 {"dremu",   "d,v,t", 3,    (int) M_DREMU_3, INSN_MACRO, I3 },
 {"dremu",   "d,v,I", 3,    (int) M_DREMU_3I, INSN_MACRO, I3 },
+{"drol",    "d,v,t", 0,    (int) M_DROL, INSN_MACRO, I3 },
+{"drol",    "d,v,I", 0,    (int) M_DROL_I, INSN_MACRO, I3 },
+{"dror",    "d,v,t", 0,    (int) M_DROR, INSN_MACRO, I3 },
+{"dror",    "d,v,I", 0,    (int) M_DROR_I, INSN_MACRO, I3 },
 {"dsllv",   "d,t,s", 0x00000014, 0xfc0007ff, WR_d|RD_t|RD_s, I3 },
 {"dsll32",  "d,w,<", 0x0000003c, 0xffe0003f, WR_d|RD_t, I3 },
 {"dsll",    "d,w,s", 0x00000014, 0xfc0007ff, WR_d|RD_t|RD_s, I3 }, /* dsllv */

22 years ago2002-05-21 Dhananjay Deshpande <dhananjayd@kpit.com>
Thomas Fitzsimmons [Tue, 21 May 2002 18:20:18 +0000 (18:20 +0000)]
2002-05-21 Dhananjay Deshpande <dhananjayd@kpit.com>

* configure.host: Specify sys_dir=h8300hms for h8300-*-coff* target.

This page took 0.074691 seconds and 5 git commands to generate.