summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* * setup-net.sgml (setup-packages): Reflect removal of Prev button.Andy Koppe2011-07-202-10/+20
| | | | Also document Keep button and improve description of Exp button.
* * new-features.sgml (ov-new1.7.10): Document getconf(1).Yaakov Selkowitz2011-07-202-0/+9
|
* * Makefile.in (CYGWIN_BINS): Add getconf.Yaakov Selkowitz2011-07-203-1/+570
| | | | (getconf.c): New file.
* * libc/include/sys/unistd.h (_CS_XBS5_WIDTH_RESTRICTED_ENVS): Define.Yaakov Selkowitz2011-07-202-1/+7
| | | | (_CS_V6_ENV): Fix definition.
* * libc/locale/lmessages.c (_C_messages_locale):Corinna Vinschen2011-07-192-3/+8
| | | | Move __HAVE_LOCALE_INFO_EXTENDED__ before codeset.
* * libc/reent/sbrkr.c: Define _sbrk_r independently of the definitionCorinna Vinschen2011-07-192-3/+6
| | | | of MALLOC_PROVIDED.
* * sysconf.cc (sca): Return -1 for _SC_THREAD_ROBUST_PRIO_INHERIT,Yaakov Selkowitz2011-07-183-3/+28
| | | | | | | | | | _SC_THREAD_ROBUST_PRIO_PROTECT, and _SC_XOPEN_UUCP. (SC_MAX): Redefine accordingly. (csa): Return strings for _CS_POSIX_V7_THREADS_CFLAGS, _CS_POSIX_V7_THREADS_LDFLAGS, and _CS_V7_ENV. (CS_MAX): Redefine accordingly. * include/limits.h (LONG_BIT): Define. (WORD_BIT): Define.
* toplevel:Rainer Orth2011-07-184-3/+11
| | | | | | | * configure: Regenerate. config: * elf.m4 (target_elf): Remove *-netware*.
* * heap.cc (heap_init): Change type of largest_found to PVOID. StartCorinna Vinschen2011-07-182-6/+11
| | | | | querying memory at 0x20000000. Use largest_found pointer when trying to allocate largest free memory area found.
* correct commentChristopher Faylor2011-07-151-1/+1
|
* * cygwinenv.sgml (using-cygwinenv): Clarify "glob" works.Christopher Faylor2011-07-152-2/+8
|
* 2011-07-15 Yufeng Zhang <yufeng.zhang@arm.com>Jeff Johnston2011-07-154-9/+85
| | | | | | | | | | | | | * libc/stdio/vfwprintf.c (wcvt): Add a new parameter len of type int. *length is set to the value of (rev - digits) regardless of whether _MB_CAPABLE is defined or not. Replace BUF with len in calling _mbsnrtowcs_r and also in the loop where _MB_CAPABLE is not defined. (_VFWPRINTF_R): Call wcvt with an extra argument. Call wcvt again with allocated new buffer if buf is not large enough for the conversion. * testsuite/newlib.stdio/stdio.exp: New. * testsuite/newlib.stdio/swprintf.c: Likewise.
* * libc/stdio/fscanf.c (fscanf): Call _vfscanf_r instead of __svfscanf_rCorinna Vinschen2011-07-155-8/+21
| | | | | | | | | | | | to make sure CHECK_INIT is called. (_fscanf_r): Ditto. * /libc/stdio/scanf.c (scanf): Ditto. (_scanf_r): Ditto. * libc/stdio/fwscanf.c (fwscanf): Call _vfwscanf_r instead of __svfwscanf_r to make sure CHECK_INIT is called. (_fwscanf_r): Ditto. * libc/stdio/wscanf.c (wscanf): Ditto. (_wscanf_r): Ditto.
* include/Alan Modra2011-07-152-97/+103
| | | | | | | | | | * bfdlink.h (struct bfd_link_info): Use ENUM_BITFIELD for strip, discard, common_skip_ar_symbols, unresolved_syms_in_objects, and unresolved_syms_in_shared_libs fields. Move emit_note_gnu_build_id out of bitfields. Reorder bitfields. bfd/ * configure.in: Bump version. * configure: Regenerate.
* * fhandler_console.cc (fhandler_console::input_tcsetattr): Revert toCorinna Vinschen2011-07-142-2/+11
| | | | | | setting ENABLE_PROCESSED_INPUT depending on ISIG and IGNBRK. (fhandler_console::tcgetattr): Set ISIG depending on ENABLE_PROCESSED_INPUT as well.
* 2011-07-13 Sriraman Tallam <tmsriram@google.com>Sriraman Tallam2011-07-142-1/+103
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * plugin-api.h (ld_plugin_section): New struct. (ld_plugin_get_section_count): New typedef. (ld_plugin_get_section_type): New typedef. (ld_plugin_get_section_name): New typedef. (ld_plugin_get_section_contents): New typedef. (ld_plugin_update_section_order): New typedef. (ld_plugin_allow_section_ordering): New typedef. (LDPT_GET_SECTION_COUNT): New enum value. (LDPT_GET_SECTION_TYPE): New enum value. (LDPT_GET_SECTION_NAME): New enum value. (LDPT_GET_SECTION_CONTENTS): New enum value. (LDPT_UPDATE_SECTION_ORDER): New enum value. (LDPT_ALLOW_SECTION_ORDERING): New enum value. (tv_get_section_count): New struct members. (tv_get_section_type): New struct members. (tv_get_section_name): New struct members. (tv_get_section_contents): New struct members. (tv_update_section_order): New struct members. (tv_allow_section_ordering): New struct members. * archive.cc (Archive::get_elf_object_for_member): Add extra parameter to claim_file call. * layout.cc (Layout::Layout): Initialize section_ordering_specified_, input_section_position_, and input_section_glob_. (read_layout_from_file): Call function section_ordering_specified. * layout.h (is_section_ordering_specified): New function. (section_ordering_specified): New function. (section_ordering_specified_): New boolean member. * main.cc(main): Call load_plugins after layout object is defined. * output.cc (Output_section::add_input_section): Use function section_ordering_specified to check if section ordering is needed. * output.cc (Output_section::add_relaxed_input_section): Use function section_ordering_specified to check if section ordering is needed. (Output_section::update_section_layout): New function. (Output_section::sort_attached_input_sections): Check if input section must be reordered. * output.h (Output_section::update_section_layout): New function. * plugin.cc (get_section_count): New function. (get_section_type): New function. (get_section_name): New function. (get_section_contents): New function. (update_section_order): New function. (allow_section_ordering): New function. (Plugin::load): Add the new interfaces to the transfer vector. (Plugin_manager::load_plugins): New parameter. (Plugin_manager::all_symbols_read): New parameter. (Plugin_manager::claim_file): New parameter. Save the elf object for unclaimed objects. (Plugin_manager::get_elf_object): New function. (Plugin_manager::get_view): Change to directly use the bool to check if get_view is called from claim_file_hook. * plugin.h (input_objects): New function (Plugin__manager::load_plugins): New parameter. (Plugin_manager::claim_file): New parameter. (Plugin_manager::get_elf_object): New function. (Plugin_manager::in_claim_file_handler): New function. (Plugin_manager::in_claim_file_handler_): New member. (layout): New function. * readsyms.cc (Read_symbols::do_read_symbols): Call the claim_file handler with an extra parameter. Make the elf object before calling claim_file handler. * testsuite/plugin_test.c (get_section_count): New function pointer. (get_section_type): New function pointer. (get_section_name): New function pointer. (get_section_contents): New function pointer. (update_section_order): New function pointer. (allow_section_ordering): New function pointer. (onload): Check if the new interfaces exist.
* * fhandler_serial.cc (fhandler_serial::raw_read): Handle non-blockingCorinna Vinschen2011-07-132-1/+26
| | | | case more thoroughly.
* * setup_handler (setup_handler): Change break to goto out, missed in 2011-07-06Christopher Faylor2011-07-132-1/+6
| | | | changes.
* * arm/crt0.S: Support armv6-m processors in libgloss.Nick Clifton2011-07-137-45/+163
| | | | | | | | * arm/swi.h: Likewise. * arm/trap.S: Likewise. * arm/redboot-crt0.S: Likewise. * arm/linux-crt0.c: Likewise. * arm/arm.h: New.
* * libm/complex/cacos.c: Use temporaries and correct sequencingCorinna Vinschen2011-07-132-2/+17
| | | | error in previous reordering change.
* include/ChangeLogCatherine Moore2011-07-113-0/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2011-07-11 Catherine Moore <clm@codesourcery.com> * bfdlink.h (flag_type): New enumeration. (flag_info_list): New structure. (flag_info): New structure. bfd/ChangeLog 2011-07-11 Catherine Moore <clm@codesourcery.com> * aout-adobe.c (aout_32_bfd_lookup_section_flags): New definition. * aout-target.h (MY_bfd_lookup_section_flags): New definition. * aout-tic30.c (MY_bfd_lookup_section_flags): New definition. * bfd-in2.h: Regenerated. * bfd.c (bfd_lookup_section_flags): New definition. * binary.c (binary_bfd_lookup_section_flags): New definition. * bout.c (b_out_bfd_lookup_section_flags): New definition. * coff-alpha.c (_bfd_ecoff_bfd_lookup_section_flags): New definition. * coff-mips.c (_bfd_ecoff_bfd_lookup_section_flags): New definition. * coff-rs6000.c (rs6000coff_vec): Include bfd_generic_lookup_section_flags. (pmac_xcoff_vec): Likewise. * coffcode.h (coff_bfd_lookup_section_flags): New definition. * coff64-rs6000.c (rs6000coff64_vec): Include bfd_generic_lookup_section_flags. (aix5coff64_vec): Likewise. * ecoff.c (bfd_debug_section): Initialize flag_info field. * elf-bfd.h (elf_backend_lookup_section_flags_hook): Declare. (bfd_elf_lookup_section_flags): Declare. * elflink.c (bfd_elf_lookup_section_flags): New function. * elfxx-target.h (bfd_elfNN_bfd_lookup_section_flags): Define. (elf_backend_lookup_section_flags_hook): Define. (elf_backend_data): Add elf_backend_lookup_section_flags_hook. * i386msdos.c (msdos_bfd_lookup_section_flags): New define. * i386os9k.c (os9k_bfd_lookup_section_flags): New define. * ieee.c (ieee_bfd_lookup_section_flags): New define. * ihex.c (ihex_bfd_lookup_section_flags): New define. * libbfd-in.h (_bfd_nolink_bfd_lookup_section_flags): Declare. (bfd_generic_lookup_section_flags): Declare. * libbfd.h: Regenerated. * mach-o-target.c (bfd_mach_o_bfd_lookup_section_flags): New. * mmo.c (mmo_bfd_lookup_section_flags): New definition. * nlm-target.h (nlm_bfd_lookup_section_flags): New definition. * oasys.c (oasys_bfd_lookup_section_flags): New definition. * pef.c (bfd_pef_bfd_lookup_section_flags): New definition. * plugin.c (bfd_plugin_bfd_lookup_section_flags): New definition. * ppcboot.c (ppcboot_bfd_lookup_section_flags): New definition. * reloc.c (bfd_generic_lookup_section_flags): New function. * som.c (som_bfd_lookup_section_flags): New definition. * srec.c (srec_bfd_lookup_section_flags): New definition. * targets.c (flag_info): Declare. (NAME##_bfd_lookup_section_flags): Add to LINK jump table. (_bfd_lookup_section_flags): New. * tekhex.c (tekhex_bfd_lookup_section_flags): New definition. * versados.c (versados_bfd_lookup_section_flags): New definition. * vms-alpha.c (alpha_vms_bfd_lookup_section_flag): New definition. * xsym.c (bfd_sym_bfd_lookup_section_flags): New definition. ld/ChangeLog 2011-07-11 Catherine Moore <clm@codesourcery.com> * ld.h (section_flag_list): Add field to struct wildcard_spec. * ld.texinfo (INPUT_SECTION_FLAGS): Document. * ldgram.y (flag_info_list, flag_info): Add to union. (INPUT_SECTION_FLAGS): New token. (wildcard_spec): Initialize section_flag_list to NULL for each alternative. (sect_flag_list, sect_flags): New rules. (input_section_spec_no_keep): Add alternatives to recognize sect_flags. * ldlang.c (walk_wild_consider_section): Initialize section_flag_info field of the section struct. (lang_add_section): Check input section flags. (lang_add_wild): Initialize section_flag_list field of the statement struct. * ldlang.h (lang_input_statement_struct): Add section_flag_list field. (lang_wild_statement_struct): Likewise. * ldlex.l (INPUT_SECTION_FLAGS): New token. * mri.c (mri_draw_tree): Initialize section_flag_list to NULL. * NEWS: Announce INPUT_SECTION_FLAGS enhancement. ld/testsuite/ChangeLog 2011-07-11 Catherine Moore <clm@cm00re.com> * ld-scripts/section-flags-1.s: New. * ld-scripts/section-flags-1.t: New. * ld-scripts/section-flags-2.s: New. * ld-scripts/section-flags-2.t: New. * ld-scripts/section-flags.exp: New.
* * fhandler_tty.cc (fhandler_pty_slave::ioctl): Remove erroneous support forChristopher Faylor2011-07-112-15/+6
| | | | | TIOCLINUX for pty. Get rid of unneeded EINVAL handling in wake of tty removal. Remove now-unneeded variable.
* * include/netdb.h (gethostbyname2): Declare.Corinna Vinschen2011-07-102-0/+5
|
* pthread_sigmask: fix return value to match POSIXEric Blake2011-07-102-4/+12
| | | | | | * signal.cc (handle_sigprocmask): Return error rather than setting errno, for pthread_sigmask. (sigprocmask): Adjust caller.
* PR ld/12942Alan Modra2011-07-092-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | bfd/ * elflink.c (elf_link_add_object_symbols): Use elf_discarded_section rather than kept_section to determine whether a symbol is from a discarded section. * cofflink.c (coff_link_add_symbols): Make symbols from discarded sections appear undefined. * elf-bfd.h (_bfd_elf_section_already_linked): Replace "asection *" with "struct already_linked *". * libbfd-in.h (_bfd_nolink_section_already_linked): Likewise. (_bfd_generic_section_already_linked): Likewise. (bfd_section_already_linked_table_insert): Likewise. (struct already_linked): New. (struct bfd_section_already_linked): Use it. * elflink.c (_bfd_elf_section_already_linked): Replace. "asection *" with "struct already_linked *". Replace the plugin dummy with the LTO output. * linker.c (_bfd_generic_section_already_linked): Likewise. * targets.c (struct already_linked): Add forward declaration. (bfd_target): Replace "struct bfd_section *" with "struct already_linked *" in _section_already_linked. * bfd-in2.h: Regenerate. * libbfd.h: Regenerate. include/ * bfdlink.h (bfd_link_info): Add loading_lto_outputs. ld/ * ldlang.c (section_already_linked): Pass "struct already_linked *" to bfd_section_already_linked. (lang_process): Set link_info.loading_lto_outputs before loading LTO outputs. * plugin.c: Include "libbfd.h". (add_symbols): Call bfd_section_already_linked with comdat_key.
* PR target/39150Rainer Orth2011-07-073-2/+9
| | | | | | * configure.ac (i[3456789]86-*-solaris2*): Also accept x86_64-*-solaris2.1[0-9]*. * configure: Regenerate.
* * miscfuncs.cc (yield): Drop thread priority only once.Corinna Vinschen2011-07-072-3/+7
|
* * exceptions.cc (_cygtls::interrupt_now): Back out previous change since itChristopher Faylor2011-07-062-10/+11
| | | | | | could theoretically cause a non-CTRL-C-able program if a program has suffered memory corruption. (setup_handler): Ditto.
* * sched.c (sched_yield): Just call SwitchToThread because yield nowCorinna Vinschen2011-07-062-1/+6
| | | | potentially switches CPU.
* * exceptions.cc (_cygtls::interrupt_now): Don't check for spinning here.Christopher Faylor2011-07-062-4/+17
| | | | | (setup_handler): Check for spinning here, assuming that it is transitory and should not affect the retry loop.
* * exceptions.cc (CALL_HANDLER_RETRY_INNER): Rename to reflect differentChristopher Faylor2011-07-063-44/+67
| | | | | | | | | functionality. (CALL_HANDLER_RETRY_OUTER): New define. (setup_handler): Add outer loop to signal handler to try harder to deliver the signal. * miscfuncs.cc (yield): Drop priority and use SleepEx() to force thread rescheduling rather than relying on SwitchToThread().
* * sigproc.cc (wait_sig): Fix debug output.Corinna Vinschen2011-07-062-1/+5
|
* bfd/Tristan Gingold2011-07-062-0/+333
| | | | | | | | | | | | | 2011-07-06 Tristan Gingold <gingold@adacore.com> * mach-o.h: Move loader related definitions to include/mach-o/loader.h. Include it. include/mach-o/ 2011-07-06 Tristan Gingold <gingold@adacore.com> * loader.h: New file.
* * fhandler_console.cc (fhandler_console::input_tcsetattr): MakeCorinna Vinschen2011-07-052-3/+10
| | | | | | ENABLE_PROCESSED_INPUT flag only depending on value of IGNBRK. (fhandler_console::tcgetattr): Don't set ISIG depending on ENABLE_PROCESSED_INPUT, set IGNBRK instead.
* * security.cc (get_file_sd): Fix comment.Corinna Vinschen2011-07-052-1/+5
|
* * fhandler.cc (fhandler_base::open): Never create files with WRITE_DACCorinna Vinschen2011-07-053-16/+23
| | | | | | access. Explain why. * fhandler_disk_file.cc (fhandler_base::fstat_helper): Improve debug output.
* * fhandler.cc (fhandler_base::open): Don't open file with WRITE_DACCorinna Vinschen2011-07-055-8/+34
| | | | | | | | access on remote filesystem. 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.
* * environ.cc (tty_is_gone): Wrap warning at 80 characters.Christopher Faylor2011-07-042-2/+6
|
* Throughout, open console handles with sharing for reading and writing.Corinna Vinschen2011-07-047-14/+21
| | | | | | * dcrt0.cc (insert_file): Open file with full sharing allowed. * hookapi.cc (find_first_notloaded_dll): Ditto. * spawn.cc (av::fixup): Ditto.
* * dtable.cc (dtable::init_std_file_from_handle): Change test for consoleCorinna Vinschen2011-07-042-1/+6
| | | | device in call to fh->init to avoid conhost crash on W7.
* * environ.cc (environ_init): Reinstantiate on-the-fly CYGWIN variableCorinna Vinschen2011-07-042-0/+7
| | | | test and call to parse_options if found.
* * fhandler.cc (fhandler_base::open_with_arch): Call close_on_exec last to avoidChristopher Faylor2011-07-043-12/+18
| | | | | | | | setting close_on_exec for archetype. * fhandler_tty.cc (fhandler_pty_master::setup): Protect {from,to}_pty handles. Use consistent naming in debug output. Use inheritable handles and... (fhandler_pty_master::fixup_after_fork): ...avoid duplicating handles here. (fhandler_pty_slave::open): Don't set close_on_exec flag here.
* ELFOSABI_GNUThomas Schwinge2011-07-031-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | bfd/ * elf.c (_bfd_elf_set_osabi): Use ELFOSABI_GNU name instead of ELFOSABI_LINUX alias. * elf32-hppa.c: Likewise. * elf32-i370.c: Likewise. * elf64-hppa.c: Likewise. binutils/ * elfedit.c (osabis): Use ELFOSABI_GNU name instead of ELFOSABI_LINUX alias and ELFOSABI_HURD. Add GNU alias. * readelf.c (get_osabi_name, get_symbol_binding, get_symbol_type): Likewise. * doc/binutils.texi <elfedit>: Update accordingly. elfcpp/ * elfcpp.h (ELFOSABI): Add ELFOSABI_GNU with value of ELFOSABI_LINUX, keep ELFOSABI_LINUX as an alias. Remove ELFOSABI_HURD. gas/ * config/obj-elf.c (obj_elf_type): Use ELFOSABI_GNU name instead of ELFOSABI_LINUX alias. * config/tc-ia64.c: Likewise. include/elf/ * common.h (ELFOSABI_GNU): Define, replaces... (ELFOSABI_LINUX): ... this, kept as an alias. (ELFOSABI_HURD): Remove. ld/testsuite/ * ld-ifunc/ifunc.exp: Update for changed output. * ld-unique/unique.exp: Likewise.
* ELFOSABI_GNUThomas Schwinge2011-07-032-2/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | bfd/ * elf.c (_bfd_elf_set_osabi): Use ELFOSABI_GNU name instead of ELFOSABI_LINUX alias. * elf32-hppa.c: Likewise. * elf32-i370.c: Likewise. * elf64-hppa.c: Likewise. binutils/ * elfedit.c (osabis): Use ELFOSABI_GNU name instead of ELFOSABI_LINUX alias and ELFOSABI_HURD. Add GNU alias. * readelf.c (get_osabi_name, get_symbol_binding, get_symbol_type): Likewise. * doc/binutils.texi <elfedit>: Update accordingly. elfcpp/ * elfcpp.h (ELFOSABI): Add ELFOSABI_GNU with value of ELFOSABI_LINUX, keep ELFOSABI_LINUX as an alias. Remove ELFOSABI_HURD. gas/ * config/obj-elf.c (obj_elf_type): Use ELFOSABI_GNU name instead of ELFOSABI_LINUX alias. * config/tc-ia64.c: Likewise. include/elf/ * common.h (ELFOSABI_GNU): Define, replaces... (ELFOSABI_LINUX): ... this, kept as an alias. (ELFOSABI_HURD): Remove. ld/testsuite/ * ld-ifunc/ifunc.exp: Update for changed output. * ld-unique/unique.exp: Likewise.
* * dtable.cc (cnew): Fix whitespace.Christopher Faylor2011-07-012-1/+5
|
* libgloss: bfin: implement getpid/fstat/stat/link/unlink syscallsMichael Frysinger2011-07-012-20/+34
| | | | | | | | The current syscalls.c implements getpid/fstat/stat/link/unlink as mere stubs. So replace them with useful calls to do_syscall now that our sim can support them. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* libgloss: bfin: fix sim lseek() syscallMichael Frysinger2011-07-012-2/+8
| | | | | | | The sim lseek() syscall in the Blackfin libgloss code did not pass down the "whence" argument making lseek() in general kind of useless. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* [libiberty/filename_cmp] Darwin has case-insensitive filesystemsJoel Brobecker2011-07-012-0/+14
| | | | | | | | | | | | | include/ChangeLog: * filenames.h (HAVE_CASE_INSENSITIVE_FILE_SYSTEM): Define on Darwin, as well as on the systems that use a DOS-like filesystem. libiberty/ChangeLog: * filename_cmp.c (filename_cmp, filename_ncmp): Add handling of HAVE_CASE_INSENSITIVE_FILE_SYSTEM.
* 2011-07-01 Eric B. Weddington <eric.weddington@atmel.com>Eric Weddington2011-07-012-2/+6
| | | | | * avr.h (AVR_ISA_AVR6): Remove AVR_ISA_SPMX as it was actually a duplicate of AVR_ISA_SPM.
* PR binutils/12329Nick Clifton2011-07-012-1/+5
| | | | | | | * avr-dis.c (avr_operand): Fix disassembly of ELPM, LPM and SPM insns using post-increment addressing. * avr.h (AVR_ISA_AVR6): Fix typo, adding AVR_ISA_SPMX.