]> sourceware.org Git - newlib-cygwin.git/log
newlib-cygwin.git
13 years ago * cyglsa.c: Fix compilation with MinGW-w64 toolchains.
Corinna Vinschen [Thu, 31 Mar 2011 13:07:54 +0000 (13:07 +0000)]
* cyglsa.c: Fix compilation with MinGW-w64 toolchains.
* make-64bit-version-with-mingw-w64.sh: New file.
* cyglsa64.dll: Regenerate with MinGW-w64-gc.

13 years agoinclude/elf/
Bernd Schmidt [Thu, 31 Mar 2011 08:58:25 +0000 (08:58 +0000)]
include/elf/
* tic6x.h (R_C6000_JUMP_SPLOT, R_C6000_EHTYPE,
R_C6000_PCR_H16, R_C6000_PCR_L16): New relocs.
(SHN_TIC6X_SCOMMON): Define.

bfd/
* elf32-tic6x.h (struct elf32_tic6x_params): New.
(elf32_tic6x_setup): Declare.
* elf32-tic6x.c: Include <limits.h>.
(ELF_DYNAMIC_LINKER, DEFAULT_STACK_SIZE, PLT_ENTRY_SIZE): Define.
(struct elf32_tic6x_link_hash_table, struct elf32_link_hash_entry):
New structures.
(elf32_tic6x_link_hash_table, is_tic6x_elf): New macros.
(tic6x_elf_scom_section, tic6x_elf_scom_symbol,
tic6x_elf_scom_symbol_ptr): New static variables.
(elf32_tic6x_howto_table, elf32_tic6x_howto_table_rel,
elf32_tic6x_reloc_map): Add R_C6000_JUMP_SLOT, R_C6000_EHTYPE,
R_C6000_PCR_H16 and R_C6000_PCR_L16.
(elf32_tic6x_link_hash_newfunc, elf32_tic6x_link_hash_table_create,
elf32_tic6x_link_hash_table_free, elf32_tic6x_setup,
elf32_tic6x_using_dsbt, elf32_tic6x_install_rela,
elf32_tic6x_create_dynamic_sections, elf32_tic6x_make_got_dynreloc,
elf32_tic6x_finish_dynamic_symbol, elf32_tic6x_gc_sweep_hook,
elf32_tic6x_adjust_dynamic_symbol): New static functions.
(elf32_tic6x_relocate_section): For R_C6000_PCR_S21, convert branches
to weak symbols as required by the ABI.
Handle GOT and DSBT_INDEX relocs, and copy relocs to the output file
as needed when generating DSBT output.
(elf32_tic6x_check_relocs, elf32_tic6x_add_symbol_hook,
elf32_tic6x_symbol_processing, elf32_tic6x_section_from_bfd_section,
elf32_tic6x_allocate_dynrelocs, elf32_tic6x_size_dynamic_sections,
elf32_tic6x_always_size_sections, elf32_tic6x_modify_program_headers,
elf32_tic6x_finish_dynamic_sections, elf32_tic6x_plt_sym_val,
elf32_tic6x_copy_private_data, elf32_tic6x_link_omit_section_dynsym):
New static functions.
(ELF_MAXPAGESIZE): Define to 0x1000.
(bfd_elf32_bfd_copy_private_bfd_data,
bfd_elf32_bfd_link_hash_table_create,
bfd_elf32_bfd_link_hash_table_free, elf_backend_can_refcount,
elf_backend_want_got_plt, elf_backend_want_dynbss,
elf_backend_plt_readonly, elf_backend_got_header_size,
elf_backend_gc_sweep_hook, elf_backend_modify_program_headers,
elf_backend_create_dynamic_sections, elf_backend_adjust_dynamic_symbol,
elf_backend_check_relocs, elf_backend_add_symbol_hook,
elf_backend_symbol_processing, elf_backend_link_output_symbol_hook,
elf_backend_section_from_bfd_section,
elf_backend_finish_dynamic_symbol, elf_backend_always_size_sections,
elf32_tic6x_size_dynamic_sections, elf_backend_finish_dynamic_sections,
elf_backend_omit_section_dynsym, elf_backend_plt_sym_val): Define.

* bfd/reloc.c (BFD_RELOC_C6000_JUMP_SLOT, BFD_RELOC_C6000_EHTYPE,
BFD_RELOC_C6000_PCR_H16, BFD_RELOC_C6000_PCR_S16): Add.
* bfd/bfd-in2.h: Regenerate.
* bfd/libbfd.h: Regenerate.
* config.bfd: Accept tic6x-*-* instead of tic6x-*-elf.

gas/
* config/tc-tic6x.c (sbss_section, scom_section, scom_symbol): New
static variables.
(md_begin): Initialize them.
(s_tic6x_scomm): New static function.
(md_pseudo_table): Add "scomm".
(tc_gen_reloc): Really undo all adjustments made by
bfd_install_relocation.
* doc/c-tic6x.texi: Document the .scomm directive.

gas/testsuite/
* gas/tic6x/scomm-directive-1.s: New test.
* gas/tic6x/scomm-directive-1.d: New test.
* gas/tic6x/scomm-directive-2.s: New test.
* gas/tic6x/scomm-directive-2.d: New test.
* gas/tic6x/scomm-directive-3.s: New test.
* gas/tic6x/scomm-directive-3.d: New test.
* gas/tic6x/scomm-directive-4.s: New test.
* gas/tic6x/scomm-directive-4.d: New test.
* gas/tic6x/scomm-directive-5.s: New test.
* gas/tic6x/scomm-directive-5.d: New test.
* gas/tic6x/scomm-directive-6.s: New test.
* gas/tic6x/scomm-directive-6.d: New test.
* gas/tic6x/scomm-directive-7.s: New test.
* gas/tic6x/scomm-directive-7.d: New test.
* gas/tic6x/scomm-directive-8.s: New test.
* gas/tic6x/scomm-directive-8.d: New test.

ld/
* emulparams/elf32_tic6x_le.sh (BIG_OUTPUT_FORMAT, EXTRA_EM_FILE,
GENERATE_SHLIB_SCRIPT): New defines.
(TEXT_START_ADDR): Define differently depending on target.
(.got): Redefine to include "*(.dsbt)".
(SDATA_START_SYMBOLS): Remove, replace with
(OTHER_GOT_SYMBOLS): New.
(OTHER_BSS_SECTIONS): Define only for ELF targets.
* emultempl/tic6xdsbt.em: New file.
* gen-doc.texi: Set C6X.
* ld.texinfo: Likewise.
(Options specific to C6X uClinux targets): New section.

binutils/
* readelf.c (get_symbol_index_type): Handle SCOM for TIC6X.
(dump_relocations): Likewise.

binutils/testsuite/
* lib/binutils-common.exp (is_elf_format): Accept tic6x*-*-uclinux*.

ld/testsuite/
* ld-scripts/crossref.exp: Add CFLAGS for tic6x*-*-*.
* ld-elf/sec-to-seg.exp: Remove tic6x from list of targets defining
pagesize to 1.
* ld-tic6x/tic6x.exp: Add support for DSBT shared library/executable
linking tests.
* ld-tic6x/dsbt.ld: New linker script.
* ld-tic6x/dsbt-be.ld: New linker script.
* ld-tic6x/dsbt-overflow.ld: New linker script.
* ld-tic6x/dsbt-inrange.ld: New linker script.
* ld-tic6x/shlib-1.s: New test.
* ld-tic6x/shlib-2.s: New test.
* ld-tic6x/shlib-app-1r.s: New test.
* ld-tic6x/shlib-app-1.s: New test.
* ld-tic6x/shlib-1.sd: New test.
* ld-tic6x/shlib-1.dd: New test.
* ld-tic6x/shlib-app-1.rd: New test.
* ld-tic6x/shlib-app-1rb.rd: New test.
* ld-tic6x/shlib-app-1.sd: New test.
* ld-tic6x/static-app-1rb.od: New test.
* ld-tic6x/shlib-app-1.dd: New test.
* ld-tic6x/shlib-app-1rb.sd: New test.
* ld-tic6x/static-app-1b.od: New test.
* ld-tic6x/static-app-1r.od: New test.
* ld-tic6x/shlib-1rb.rd: New test.
* ld-tic6x/shlib-app-1rb.dd: New test.
* ld-tic6x/shlib-1rb.sd: New test.
* ld-tic6x/shlib-1rb.dd: New test.
* ld-tic6x/shlib-app-1b.od: New test.
* ld-tic6x/tic6x.exp: New test.
* ld-tic6x/static-app-1rb.rd: New test.
* ld-tic6x/shlib-app-1r.od: New test.
* ld-tic6x/static-app-1.od: New test.
* ld-tic6x/static-app-1b.rd: New test.
* ld-tic6x/static-app-1r.rd: New test.
* ld-tic6x/static-app-1rb.sd: New test.
* ld-tic6x/static-app-1b.sd: New test.
* ld-tic6x/static-app-1rb.dd: New test.
* ld-tic6x/static-app-1r.sd: New test.
* ld-tic6x/static-app-1b.dd: New test.
* ld-tic6x/shlib-1b.rd: New test.
* ld-tic6x/static-app-1r.dd: New test.
* ld-tic6x/shlib-app-1b.rd: New test.
* ld-tic6x/shlib-1r.rd: New test.
* ld-tic6x/shlib-app-1r.rd: New test.
* ld-tic6x/shlib-1b.sd: New test.
* ld-tic6x/static-app-1.rd: New test.
* ld-tic6x/shlib-app-1b.sd: New test.
* ld-tic6x/shlib-1r.sd: New test.
* ld-tic6x/shlib-1b.dd: New test.
* ld-tic6x/shlib-app-1r.sd: New test.
* ld-tic6x/shlib-app-1b.dd: New test.
* ld-tic6x/shlib-1r.dd: New test.
* ld-tic6x/static-app-1.sd: New test.
* ld-tic6x/shlib-app-1r.dd: New test.
* ld-tic6x/static-app-1.dd: New test.
* ld-tic6x/shlib-noindex.rd: New test.
* ld-tic6x/shlib-noindex.dd: New test.
* ld-tic6x/shlib-noindex.sd: New test.
* ld-tic6x/got-reloc-local-1.s: New test.
* ld-tic6x/got-reloc-local-2.s: New test.
* ld-tic6x/got-reloc-local-r.d: New test.
* ld-tic6x/got-reloc-global.s: New test.
* ld-tic6x/got-reloc-global-addend-1.d: New test.
* ld-tic6x/got-reloc-global-addend-1.s: New test.
* ld-tic6x/got-reloc-global-addend-2.d: New test.
* ld-tic6x/got-reloc-inrange.d: New test.
* ld-tic6x/got-reloc-overflow.d: New test.
* ld-tic6x/got-reloc-global-addend-2.s: New test.
* ld-tic6x/dsbt-index-error.d: New test.
* ld-tic6x/dsbt-index.d: New test.
* ld-tic6x/dsbt-index.s: New test.
* ld-tic6x/shlib-app-1.od: New test.
* ld-tic6x/shlib-app-1rb.od: New test.
* ld-tic6x/shlib-1.rd: New test.
* ld-tic6x/weak.d: New test.
* ld-tic6x/weak-be.d: New test.
* ld-tic6x/weak.s: New test.
  * ld-tic6x/weak-data.d: New test.
* ld-tic6x/common.d: New test.
* ld-tic6x/common.ld: New test.
* ld-tic6x/common.s: New test.

13 years agoinclude/coff
Tristan Gingold [Thu, 31 Mar 2011 08:13:48 +0000 (08:13 +0000)]
include/coff
2011-03-31  Tristan Gingold  <gingold@adacore.com>

* internal.h (C_NULL_VALUE): Define.

bfd/
2011-03-31  Tristan Gingold  <gingold@adacore.com>

* coffcode.h (coff_slurp_symbol_table): Silently discard C_NULL
entry on xcoff when value is C_NULL_VALUE.

13 years agobinutils/
Tristan Gingold [Thu, 31 Mar 2011 07:49:45 +0000 (07:49 +0000)]
binutils/
2011-03-31  Tristan Gingold  <gingold@adacore.com>

* readelf.c (get_ia64_vms_note_type): New function.
(print_ia64_vms_note): Ditto.
(process_note): Recognize VMS/ia64 specific notes.
Display them.
(process_corefile_note_segment): Decode VMS notes.

include/elf
2011-03-31  Tristan Gingold  <gingold@adacore.com>

* ia64.h (Elf64_External_VMS_Note): New struct.
(NT_VMS_MHD, NT_VMS_LNM, NT_VMS_SRC, NT_VMS_TITLE, NT_VMS_EIDC,
NT_VMS_FPMODE, NT_VMS_LINKTIME, NT_VMS_IMGNAM, NT_VMS_IMGID
NT_VMS_LINKID, NT_VMS_IMGBID, NT_VMS_GSTNAM, NT_VMS_ORIG_DYN)
NT_VMS_PATCHTIME) New macros.

13 years agoFix ChangeLog entry.
Corinna Vinschen [Wed, 30 Mar 2011 21:58:58 +0000 (21:58 +0000)]
Fix ChangeLog entry.

13 years ago * hires.h: Fix copyright.
Corinna Vinschen [Wed, 30 Mar 2011 21:54:09 +0000 (21:54 +0000)]
* hires.h: Fix copyright.
* times.cc: Ditto.
localtime, gmtime).
(FACTOR): Add comment.
(NSPERSEC): Ditto.
(JITTER): New definition.  Comment.
(systime_ns): Avoid gratuitous copying of the value returned by
GetSystemTimeAsFileTime.
(corelocaltime, localtime, gmtime): Remove very old, unused code block.
(cygwin_tzset): Remove.
(hires_ms::timeGetTime_ns): Add missing semicolon in comment.
(hires_ms::nsecs): Redefine check for difference between internal
timer value and system time.

13 years ago * times.cc (hires_ms::resolution): Make sure resolution is never 0.
Corinna Vinschen [Wed, 30 Mar 2011 11:30:34 +0000 (11:30 +0000)]
* times.cc (hires_ms::resolution): Make sure resolution is never 0.
(clock_setres): Ditto.

13 years ago * regtool.cc (cmd_set): Avoid a compiler warning.
Corinna Vinschen [Wed, 30 Mar 2011 08:22:59 +0000 (08:22 +0000)]
* regtool.cc (cmd_set): Avoid a compiler warning.

13 years ago*** empty log message ***
Corinna Vinschen [Tue, 29 Mar 2011 11:18:20 +0000 (11:18 +0000)]
*** empty log message ***

13 years ago * cygtls.h (struct _local_storage): Redefine process_ident as wchar_t
Corinna Vinschen [Tue, 29 Mar 2011 11:18:10 +0000 (11:18 +0000)]
* cygtls.h (struct _local_storage): Redefine process_ident as wchar_t
pointer.
* syslog.cc (CYGWIN_LOG_NAME): Convert to wide char constant.
(openlog): Convert incoming ident string to wide char.  Fix formatting.
(vsyslog): Print ident string as wide char string.  Convert message
string to wide char and call UNICODE Win32 Event functions to make sure
to use correct codeset.
* tlsoffset.h: Regenerate.

13 years ago * fhandler_socket.cc (get_inet_addr): Make externally available.
Corinna Vinschen [Tue, 29 Mar 2011 11:07:23 +0000 (11:07 +0000)]
* fhandler_socket.cc (get_inet_addr): Make externally available.
* autoload.cc (GetUdpTable): Define.
* syslog.cc (connect_syslogd): Use get_inet_addr rather than _stat64
to check for local socket file.  Create socket with type returned by
get_inet_addr.  If connect on UDP socket works, test if there's
really a listening peer, otherwise fall back to Windows event log.
(try_connect_syslogd): Use syslogd_inited flag to check if syslogd
is available.

13 years ago * cygcheck.cc (handle_unique_object_name): Avoid a compiler warning.
Corinna Vinschen [Tue, 29 Mar 2011 11:02:58 +0000 (11:02 +0000)]
* cygcheck.cc (handle_unique_object_name): Avoid a compiler warning.
(dump_sysinfo): Ditto.
* loadlib.h (_load_sys_library): Mark as used, to avoid a compiler
warning.
* path.cc (oopt): Gurad with !FSTAB_ONLY to avoid a compiler warning.
(read_flags): Ditto.

13 years ago * uinfo.cc (cygheap_user::env_domain): Use LookupAccountSidW and
Corinna Vinschen [Tue, 29 Mar 2011 10:46:04 +0000 (10:46 +0000)]
* uinfo.cc (cygheap_user::env_domain): Use LookupAccountSidW and
convert user and domain to multibyte strings to make sure to use
correct codeset.

13 years ago * autoload.cc (UuidCreate): Remove.
Corinna Vinschen [Tue, 29 Mar 2011 10:42:11 +0000 (10:42 +0000)]
* autoload.cc (UuidCreate): Remove.
(UuidCreateSequential): Remove.
* passwd.cc (internal_getpwsid): Avoid a strict-aliasing compiler
error with gcc 4.5.1.
* fhandler_floppy.cc (fhandler_dev_floppy::get_drive_info): Ditto.
* ntdll.h (NtAllocateUuids): Declare.
* syscalls.cc (gethostid): Use NtAllocateUuids function rather than
UuidCreateSequential/UuidCreate to get rid of rpcrt4 dependency.

13 years ago * new-features.sgml (ov-new1.7.10): Document pthread spinlocks.
Corinna Vinschen [Tue, 29 Mar 2011 10:35:08 +0000 (10:35 +0000)]
* new-features.sgml (ov-new1.7.10): Document pthread spinlocks.

13 years ago * cygwin.din (pthread_spin_destroy): Export.
Corinna Vinschen [Tue, 29 Mar 2011 10:32:40 +0000 (10:32 +0000)]
* cygwin.din (pthread_spin_destroy): Export.
(pthread_spin_init): Export.
(pthread_spin_lock): Export.
(pthread_spin_trylock): Export.
(pthread_spin_unlock): Export.
* posix.sgml (std-susv4): Add pthread_spin_destroy, pthread_spin_init,
pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock.
(std-notimpl): Remove pthread_spin_[...].
* pthread.cc (pthread_spin_init): New function.
* thread.cc (pthread_spinlock::is_good_object): New function.
(pthread_mutex::pthread_mutex): Rearrange initializers to accommodate
protected data in pthread_mutex.
(pthread_spinlock::pthread_spinlock): New constructor.
(pthread_spinlock::lock): New method.
(pthread_spinlock::unlock): New method.
(pthread_spinlock::init): New method.
(pthread_spin_lock): New function.
(pthread_spin_trylock): New function.
(pthread_spin_unlock): New function.
(pthread_spin_destroy): New function.
* thread.h (PTHREAD_SPINLOCK_MAGIC): Define.
(class pthread_mutex): Change access level of members shared with
derived classes to protected.
(pthread_mutex::set_shared): New protected method.
(class pthread_spinlock): New class, derived class of pthread_mutex.
* include/pthread.h (pthread_spin_destroy): Declare.
(pthread_spin_init): Declare.
(pthread_spin_lock): Declare.
(pthread_spin_trylock): Declare.
(pthread_spin_unlock): Declare.
* include/cygwin/types.h (pthread_spinlock_t): New typedef.
* include/cygwin/version.h (CYGWIN_VERSION_API_MINOR): Bump.

13 years ago * net.cc (SIO_BASE_HANDLE): Define.
Corinna Vinschen [Tue, 29 Mar 2011 10:25:20 +0000 (10:25 +0000)]
* net.cc (SIO_BASE_HANDLE): Define.
(fdsock): If we got an LSP handle, try to create a copy of the base
handle instead.  Change comment to explain.

13 years ago * include/cygwin/version.h: Bump CYGWIN_VERSION_DLL_MINOR to 10.
Corinna Vinschen [Tue, 29 Mar 2011 10:24:19 +0000 (10:24 +0000)]
* include/cygwin/version.h: Bump CYGWIN_VERSION_DLL_MINOR to 10.

13 years ago * autoload.cc (winmm): Remove time functions. Don't treat
Corinna Vinschen [Tue, 29 Mar 2011 10:21:30 +0000 (10:21 +0000)]
* autoload.cc (winmm): Remove time functions.  Don't treat
unloadable wave functions as fatal.
* hires.h (hires_ms::timeGetTime_ns): New private method.
(hires_ms::dmsecs): Call timeGetTime_ns here.
* ntdll.h (struct _KSYSTEM_TIME): Define.
(KUSER_SHARED_DATA): Redefine to allow access to InterruptTime.
(SharedUserData): Define here.
(NtQueryTimerResolution): Declare.
(NtSetTimerResolution): Declare.
* path.cc (SharedUserData): Move to ntdll.h.
* times.cc (hires_ms::timeGetTime_ns): New private method.
Use throughout instead of timeGetTime.  Document entire functionality
of timeGetTime in case we need it.
(hires_ms::resolution): Try a call to NtQueryTimerResolution
to fetch current period.  Fall back to heuristic if that fails.
Cast to DWORD in assignments to minperiod.
(clock_setres): Align period to possible values per a call to
NtQueryTimerResolution.  Explain why.  Replace calls to timeBeginPeriod
and timeEndPeriod with underlying call to NtSetTimerResolution.  Use
status code from NtSetTimerResolution to compute errno.
Convert period to ULONGLONG and store 100ns value to simplify code.

13 years ago * include/userenv.h: Add functions and definitions added with Windows
Corinna Vinschen [Tue, 29 Mar 2011 08:43:17 +0000 (08:43 +0000)]
* include/userenv.h: Add functions and definitions added with Windows
2000 and Vista.

13 years ago * include/sys/xattr.h: New file.
Corinna Vinschen [Tue, 29 Mar 2011 08:03:35 +0000 (08:03 +0000)]
* include/sys/xattr.h: New file.

13 years ago * thread.cc (semaphore::init, destroy, close): Standards conformance
Corinna Vinschen [Tue, 29 Mar 2011 07:49:25 +0000 (07:49 +0000)]
* thread.cc (semaphore::init, destroy, close): Standards conformance
fix.  On a failure, return -1 and set errno.
* thread.h (semaphore::terminate): Save errno since semaphore::close()
may now modify it.

13 years ago * setfacl.c (strchrnul): Drop local implementation.
Corinna Vinschen [Mon, 28 Mar 2011 21:21:03 +0000 (21:21 +0000)]
* setfacl.c (strchrnul): Drop local implementation.

13 years ago * new-features.sgml (ov-new1.7.9): Add "new API" paragraph.
Corinna Vinschen [Mon, 28 Mar 2011 15:01:19 +0000 (15:01 +0000)]
* new-features.sgml (ov-new1.7.9): Add "new API" paragraph.

13 years ago * cygwin.din (strchrnul): Export.
Corinna Vinschen [Mon, 28 Mar 2011 14:55:20 +0000 (14:55 +0000)]
* cygwin.din (strchrnul): Export.
* include/cygwin/version.h (CYGWIN_VERSION_API_MINOR): Bump.
* posix.sgml (std-gnu): Add strchrnul.

13 years agoCheck in strchrnul.c file missing in previous checkin
Corinna Vinschen [Mon, 28 Mar 2011 14:52:17 +0000 (14:52 +0000)]
Check in strchrnul.c file missing in previous checkin

13 years ago * libc/include/string.h (strchrnul): Declare.
Corinna Vinschen [Mon, 28 Mar 2011 14:51:28 +0000 (14:51 +0000)]
* libc/include/string.h (strchrnul): Declare.
* libc/string/strchrnul.c: New file.
* libc/string/Makefile.am (ELIX_2_SOURCES): Add strchrnul.c.
* libc/string/Makefile.in: Regenerate.

13 years ago * configure.ac (i[[3456789]]86-*-msdosdjgpp*): Don't disable
Joseph Myers [Mon, 28 Mar 2011 13:14:27 +0000 (13:14 +0000)]
* configure.ac (i[[3456789]]86-*-msdosdjgpp*): Don't disable
libffi on host.
(x86_64-*-mingw*, i[[3456789]]86-*-mingw32*): Don't disable newlib
on host.
(c54x*-*-* | tic54x-*-*): Don't disable newlib on host.
* configure: Regenerate.

13 years agoAdd support for DragonFlyBSD target.
Nick Clifton [Mon, 28 Mar 2011 11:18:20 +0000 (11:18 +0000)]
Add support for DragonFlyBSD target.

13 years ago* dll_init.cc (dll::init): Accommodate ill-behaved dlls who don't fill out
Christopher Faylor [Sun, 27 Mar 2011 19:14:02 +0000 (19:14 +0000)]
* dll_init.cc (dll::init): Accommodate ill-behaved dlls who don't fill out
p.envptr.

13 years agofix typo in previous changelog entry
Michael Frysinger [Sun, 27 Mar 2011 03:48:44 +0000 (03:48 +0000)]
fix typo in previous changelog entry

13 years agolibgloss: bfin: fix asm constraints for raise/excpt helpers
Michael Frysinger [Sun, 27 Mar 2011 03:47:30 +0000 (03:47 +0000)]
libgloss: bfin: fix asm constraints for raise/excpt helpers

The RAISE and EXPT insns take a constant, not a register.  So make
sure the asm constraints reflect this.

13 years agolibgloss: bfin: abort on install errors
Michael Frysinger [Sun, 27 Mar 2011 03:40:00 +0000 (03:40 +0000)]
libgloss: bfin: abort on install errors

13 years ago2011-03-25 Chris Sutcliffe <ir0nh34d@users.sf.net>
Chris Sutcliffe [Sat, 26 Mar 2011 03:47:54 +0000 (03:47 +0000)]
2011-03-25  Chris Sutcliffe  <ir0nh34d@users.sf.net>

        * Makefile.in: Increment CYGRELEASE to 2.

13 years ago2011-03-25 Chris Sutcliffe <ir0nh34d@users.sf.net>
Chris Sutcliffe [Sat, 26 Mar 2011 03:41:23 +0000 (03:41 +0000)]
2011-03-25  Chris Sutcliffe  <ir0nh34d@users.sf.net>

        * lib/Makefile.in: Include GDIPLUS_HEADERS in dist target.

13 years ago * mmap.cc (mmap64): Add a cheat to let a certain autoconf test succeed
Corinna Vinschen [Fri, 25 Mar 2011 20:39:26 +0000 (20:39 +0000)]
* mmap.cc (mmap64): Add a cheat to let a certain autoconf test succeed
on 64 bit systems.  Explain why.

13 years ago2011-03-24 Mark Wielaard <mjw@redhat.com>
Tom Tromey [Fri, 25 Mar 2011 15:45:38 +0000 (15:45 +0000)]
2011-03-24  Mark Wielaard  <mjw@redhat.com>

* dwarf2.h (dwarf_form): Remove deprecated DW_FORM_sig8 define.

13 years ago * configure.ac (native_only): Remove.
Joseph Myers [Fri, 25 Mar 2011 13:08:19 +0000 (13:08 +0000)]
* configure.ac (native_only): Remove.
(i[[3456789]]86-*-msdosdjgpp*): Don't disable expect dejagnu
send-pr uudecode guile gnuserv on host.
(x86_64-*-mingw*): Don't disable expect dejagnu autoconf automake
send-pr rcs guile perl texinfo libtool on host.
(i[[3456789]]86-*-mingw32*): Don't disable expect dejagnu autoconf
automake send-pr rcs guile perl texinfo libtool on host.
(*-*-cygwin*, *-*-netbsd*): Remove host cases.
(*-*-kaos*): Don't disable target-examples target-gperf on target.
(alpha*-dec-osf*): Don't disable fileutils on target.
(sh*-*-pe|mips*-*-pe|*arm-wince-pe): Don't disable target-examples
texinfo send-pr expect dejagnu on target.
(arm-*-elf* | arm*-*-eabi*, arm*-*-linux-gnueabi): Don't disable
target-qthreads on target.
(hppa*-hp-hpux11*, hppa*-*-*): Don't disable shellutils on target.
(ia64*-*-elf*, ia64*-*-*vms*): Don't disable mmalloc on target.
(i[[3456789]]86-w64-mingw*, i[[3456789]]86-*-mingw*,
x86_64-*-mingw*): Don't disable expect on target.
(*-*-cygwin*): Don't disable target-gperf on target.
(powerpc*-*-winnt* | powerpc*-*-pe*): Don't disable make expect
gnuserv on target.
(powerpcle-*-solaris*): Don't disable make expect gnuserv on
target.
* configure: Regenerate.

13 years ago * configure.ac (target_tools): Remove target-groff.
Joseph Myers [Fri, 25 Mar 2011 11:36:41 +0000 (11:36 +0000)]
* configure.ac (target_tools): Remove target-groff.
(native_only): Remove target-groff.
(hppa*64*-*-*): Don't disable byacc.
(i[[3456789]]86-*-mingw32*): Remove commented-out noconfigdirs
setting.
(*-*-kaos*): Don't skip target-librx and target-groff.
(*-*-netware*): Don't skip target-libmudflap.
(*-*-tpf*): Don't skip target-libmudflap.
(sh*-*-pe|mips*-*-pe|*arm-wince-pe): Don't condition configured
directories on the host.
(ia64*-*-*vms*): Don't skip tix.
(sh-*-* | sh64-*-*): Don't condition skipped directories on the
host.
* configure: Regenerate.

13 years ago2011-03-24 Paolo Bonzini <pbonzini@redhat.com>
Paolo Bonzini [Thu, 24 Mar 2011 17:50:32 +0000 (17:50 +0000)]
2011-03-24  Paolo Bonzini  <pbonzini@redhat.com>

        * configure.ac: Remove references to mt-mep, mt-netware,
        mt-wince.
        * Makefile.def: Add all-utils soft dependencies.
        * Makefile.tpl: Remove GDB_NLM_DEPS.
        * configure: Regenerate.
        * Makefile.in: Regenerate.

config:
2011-03-24  Paolo Bonzini  <pbonzini@redhat.com>

        * mt-mep: Remove, obsolete.
        * mt-netware: Remove, obsolete.
        * mt-wince: Remove, obsolete.
        * mt-v810: Remove, unused.

13 years ago2011-03-24 Paolo Bonzini <bonzini@gnu.org>
Paolo Bonzini [Thu, 24 Mar 2011 17:31:20 +0000 (17:31 +0000)]
2011-03-24  Paolo Bonzini  <bonzini@gnu.org>

Sync from GCC:

2011-03-24  Paolo Bonzini  <bonzini@gnu.org>

* configure.ac: Remove empty cases.
* configure: Regenerate.

2011-03-24  Paolo Bonzini  <bonzini@gnu.org>

* Makefile.def: Add dependency from termcap to gdb.
* Makefile.in: Regenerate.

2011-03-24  Paolo Bonzini  <bonzini@gnu.org>

* configure.ac: Remove all mentions of mh-sysv4 and mh-solaris.
* configure: Regenerate.
* Makefile.def: Remove all mentions of X11_FLAGS_TO_PASS.
* Makefile.tpl: Likewise.
* Makefile.in: Regenerate.

2011-03-24  Paolo Bonzini  <bonzini@gnu.org>

* configure.ac: Remove all mentions of tentative_cc.
* configure: Regenerate.

2011-03-16  Jack Howarth  <howarth@bromo.med.uc.edu>

PR lto/48086
* configure.ac: Re-enable LTO on *-apple-darwin9.
* configure: Regenerate.

config:
2011-03-24  Paolo Bonzini  <bonzini@gnu.org>

Sync from GCC:

2011-03-24  Paolo Bonzini  <bonzini@gnu.org>

* mh-cygwin: Remove obsolete variables and dependencies.

2011-03-24  Paolo Bonzini  <bonzini@gnu.org>

* mh-sysv4: Remove.
* mh-solaris: Remove.

2011-03-24  Paolo Bonzini  <bonzini@gnu.org>

* mh-sysv4: Remove AR_CFLAGS.

13 years ago2011-03-24 Paolo Bonzini <bonzini@gnu.org>
Paolo Bonzini [Thu, 24 Mar 2011 16:55:11 +0000 (16:55 +0000)]
2011-03-24  Paolo Bonzini  <bonzini@gnu.org>

* mh-sysv4: Remove AR_CFLAGS.

13 years ago * configure.ac (i[[3456789]]86-*-vsta, i[[3456789]]86-*-go32*,
Joseph Myers [Thu, 24 Mar 2011 16:52:11 +0000 (16:52 +0000)]
* configure.ac (i[[3456789]]86-*-vsta, i[[3456789]]86-*-go32*,
i[[3456789]]86-*-beos*, powerpc-*-beos*, m68k-hp-hpux*,
m68k-apollo-sysv*, m68k-apollo-bsd*, m88k-dg-dgux*,
m88k-harris-cxux*, m88k-motorola-sysv*, mips*-dec-ultrix*,
mips*-nec-sysv4*, mips*-sgi-irix4*, mips*-*-sysv4*, mips*-*-sysv*,
i370-ibm-opened*, i[[3456789]]86-*-sysv5*, i[[3456789]]86-*-dgux*,
i[[3456789]]86-ncr-sysv4.3*, i[[3456789]]86-ncr-sysv4*,
i[[3456789]]86-*-sco3.2v5*, i[[3456789]]86-*-sco*,
i[[3456789]]86-*-udk*, vax-*-ultrix2*, m68k-sun-sunos*,
hppa*-*-hiux*, *-*-hiux*, rs6000-*-lynxos*, *-*-sysv4*,
*-*-rhapsody*): Remove host cases.
* configure: Regenerate.

config:
* mh-cxux, mh-decstation, mh-dgux386, mh-lynxrs6k, mh-ncr3000,
mh-necv4, mh-sco, mh-sysv5: Remove.

13 years ago * xstormy16/crt0.s (_hwint): Fix .size directive.
Nick Clifton [Thu, 24 Mar 2011 16:29:11 +0000 (16:29 +0000)]
* xstormy16/crt0.s (_hwint): Fix .size directive.

13 years ago * frv/crt0.S (__frv_fix_usrptrs): Fix .size directive.
Nick Clifton [Thu, 24 Mar 2011 16:24:36 +0000 (16:24 +0000)]
* frv/crt0.S (__frv_fix_usrptrs): Fix .size directive.

13 years ago * configure.ac (ppc*-*-pe): Remove host case.
Joseph Myers [Thu, 24 Mar 2011 13:25:45 +0000 (13:25 +0000)]
* configure.ac (ppc*-*-pe): Remove host case.
(strongarm-*-coff | xscale-*-coff, strongarm-*-elf* |
xscale-*-elf*, thumb-*-coff, thumb-*-elf, thumb-*-pe, ep9312-*-elf
| ep9312-*-coff, parisc*64*-*-linux*, ppc*-*-pe): Remove target
cases.
* configure: Regenerate.

13 years ago * config.sub: Update to version 2011-03-23.
Joseph Myers [Thu, 24 Mar 2011 11:13:32 +0000 (11:13 +0000)]
* config.sub: Update to version 2011-03-23.

13 years ago* wincap.cc (wincap_2003): Set use_dont_resolve_hack to true.
Christopher Faylor [Wed, 23 Mar 2011 21:33:36 +0000 (21:33 +0000)]
* wincap.cc (wincap_2003): Set use_dont_resolve_hack to true.

13 years ago2010-03-23 Rafael Ávila de Espíndola <respindola@mozilla.com>
Rafael Ávila de Espíndola [Wed, 23 Mar 2011 14:09:48 +0000 (14:09 +0000)]
2010-03-23  Rafael Ávila de Espíndola <respindola@mozilla.com>

* plugin-api.h (ld_plugin_get_view): New.
(ld_plugin_tag): Add LDPT_GET_VIEW.
(ld_plugin_tv): Add tv_get_view.

13 years ago * libc/machine/frv/setjmp.S: Fix typo in .size directive.
Nick Clifton [Wed, 23 Mar 2011 11:01:05 +0000 (11:01 +0000)]
* libc/machine/frv/setjmp.S: Fix typo in .size directive.

13 years ago* autoload.cc (dll_load): Change error message to make it clear if a newer DLL
Christopher Faylor [Wed, 23 Mar 2011 05:30:49 +0000 (05:30 +0000)]
* autoload.cc (dll_load): Change error message to make it clear if a newer DLL
is being run.

13 years ago * configure.ac (arm-semi-aof, crx-*-*, parisc*-*-linux*,
Joseph Myers [Tue, 22 Mar 2011 20:04:36 +0000 (20:04 +0000)]
* configure.ac (arm-semi-aof, crx-*-*, parisc*-*-linux*,
i370-*-opened*, i[[3456789]]86-moss-msdos | i[[3456789]]86-*-moss*
| i[[3456789]]86-*-uwin*, mcore-*-pe*): Remove empty cases.
* configure: Regenerate.

13 years ago * config-ml.in: Don't handle arc-*-elf*.
Joseph Myers [Tue, 22 Mar 2011 20:01:13 +0000 (20:01 +0000)]
* config-ml.in: Don't handle arc-*-elf*.
* configure.ac (arc-*-*, crx-*-*, i[[3456789]]86-*-pe,
m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*, mcore-*-pe*): Don't
handle GCC libraries.
* configure: Regenerate.

13 years ago/bfd:
Eric Weddington [Tue, 22 Mar 2011 18:10:45 +0000 (18:10 +0000)]
/bfd:
2011-03-22  Eric B. Weddington  <eric.weddington@atmel.com>

* archures.c: Add AVR XMEGA architecture information.
* cpu-avr.c (arch_info_struct): Likewise.
* elf32-avr.c (bfd_elf_avr_final_write_processing): Likewise.
(elf32_avr_object_p): Likewise.

/gas:
2011-03-22  Eric B. Weddington  <eric.weddington@atmel.com>

* config/tc-avr.c (struct avr_opcodes_s): Add opcode field.
(AVR_INSN): Change definition to match.
(avr_opcodes): Likewise, change to match.
(mcu_types): Add XMEGA architecture names and new XMEGA device names.
(md_show_usage): Add XMEGA architecture names.
(avr_operand): Add 'E' constraint for DES instruction of XMEGA devices.
Add support for SPM Z+ instruction.
* doc/c-avr.texi: Add documentation for XMEGA architectures and
devices.

/include/opcode:
2011-03-22  Eric B. Weddington  <eric.weddington@atmel.com>

* avr.h (AVR_ISA_SPMX,AVR_ISA_DES,AVR_ISA_M256,AVR_ISA_XMEGA):
New instruction set flags.
(AVR_INSN): Add new instructions for SPM Z+, DES for XMEGA.

/ld:
2011-03-22  Eric B. Weddington  <eric.weddington@atmel.com>

* Makefile.am (ALL_EMULATION_SOURCES): Add AVR XMEGA architectures.
(eavrxmega?.c): Likewise.
* configure.tgt (targ_extra_emuls): Likewise.
* emulparams/avrxmega1.sh: New file.
* emulparams/avrxmega2.sh: Likewise.
* emulparams/avrxmega3.sh: Likewise.
* emulparams/avrxmega4.sh: Likewise.
* emulparams/avrxmega5.sh: Likewise.
* emulparams/avrxmega6.sh: Likewise.
* emulparams/avrxmega7.sh: Likewise.
* emultempl/avrelf.em (avr_elf_${EMULATION_NAME}_before_allocation):
Add avrxmega6, avrxmega7 to list of architectures for no stubs.

/opcodes:
2011-03-22  Eric B. Weddington  <eric.weddington@atmel.com>

* avr-dis.c (avr_operand): Add opcode_str parameter. Check for
post-increment to support LPM Z+ instruction. Add support for 'E'
constraint for DES instruction.
(print_insn_avr): Adjust calls to avr_operand. Rename variable.

13 years ago * libc/sys/sysnecv850/trap.S (___trap0): Fix errno handling.
Kevin Buettner [Mon, 21 Mar 2011 22:11:14 +0000 (22:11 +0000)]
* libc/sys/sysnecv850/trap.S (___trap0): Fix errno handling.
* libc/sys/sysnecv850/rename.c: New file.
* libc/sys/sysnecv850/Makefile.am (lib_a_SOURCES): Add rename.c
* libc/sys/sysnecv850/Makefile.in: Regenerate.
* libc/sys/sysnecv850/fstat.c (_fstat): Invoke trap for SYS_fstat.
* libc/sys/sysnecv850/unlink.c (_unlink): Invoke trap for SYS_unlink.

13 years ago * v850/sys/syscall.h (SYS_rename): Define.
Kevin Buettner [Mon, 21 Mar 2011 22:09:34 +0000 (22:09 +0000)]
* v850/sys/syscall.h (SYS_rename): Define.

13 years ago * libltp/lib/get_high_address.c: Align copyright with upstream.
Corinna Vinschen [Mon, 21 Mar 2011 15:42:54 +0000 (15:42 +0000)]
* libltp/lib/get_high_address.c: Align copyright with upstream.

13 years ago PR bootstrap/48120:
Rainer Orth [Mon, 21 Mar 2011 13:03:34 +0000 (13:03 +0000)]
PR bootstrap/48120:
* configure.ac (pwllib): Use LIBS instead of LDFLAGS.
Add -lstdc++ -lm to LIBS.
* configure: Regenerate.

13 years agoFix typo.
Corinna Vinschen [Sun, 20 Mar 2011 15:36:13 +0000 (15:36 +0000)]
Fix typo.

13 years ago * fenv.cc (_feinitialise); Don't use SSE instructions on systems not
Corinna Vinschen [Sun, 20 Mar 2011 15:34:29 +0000 (15:34 +0000)]
* fenv.cc (_feinitialise); Don't use SSE instructions on systems not
supporting them.
* wincap.h (wincaps::supports_sse): New element.
* wincap.cc: Implement above element throughout.

13 years ago * cygwin.sc: Raise default cygheap size to 2 Megs.
Corinna Vinschen [Fri, 18 Mar 2011 18:16:37 +0000 (18:16 +0000)]
* cygwin.sc: Raise default cygheap size to 2 Megs.

13 years ago * config.guess: Update to version 2011-02-02
David Edelsohn [Fri, 18 Mar 2011 17:44:46 +0000 (17:44 +0000)]
    * config.guess: Update to version 2011-02-02
        * config.sub: Update to version 2011-02-24

13 years agoFix typo.
Corinna Vinschen [Fri, 18 Mar 2011 14:42:30 +0000 (14:42 +0000)]
Fix typo.

13 years ago* fhandler.h (DEFAULT_PIPEBUFSIZE): Reset to 64K.
Christopher Faylor [Fri, 18 Mar 2011 14:25:33 +0000 (14:25 +0000)]
* fhandler.h (DEFAULT_PIPEBUFSIZE): Reset to 64K.

13 years ago * mmap.cc (mmap_record::alloc_fh): Initialize nmae strings in fdev to
Corinna Vinschen [Fri, 18 Mar 2011 13:56:56 +0000 (13:56 +0000)]
* mmap.cc (mmap_record::alloc_fh): Initialize nmae strings in fdev to
empty strings or suffer a SEGV.  Drop second parameter in call to
build_fh_dev.

13 years ago * mmap.cc (class mmap_record): Pack 4 byte-aligned. Convert member dev
Corinna Vinschen [Fri, 18 Mar 2011 13:42:03 +0000 (13:42 +0000)]
* mmap.cc (class mmap_record): Pack 4 byte-aligned.  Convert member dev
to plain int.
(mmap_record::alloc_fh): Create temporary device from dev and use in
call to build_fh_dev.

13 years ago * mmap.cc (mmap_record::page_map): Define as variable array rather than
Corinna Vinschen [Fri, 18 Mar 2011 13:38:34 +0000 (13:38 +0000)]
* mmap.cc (mmap_record::page_map): Define as variable array rather than
as pointer.
(mmap_record::alloc_page_map): Remove.
(mmap_record::free_page_map): Remove.
(mmap_record::init_page_map): New method.
(mmap_record::add_record): Take mmap_record parameter by reference
rather than by value.
(mmap_record::map_pages): Fix comment.
(mmap_list::add_record): Allocate space for mmap_record including the
page_map in a single ccalloc call.  Call init_page_map afterwards.
(mmap_list::del_record): Remove call to mmap_record::free_page_map.

13 years ago * crt0.c (mainCRTStartup): Move call to _feinitialise from here...
Corinna Vinschen [Thu, 17 Mar 2011 08:40:25 +0000 (08:40 +0000)]
* crt0.c (mainCRTStartup): Move call to _feinitialise from here...
* dcrt0.cc (_dll_crt0): ...to here.

13 years ago * winver.rc: Fix copyright dates.
Corinna Vinschen [Wed, 16 Mar 2011 21:10:51 +0000 (21:10 +0000)]
* winver.rc: Fix copyright dates.

13 years ago * dwarf2.h (DW_TAG_GNU_call_site, DW_TAG_GNU_call_site_parameter,
Jakub Jelinek [Wed, 16 Mar 2011 08:48:47 +0000 (08:48 +0000)]
* dwarf2.h (DW_TAG_GNU_call_site, DW_TAG_GNU_call_site_parameter,
DW_AT_GNU_call_site_value, DW_AT_GNU_call_site_data_value,
DW_AT_GNU_call_site_target, DW_AT_GNU_call_site_target_clobbered,
DW_AT_GNU_tail_call, DW_AT_GNU_all_tail_call_sites,
DW_AT_GNU_all_call_sites,, DW_AT_GNU_all_source_call_sites,
DW_OP_GNU_entry_value): New.

13 years agoinclude/elf/
Richard Sandiford [Mon, 14 Mar 2011 16:04:04 +0000 (16:04 +0000)]
include/elf/
* arm.h (R_ARM_IRELATIVE): New relocation.

bfd/
* reloc.c (BFD_RELOC_ARM_IRELATIVE): New relocation.
* bfd-in2.h: Regenerate.
* elf32-arm.c (elf32_arm_howto_table_2): Rename existing definition
to elf32_arm_howto_table_3 and replace with a single R_ARM_IRELATIVE
entry.
(elf32_arm_howto_from_type): Update accordingly.
(elf32_arm_reloc_map): Map BFD_RELOC_ARM_IRELATIVE to R_ARM_IRELATIVE.
(elf32_arm_reloc_name_lookup): Handle elf32_arm_howto_table_3.
(arm_plt_info): New structure, split out from elf32_arm_link_hash_entry
with an extra noncall_refcount field.
(arm_local_iplt_info): New structure.
(elf_arm_obj_tdata): Add local_iplt.
(elf32_arm_local_iplt): New accessor macro.
(elf32_arm_link_hash_entry): Replace plt_thumb_refcount,
plt_maybe_thumb_refcount and plt_got_offset with an arm_plt_info.
Change tls_type to a bitfield and add is_iplt.
(elf32_arm_link_hash_newfunc): Update accordingly.
(elf32_arm_allocate_local_sym_info): New function.
(elf32_arm_create_local_iplt): Likewise.
(elf32_arm_get_plt_info): Likewise.
(elf32_arm_plt_needs_thumb_stub_p): Likewise.
(elf32_arm_get_local_dynreloc_list): Likewise.
(create_ifunc_sections): Likewise.
(elf32_arm_copy_indirect_symbol): Update after the changes to
elf32_arm_link_hash_entry.  Assert the is_iplt has not yet been set.
(arm_type_of_stub): Add an st_type argument.  Use elf32_arm_get_plt_info
to get PLT information.  Assert that all STT_GNU_IFUNC references
are turned into PLT references.
(arm_build_one_stub): Pass the symbol type to
elf32_arm_final_link_relocate.
(elf32_arm_size_stubs): Pass the symbol type to arm_type_of_stub.
(elf32_arm_allocate_irelocs): New function.
(elf32_arm_add_dynreloc): In static objects, use .rel.iplt for
all R_ARM_IRELATIVE.
(elf32_arm_allocate_plt_entry): New function.
(elf32_arm_populate_plt_entry): Likewise.
(elf32_arm_final_link_relocate): Add an st_type parameter.
Set srelgot to null for static objects.  Use separate variables
to record which st_value and st_type should be used when generating
a dynamic relocation.  Use elf32_arm_get_plt_info to find the
symbol's PLT information, setting has_iplt_entry, splt,
plt_offset and gotplt_offset accordingly.  Check whether
STT_GNU_IFUNC symbols should resolve to an .iplt entry, and change
the relocation target accordingly.  Broaden assert to include
.iplts.  Don't set sreloc for static relocations.  Assert that
we only generate dynamic R_ARM_RELATIVE relocations for R_ARM_ABS32
and R_ARM_ABS32_NOI.  Generate R_ARM_IRELATIVE relocations instead
of R_ARM_RELATIVE relocations if the target is an STT_GNU_IFUNC
symbol.  Pass the symbol type to arm_type_of_stub.  Conditionally
resolve GOT references to the .igot.plt entry.
(elf32_arm_relocate_section): Update the call to
elf32_arm_final_link_relocate.
(elf32_arm_gc_sweep_hook): Use elf32_arm_get_plt_info to get PLT
information.  Treat R_ARM_REL32 and R_ARM_REL32_NOI as call
relocations in shared libraries and relocatable executables.
Count non-call PLT references.  Use elf32_arm_get_local_dynreloc_list
to get the list of dynamic relocations for a local symbol.
(elf32_arm_check_relocs): Always create ifunc sections.  Set isym
at the same time as setting h.  Use elf32_arm_allocate_local_sym_info
to allocate local symbol information.  Treat R_ARM_REL32 and
R_ARM_REL32_NOI as call relocations in shared libraries and
relocatable executables.  Record PLT information for local
STT_GNU_IFUNC functions as well as global functions.   Count
non-call PLT references.  Use elf32_arm_get_local_dynreloc_list
to get the list of dynamic relocations for a local symbol.
(elf32_arm_adjust_dynamic_symbol): Handle STT_GNU_IFUNC symbols.
Don't remove STT_GNU_IFUNC PLTs unless all references have been
removed.  Update after the changes to elf32_arm_link_hash_entry.
(allocate_dynrelocs_for_symbol): Decide whether STT_GNU_IFUNC PLT
entries should live in .plt or .iplt.  Check whether the .igot.plt
and .got entries can be combined.  Use elf32_arm_allocate_plt_entry
to allocate .plt and .(i)got.plt entries.  Detect which .got
entries will need R_ARM_IRELATIVE relocations and use
elf32_arm_allocate_irelocs to allocate them.  Likewise other
non-.got dynamic relocations.
(elf32_arm_size_dynamic_sections): Allocate .iplt, .igot.plt
and dynamic relocations for local STT_GNU_IFUNC symbols.
Check whether the .igot.plt and .got entries can be combined.
Detect which .got entries will need R_ARM_IRELATIVE relocations
and use elf32_arm_allocate_irelocs to allocate them.  Use stashed
section pointers intead of strcmp checks.  Handle iplt and igotplt.
(elf32_arm_finish_dynamic_symbol): Use elf32_arm_populate_plt_entry
to fill in .plt, .got.plt and .rel(a).plt entries.  Point
STT_GNU_IFUNC symbols at an .iplt entry if non-call relocations
resolve to it.
(elf32_arm_output_plt_map_1): New function, split out from
elf32_arm_output_plt_map.  Handle .iplt entries.  Use
elf32_arm_plt_needs_thumb_stub_p.
(elf32_arm_output_plt_map): Call it.
(elf32_arm_output_arch_local_syms): Add mapping symbols for
local .iplt entries.
(elf32_arm_swap_symbol_in): Handle Thumb STT_GNU_IFUNC symbols.
(elf32_arm_swap_symbol_out): Likewise.
(elf32_arm_add_symbol_hook): New function.
(elf_backend_add_symbol_hook): Define for all targets.

opcodes/
* arm-dis.c (get_sym_code_type): Treat STT_GNU_IFUNCs as code.

gas/
* config/tc-arm.c (md_pcrel_from_section): Use S_FORCE_RELOC to
determine whether a relocation is needed.
(md_apply_fix, arm_apply_sym_value): Likewise.

ld/testsuite/
* ld-arm/ifunc-1.s, ld-arm/ifunc-1.dd, ld-arm/ifunc-1.gd,
ld-arm/ifunc-1.rd, ld-arm/ifunc-2.s, ld-arm/ifunc-2.dd,
ld-arm/ifunc-2.gd, ld-arm/ifunc-2.rd, ld-arm/ifunc-3.s,
ld-arm/ifunc-3.dd, ld-arm/ifunc-3.gd, ld-arm/ifunc-3.rd,
ld-arm/ifunc-4.s, ld-arm/ifunc-4.dd, ld-arm/ifunc-4.gd,
ld-arm/ifunc-4.rd, ld-arm/ifunc-5.s, ld-arm/ifunc-5.dd,
ld-arm/ifunc-5.gd, ld-arm/ifunc-5.rd, ld-arm/ifunc-6.s,
ld-arm/ifunc-6.dd, ld-arm/ifunc-6.gd, ld-arm/ifunc-6.rd,
ld-arm/ifunc-7.s, ld-arm/ifunc-7.dd, ld-arm/ifunc-7.gd,
ld-arm/ifunc-7.rd, ld-arm/ifunc-8.s, ld-arm/ifunc-8.dd,
ld-arm/ifunc-8.gd, ld-arm/ifunc-8.rd, ld-arm/ifunc-9.s,
ld-arm/ifunc-9.dd, ld-arm/ifunc-9.gd, ld-arm/ifunc-9.rd,
ld-arm/ifunc-10.s, ld-arm/ifunc-10.dd, ld-arm/ifunc-10.gd,
ld-arm/ifunc-10.rd, ld-arm/ifunc-11.s, ld-arm/ifunc-11.dd,
ld-arm/ifunc-11.gd, ld-arm/ifunc-11.rd, ld-arm/ifunc-12.s,
ld-arm/ifunc-12.dd, ld-arm/ifunc-12.gd, ld-arm/ifunc-12.rd,
ld-arm/ifunc-13.s, ld-arm/ifunc-13.dd, ld-arm/ifunc-13.gd,
ld-arm/ifunc-13.rd, ld-arm/ifunc-14.s, ld-arm/ifunc-14.dd,
ld-arm/ifunc-14.gd, ld-arm/ifunc-14.rd, ld-arm/ifunc-15.s,
ld-arm/ifunc-15.dd, ld-arm/ifunc-15.gd, ld-arm/ifunc-15.rd,
ld-arm/ifunc-16.s, ld-arm/ifunc-16.dd, ld-arm/ifunc-16.gd,
ld-arm/ifunc-16.rd, ld-arm/ifunc-dynamic.ld,
ld-arm/ifunc-static.ld: New tests.
* ld-arm/farcall-group.d, ld-arm/farcall-group-size2.d,
ld-arm/farcall-mixed-lib-v4t.d, ld-arm/farcall-mixed-lib.d: Update
for new stub hashes.
* ld-arm/arm-elf.exp: Run them.

13 years agoinclude/elf/
Richard Sandiford [Mon, 14 Mar 2011 15:54:57 +0000 (15:54 +0000)]
include/elf/
* internal.h (elf_internal_sym): Add st_target_internal.
* arm.h (arm_st_branch_type): New enum.
(ARM_SYM_BRANCH_TYPE): New macro.

bfd/
* elf-bfd.h (elf_link_hash_entry): Add target_internal.
* elf.c (swap_out_syms): Set st_target_internal for each
Elf_Internal_Sym.
* elfcode.h (elf_swap_symbol_in): Likewise.
* elf32-i370.c (i370_elf_finish_dynamic_sections): Likewise.
* elf32-sh-symbian.c (sh_symbian_relocate_section): Likewise.
* elf64-sparc.c (elf64_sparc_output_arch_syms): Likewise.
* elfxx-sparc.c (_bfd_sparc_elf_size_dynamic_sections): Likewise.
* elflink.c (elf_link_output_extsym): Likewise.
(bfd_elf_final_link): Likewise.
(elf_link_add_object_symbols): Copy st_target_internal
to the hash table if we see a definition.
(_bfd_elf_copy_link_hash_symbol_type): Copy target_internal.
* elf32-arm.c (elf32_arm_stub_hash_entry): Replace st_type with
a branch_type field.
(a8_erratum_fix, a8_erratum_reloc): Likewise.
(arm_type_of_stub): Replace actual_st_type with an
actual_branch_type parameter.
(arm_build_one_stub): Use branch types rather than st_types to
determine the type of branch.
(cortex_a8_erratum_scan): Likewise.
(elf32_arm_size_stubs): Likewise.
(bfd_elf32_arm_process_before_allocation): Likewise.
(allocate_dynrelocs_for_symbol): Likewise.
(elf32_arm_finish_dynamic_sections): Likewise.
(elf32_arm_final_link_relocate): Replace sym_flags parameter with
a branch_type parameter.
(elf32_arm_relocate_section): Update call accordingly.
(elf32_arm_adjust_dynamic_symbol): Don't check STT_ARM_TFUNC.
(elf32_arm_output_map_sym): Initialize st_target_internal.
(elf32_arm_output_stub_sym): Likewise.
(elf32_arm_symbol_processing): Delete.
(elf32_arm_swap_symbol_in): Convert STT_ARM_TFUNCs into STT_FUNCs.
Use st_target_internal to record the branch type.
(elf32_arm_swap_symbol_out): Use st_target_internal to test for
Thumb functions.
(elf32_arm_is_function_type): Delete.
(elf_backend_symbol_processing): Likewise.
(elf_backend_is_function_type): Likewise.

gas/
* config/tc-arm.c (arm_adjust_symtab): Set the branch type
for Thumb symbols.

ld/
* emultempl/armelf.em (gld${EMULATION_NAME}_finish): Check
eh->target_internal.

opcodes/
* arm-dis.c (get_sym_code_type): Don't check for STT_ARM_TFUNC.
Use branch types instead.
(print_insn): Likewise.

13 years ago * fhandler_disk_file.cc (fhandler_base::fstat_by_handle): Only use
Corinna Vinschen [Mon, 14 Mar 2011 09:14:17 +0000 (09:14 +0000)]
* fhandler_disk_file.cc (fhandler_base::fstat_by_handle): Only use
file id as inode number if it masters the isgood_inode check.

13 years ago* fhandler.cc (fhandler_base_overlapped::wait_overlapped): Remove special
Christopher Faylor [Sun, 13 Mar 2011 20:20:58 +0000 (20:20 +0000)]
* fhandler.cc (fhandler_base_overlapped::wait_overlapped): Remove special
treatment for ERROR_NO_SYSTEM_RESOURCES.  Cancel I/O and reset the overlapped
handle on error.
(fhandler_base_overlapped::write_overlapped): Limit writes to max_atomic_write
bytes in blocking case.  Incorporate code from now-defunct
write_overlapped_fallback.  Fix serious oversight where ptr was not advanced as
buffer was written.
(fhandler_base_overlapped::write_overlapped_fallback): Eliminate.
* fhandler.h (fhandler_base_overlapped::write_overlapped_fallback): Ditto for
declaration.
(DEFAULT_PIPEBUFSIZE): Lower size to slightly less than documented worst-case
atomic write size.
(fhandler_overlapped::wait_return): Remove unused element.

13 years ago2011-03-11 Chris Sutcliffe <ir0nh34d@users.sf.net>
Chris Sutcliffe [Sat, 12 Mar 2011 04:33:16 +0000 (04:33 +0000)]
2011-03-11  Chris Sutcliffe  <ir0nh34d@users.sf.net>

        * include/w32api.h: Increment version to 3.17.
        * Makefile.in: Ditto.

13 years ago * common.h (EM_V850): V850s now supplied by Renesas.
Nick Clifton [Thu, 10 Mar 2011 10:23:37 +0000 (10:23 +0000)]
* common.h (EM_V850): V850s now supplied by Renesas.
* readelf.c (get_machine_name): Update EM_V850 entry.

13 years ago* fhandler.cc (fhandler_base_overlapped::wait_overlapped): Handle
Christopher Faylor [Wed, 9 Mar 2011 22:48:05 +0000 (22:48 +0000)]
* fhandler.cc (fhandler_base_overlapped::wait_overlapped): Handle
overlapped_fallback error condition like other error conditions.  Set res
carefully and specifically for each condition rather than resorting to a
default.
(fhandler_base_overlapped::write_overlapped): Preserve errno in
overlapped_fallback condition.  Correct write_overlapped_fallback to avoid
inappropriate looping.
(fhandler_base_overlapped::write_overlapped_fallback): Add some more comments.

13 years ago* fhandler.cc (fhandler_base_overlapped::write_overlapp): Oops! Accommodate
Christopher Faylor [Wed, 9 Mar 2011 16:55:54 +0000 (16:55 +0000)]
* fhandler.cc (fhandler_base_overlapped::write_overlapp): Oops! Accommodate
change in arguments to wait_overlapped.

13 years ago* errno.cc (errmap): Change mapping of NO_SYSTEM_RESOURCES to EFBIG.
Christopher Faylor [Wed, 9 Mar 2011 16:47:44 +0000 (16:47 +0000)]
* errno.cc (errmap): Change mapping of NO_SYSTEM_RESOURCES to EFBIG.
* fhandler.cc (MAX_OVERLAPPED_WRITE_LEN): New constant.
(MIN_OVERLAPPED_WRITE_LEN): Ditto.
(fhandler_base_overlapped::close): Accommodate change in arguments to
wait_overlapped.
(fhandler_base_overlapped::setup_overlapped): Add __stdcall and regparm
modifiers.
(fhandler_base_overlapped::destroy_overlapped): Ditto.
(fhandler_base_overlapped::has_ongoing_io): Ditto.
(fhandler_base_overlapped::wait_overlapped): Modify to return an enum returning
various states.  Accept nonblocking parameter.
(fhandler_base_overlapped::read_overlapped): Add __stdcall and regparm
modifiers.  Rework to attempt to be smarter about reacting to states returned
by wait_overlapped.
(fhandler_base_overlapped::write_overlapped): Ditto.  Add fallback option for
when wait_overlapped detects that smaller chunks must be written.
(fhandler_base_overlapped::write_overlapped_fallback): Ditto.
* fhandler.h (DEFAULT_PIPEBUFSIZE): Move definition here from pipe.cc.
(fhandler_base::has_ongoing_io): Define with __stdcall and regparm modifiers.
(fhandler_base_overlapped::wait_return): New enum.
(fhandler_base_overlapped::max_atomic_write): New variable.
(fhandler_base_overlapped:: wait_overlapped): Accommodate changes mentioned
above to arguments and modifiers.
(fhandler_base_overlapped::setup_overlapped): Ditto for modifiers.
(fhandler_base_overlapped::read_overlapped): Ditto.
(fhandler_base_overlapped::write_overlapped): Ditto.
(fhandler_base_overlapped::destroy_overlapped): Ditto.
(fhandler_base_overlapped::has_ongoing_io): Ditto.
(fhandler_base_overlapped::fhandler_base_overlapped): Zero max_atomic_write.
* fhandler_fifo.cc (fhandler_fifo::fhandler_fifo): Set max_atomic_write to the
size of the DEFAULT_PIPEBUFSIZE.
(fhandler_fifo::wait): Accommodate change in arguments to wait_overlapped.
* pipe.cc (fhandler_pipe::fhandler_pipe): Set max_atomic_write to the size of
the DEFAULT_PIPEBUFSIZE.
(fhandler_pipe::create_selectable): Allow minimum size of DEFAULT_PIPEBUFSIZE.
(DEFAULT_PIPEBUFSIZE): Delete here, move to fhandler.h.

13 years ago * security.cc: Fix copyright dates.
Corinna Vinschen [Tue, 8 Mar 2011 15:12:58 +0000 (15:12 +0000)]
* security.cc: Fix copyright dates.

13 years ago * fhandler.cc (fhandler_base::open): When creating a file on a
Corinna Vinschen [Tue, 8 Mar 2011 14:26:15 +0000 (14:26 +0000)]
* fhandler.cc (fhandler_base::open): When creating a file on a
filesystem supporting ACLs, create the file with WRITE_DAC access.
Explain why.
* fhandler_disk_file.cc (fhandler_disk_file::mkdir): Ditto for
directories.
* fhandler_socket.cc (fhandler_socket::bind): Ditto for sockets.
* path.cc (symlink_worker): Ditto for symlinks.
* security.cc (get_file_sd): Always call GetSecurityInfo for directories
on XP and Server 2003.  Improve comment to explain why.
(set_file_attribute): Explicitely cast mode_t value to bool in call to
get_file_sd.
* wincap.h (wincaps::use_get_sec_info_on_dirs): New element.
* wincap.cc: Implement above element throughout.

13 years ago2011-03-07 Chris Sutcliffe <ir0nh34d@users.sf.net>
Chris Sutcliffe [Tue, 8 Mar 2011 01:57:46 +0000 (01:57 +0000)]
2011-03-07  Chris Sutcliffe  <ir0nh34d@users.sf.net>

        * include/winbase.h (PSAPI_WORKING_SET_BLOCK,
        PSAPI_WORKING_SET_INFORMATION): Move from here...
        * include/psapi.h (PSAPI_WORKING_SET_BLOCK,
        PSAPI_WORKING_SET_INFORMATION): ... to here.

13 years agosim: bfin: new port
Michael Frysinger [Sun, 6 Mar 2011 00:20:16 +0000 (00:20 +0000)]
sim: bfin: new port

This can boot Das U-Boot and a Linux kernel.  It also supports Linux
userspace FLAT and FDPIC (dynamic and static) ELFs.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
13 years ago2011-03-05 Chris Sutcliffe <ir0nh34d@users.sf.net>
Chris Sutcliffe [Sat, 5 Mar 2011 20:55:46 +0000 (20:55 +0000)]
2011-03-05  Chris Sutcliffe  <ir0nh34d@users.sf.net>

        * include/w32api.h: Increment version to 3.16.
        * Makefile.in: Ditto.

13 years ago2011-03-05 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
Chris Sutcliffe [Sat, 5 Mar 2011 20:50:52 +0000 (20:50 +0000)]
2011-03-05  Chris Sutcliffe  <ir0nh34d@users.sourceforge.net>

        * include/commctrl.h (NMTCKEYDOWN): Define.

13 years ago2011-03-05 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
Chris Sutcliffe [Sat, 5 Mar 2011 20:43:53 +0000 (20:43 +0000)]
2011-03-05  Chris Sutcliffe  <ir0nh34d@users.sourceforge.net>

        * include/wtsapi32.h (WTSSendMessageA, WTSSendMessageW, WTSSendMessage):
        Define.

13 years ago2011-03-05 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
Chris Sutcliffe [Sat, 5 Mar 2011 20:29:08 +0000 (20:29 +0000)]
2011-03-05  Chris Sutcliffe  <ir0nh34d@users.sourceforge.net>

        * include/winbase.h (PSAPI_WORKING_SET_BLOCK,
        PSAPI_WORKING_SET_INFORMATION): Define.

13 years ago2011-03-05 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
Chris Sutcliffe [Sat, 5 Mar 2011 19:36:28 +0000 (19:36 +0000)]
2011-03-05  Chris Sutcliffe  <ir0nh34d@users.sourceforge.net>

        * include/winbase.h (__GNUC_EXTENSION): Define, replacing __MINGW_EXTENSION.

13 years agoGuard against M4 versions with a buggy strstr.
Ralf Wildenhues [Sat, 5 Mar 2011 07:33:13 +0000 (07:33 +0000)]
Guard against M4 versions with a buggy strstr.

config/:
* override.m4: Error out if a buggy M4 was detected, to
avoid spurious diffs in generated files.

13 years ago2011-03-05 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
Chris Sutcliffe [Sat, 5 Mar 2011 05:45:42 +0000 (05:45 +0000)]
2011-03-05  Chris Sutcliffe  <ir0nh34d@users.sourceforge.net>

        * lib/kernel32.def (FreeLibraryAndExitThread): Fix definition.

13 years ago2011-03-04 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
Chris Sutcliffe [Sat, 5 Mar 2011 05:05:20 +0000 (05:05 +0000)]
2011-03-04  Chris Sutcliffe  <ir0nh34d@users.sourceforge.net>

        * include/winbase.h (FILE_ENCRYPTABLE, FILE_IS_ENCRYPTED, FILE_READ_ONLY,
        FILE_ROOT_DIR, FILE_SYSTEM_ATTR, FILE_SYSTEM_DIR, FILE_SYSTEM_NOT_SUPPORT,
        FILE_UNKNOWN, FILE_USER_DISALLOWED): Define.

13 years ago2011-03-04 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
Chris Sutcliffe [Sat, 5 Mar 2011 04:51:01 +0000 (04:51 +0000)]
2011-03-04  Chris Sutcliffe  <ir0nh34d@users.sourceforge.net>

        * include/winioctl.h (_DRIVE_LAYOUT_INFORMATION_MBR): Add
        _DRIVE_LAYOUT_INFORMATION_MBR_DEFINED guard.
        * include/ddk/winddk.h (_DRIVE_LAYOUT_INFORMATION_MBR): Ditto.

13 years ago2011-03-04 Seth Jackson <sethj@users.sourceforge.net>
Chris Sutcliffe [Sat, 5 Mar 2011 04:39:15 +0000 (04:39 +0000)]
2011-03-04  Seth Jackson  <sethj@users.sourceforge.net>

        * include/winnt.h (PAGE_WRITECOMBINE): Define.
        * include/winbase.h (THREAD_MODE_BACKGROUND_BEGIN, THREAD_MODE_BACKGROUND_END): Define.

13 years ago2011-03-04 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
Chris Sutcliffe [Sat, 5 Mar 2011 04:31:24 +0000 (04:31 +0000)]
2011-03-04  Chris Sutcliffe  <ir0nh34d@users.sourceforge.net>

        * include/winbase.h (__MINGW_EXTENSION): Define.
        (OVERLAPPED): Add __MINGW_EXTENSION around nameless union /
        struct to correct issue with -std=c99.

13 years ago * fhandler_procsys.cc (fhandler_procsys::exists): Rewrite.
Corinna Vinschen [Fri, 4 Mar 2011 17:51:42 +0000 (17:51 +0000)]
* fhandler_procsys.cc (fhandler_procsys::exists): Rewrite.
(fhandler_procsys::fill_filebuf): Fill buffer with valid string even if
reading the symlink fails.

13 years agoAdjust test of with_ppl.
Sebastian Pop [Fri, 4 Mar 2011 04:21:34 +0000 (04:21 +0000)]
Adjust test of with_ppl.

2011-03-03  Sebastian Pop  <sebastian.pop@amd.com>

        * configure.ac: Adjust test of with_ppl.
        * configure: Regenerated.

13 years ago * posix_ipc.cc (ipc_cond_timedwait): If ipc_mutex_unlock fails, return
Corinna Vinschen [Thu, 3 Mar 2011 15:48:36 +0000 (15:48 +0000)]
* posix_ipc.cc (ipc_cond_timedwait): If ipc_mutex_unlock fails, return
actual error number.
(_mq_send): Break loop if ipc_cond_timedwait returns with error.
(_mq_receive): Ditto.

13 years ago * libc/include/string.h: Include sys/cdefs.h.
Corinna Vinschen [Thu, 3 Mar 2011 11:11:41 +0000 (11:11 +0000)]
* libc/include/string.h: Include sys/cdefs.h.

13 years ago * libc/include/sys/cdefs.h (__CONCAT1): Define.
Corinna Vinschen [Thu, 3 Mar 2011 10:37:09 +0000 (10:37 +0000)]
* libc/include/sys/cdefs.h (__CONCAT1): Define.
(__CONCAT): Define.
(__STRING): Define.
(__XSTRING): Define.
(__ASMNAME): Define.
* libc/include/string.h (strerror_r): Use __ASMNAME to take target
specific label prefixes into account.

13 years ago * errno.cc (__xpg_strerror_r): Add accidentally missing condition.
Corinna Vinschen [Thu, 3 Mar 2011 09:50:13 +0000 (09:50 +0000)]
* errno.cc (__xpg_strerror_r): Add accidentally missing condition.

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