summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* gas/Roland McGrath2012-05-298-19/+49
| | | | | | | | | | | | | * read.c [HANDLE_BUNDLE] (bundle_lock_depth): New variable. (read_a_source_file) [HANDLE_BUNDLE]: Reset it. [HANDLE_BUNDLE] (s_bundle_lock, s_bundle_unlock): Allow nested pairs. gas/testsuite/ * gas/i386/bundle-bad.s: Remove nested .bundle_lock case. * gas/i386/bundle-bad.l: Remove expected error line. * gas/i386/bundle-lock.s: Add nested .bundle_lock case. * gas/i386/bundle-lock.d: Update expectations.
* Resync config/ from GCC.Joseph Myers2012-05-2913-13/+273
|
* * ld-tic6x/shlib-1b.rd: Update expected readelf output.Nick Clifton2012-05-2914-13/+29
| | | | | | | | | | | | | | | * ld-tic6x/shlib-1rb.rd: Likewise. * ld-tic6x/shlib-1.rd: Likewise. * ld-tic6x/shlib-1r.rd: Likewise. * ld-tic6x/shlib-app-1b.rd: Likewise. * ld-tic6x/shlib-app-1rb.rd: Likewise. * ld-tic6x/shlib-app-1.rd: Likewise. * ld-tic6x/shlib-app-1r.rd: Likewise. * ld-tic6x/shlib-noindex.rd: Likewise. * ld-tic6x/static-app-1b.rd: Likewise. * ld-tic6x/static-app-1rb.rd: Likewise. * ld-tic6x/static-app-1.rd: Likewise. * ld-tic6x/static-app-1r.rd: Likewise.
* bfd/Tom Tromey2012-05-292-2/+21
| | | | | | | | | | | | | * opncls.c (bfd_fopen): Always close fd on failure. (bfd_fdopenr): Likewise. gdb/ * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen fails. * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails. * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen fails. * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen fails.
* daily updateAlan Modra2012-05-291-1/+1
|
* * read.c (read_symbol_name): New function. Reads a symbol names.Nick Clifton2012-05-2812-171/+259
| | | | | | | | | | | | | | | | | | | | Allows escape codes in names. (s_comm_internal): Use read_symbol_name. (s_globl, s_lsym, s_set, s_weakref): Likewise. * doc/as.texinfo: Document support for multibyte characters in symbol names. * gas/elf/syms.s: New test - checks the generation of multibyte symbol names. * gas/elf/syms.d: New file - expected readelf output. * gas/elf/elf.exp: Add syms. * readelf.c (print_symbol): Display multibyte characters in symbol names. (process_section_headers): Use print_symbol. * ld-ifunc/ifunc-13a-i386.s: Fix use of .global directive. * ld-ifunc/ifunc-15a-i385.s: Likewise.
* PR ld/14170Alan Modra2012-05-283-18/+33
| | | | | | * ld-elf/pr14170a.s: Put foo, bar address in .data. * ld-elf/elf.exp: Don't run pr14170 test on hppa64-hpux. Ignore tic6x warnings.
* daily updateAlan Modra2012-05-281-1/+1
|
* Add a test for PR ld/14170H.J. Lu2012-05-275-0/+41
| | | | | | | | | PR ld/14170 * ld-elf/elf.exp: Add a test for PR ld/14170. * ld-elf/pr14170a.s: New file. * ld-elf/pr14170b.s: Likewise. * ld-elf/pr14170b.s: Likewise.
* PR ld/14170Alan Modra2012-05-272-12/+28
| | | | | | | | * elflink.c (_bfd_elf_merge_symbol): When a symbol defined in a dynamic library finds a new instance with non-default visibility in a regular object, correctly handle symbols already on the undefs list and undo dynamic symbol state when the new symbol is hidden or internal.
* daily updateAlan Modra2012-05-271-1/+1
|
* ld/Alan Modra2012-05-267-119/+145
| | | | | | | | | | | * ldlex.h (enum option_values): Move from.. * lexsup.c: ..here. * emultempl/ppc32elf.em: Include ldlex.h. (PARSE_AND_LIST_ARGS_CASES): Disable optimisations when --traditional-format. * emultempl/ppc64elf.em: Likewise. ld/testsuite/ * ld-srec/srec.exp: Remove powerpc64 flag setting.
* daily updateAlan Modra2012-05-261-1/+1
|
* 2012-05-25 Sriraman Tallam <tmsriram@google.com>Sriraman Tallam2012-05-252-0/+6
| | | | | * symtab.cc (Symbol_table::define_special_symbol): Initialize *poldsym to prevent uninitialized variable errors.
* Don't use dynamic_sec_flags on PLT .eh_frame sectionH.J. Lu2012-05-253-10/+14
| | | | | | * elf32-i386.c (elf_i386_create_dynamic_sections): Don't use dynamic_sec_flags to create PLT .eh_frame section. * elf64-x86-64.c (elf_x86_64_create_dynamic_sections): Likewise.
* PR ld/13909Alan Modra2012-05-252-4/+11
| | | | | * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Handle multiple .eh_frame sections attached to bfd.
* PR ld/13909Alan Modra2012-05-258-71/+114
| | | | | | | | | | | | | | | | | | | | | | | * elf-eh-frame.c (_bfd_elf_eh_frame_present): New function. (_bfd_elf_maybe_strip_eh_frame_hdr): Use it here. * elf-bfd.h (_bfd_elf_eh_frame_present): Declare. * elflink.c (bfd_elf_size_dynamic_sections): Let the backend size dynamic sections before stripping eh_frame_hdr. (bfd_elf_gc_sections): Handle multiple .eh_frame sections. * elf32-ppc.c (ppc_elf_size_dynamic_sections): Drop glink_eh_frame if no other .eh_frame sections exist. * elf64-ppc.c (ppc64_elf_size_stubs): Likewise. * elf32-i386.c (elf_i386_create_dynamic_sections): Don't size or alloc plt_eh_frame here.. (elf_i386_size_dynamic_sections): ..do it here instead. Don't specially keep sgotplt, iplt, tgotplt, sdynbss for symbols. (elf_i386_finish_dynamic_sections): Check plt_eh_frame->contents before writing plt offset. * elf64-x86-64.c (elf_x86_64_create_dynamic_sections): Don't size or alloc plt_eh_frame here.. (elf_x86_64_size_dynamic_sections): ..do it here instead. (elf_x86_64_finish_dynamic_sections): Check plt_eh_frame->contents before writing plt offset.
* daily updateAlan Modra2012-05-251-1/+1
|
* gdb/Pedro Alves2012-05-242-150/+156
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2012-05-24 Pedro Alves <palves@redhat.com> PR gdb/7205 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout. gdb/gdbserver/ 2012-05-24 Pedro Alves <palves@redhat.com> PR gdb/7205 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout. include/gdb/ 2012-05-24 Pedro Alves <palves@redhat.com> PR gdb/7205 * gdb/signals.def: Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout. sim/arm/ 2012-05-24 Pedro Alves <palves@redhat.com> PR gdb/7205 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout. sim/avr/ 2012-05-24 Pedro Alves <palves@redhat.com> PR gdb/7205 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout. sim/common/ 2012-05-24 Pedro Alves <palves@redhat.com> PR gdb/7205 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout. sim/cr16/ 2012-05-24 Pedro Alves <palves@redhat.com> PR gdb/7205 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout. sim/d10v/ 2012-05-24 Pedro Alves <palves@redhat.com> PR gdb/7205 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout. sim/erc32/ 2012-05-24 Pedro Alves <palves@redhat.com> PR gdb/7205 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout. sim/m32c/ 2012-05-24 Pedro Alves <palves@redhat.com> PR gdb/7205 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout. sim/ppc/ 2012-05-24 Pedro Alves <palves@redhat.com> PR gdb/7205 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout. sim/rl78/ 2012-05-24 Pedro Alves <palves@redhat.com> PR gdb/7205 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout. sim/rx/ 2012-05-24 Pedro Alves <palves@redhat.com> PR gdb/7205 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
* gdb/Pedro Alves2012-05-243-3/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2012-05-24 Pedro Alves <palves@redhat.com> PR gdb/7205 Replace target_signal with gdb_signal throughout. gdb/gdbserver/ 2012-05-24 Pedro Alves <palves@redhat.com> PR gdb/7205 Replace target_signal with gdb_signal throughout. include/gdb/ 2012-05-24 Pedro Alves <palves@redhat.com> PR gdb/7205 Replace target_signal with gdb_signal throughout. sim/common/ 2012-05-24 Pedro Alves <palves@redhat.com> PR gdb/7205 Replace target_signal with gdb_signal throughout.
* * gas/lns/lns-big-delta.s: Add nops.Alan Modra2012-05-243-3/+15
| | | | * gas/lns/lns-big-delta.d: Update.
* PR ld/14158Alan Modra2012-05-242-3/+31
| | | | | | * elf64-ppc.c (ppc64_elf_size_stubs): Round up glink_eh_frame size to output section alignment. (ppc64_elf_build_stubs): Likewise, and extend last FDE to cover.
* * leb128.h: #include stdint.h, inttypes.h.Doug Evans2012-05-242-10/+30
| | | | | | | (read_uleb128_to_uint64): Renamed from read_uleb128_to_ull. Change to take a uint64_t * argument instead of unsigned long long. (read_sleb128_to_uint64): Renamed from read_sleb128_to_ll. Change to take an int64_t * argument instead of long long.
* ld/Cary Coutant2012-05-246-15/+25
| | | | | | | | | | * scripttempl/armbpabi.sc: Match .data.rel.ro.* sections more carefully. Fix typo where .rela.data.rel.ro matches .rel.data.rel.ro. * scripttempl/mep.sc: Likewise. * scripttempl/elf.sc: Match .data.rel.ro.* sections more carefully. * scripttempl/elf64hppa.sc: Likewise. * scripttempl/elfxtensa.sc: Likewise.
* gold/Cary Coutant2012-05-242-3/+24
| | | | | | * layout.cc (Layout::section_name_mapping): Add rules to handle exact match on .data.rel.ro.local or .data.rel.ro. (Layout::output_section_name): Check for exact matches.
* daily updateAlan Modra2012-05-241-1/+1
|
* gold/Cary Coutant2012-05-232-2/+7
| | | | | * layout.cc (Layout::section_name_mapping): Match .data.rel.ro.* more carefully.
* * elf-eh-frame.c (_bfd_elf_maybe_strip_eh_frame_hdr): HandleAlan Modra2012-05-232-1/+10
| | | | BFDs with multiple .eh_frame sections.
* PR ld/13909Alan Modra2012-05-232-3/+5
| | | | * elflink.c (bfd_elf_discard_info): Don't ignore dynamic BFDs.
* gold/Cary Coutant2012-05-222-2/+8
| | | | | * symtab.cc (Symbol::should_add_dynsym_entry): Check for relocatable object before exporting symbol.
* Don't skip ld-elf/eh[1-4].d for x32H.J. Lu2012-05-225-4/+7
| | | | | | | * ld-elf/eh1.d: Don't skip x86_64-*-linux-gnux32. * ld-elf/eh2.d: Likewise. * ld-elf/eh3.d: Likewise. * ld-elf/eh4.d: Likewise.
* Adjust ld-x86-64/ilp32-11.s for NACLH.J. Lu2012-05-223-1/+10
| | | | | | * ld-x86-64/ilp32-11.s Add ".space 0x1000" before func. (func): Make it global and hidden. * ld-x86-64/ilp32-11.d: Updated.
* ld/testsuite/Roland McGrath2012-05-222-10/+10
| | | | | * ld-elf/eh4.d: Revert last change. Loosen CFI-matching regexps so they match x86_64-*-nacl* variant too.
* ld/testsuite/Roland McGrath2012-05-224-5/+11
| | | | | | | * ld-x86-64/pr12570a.d (name): Distinguish it from pr12570b.d case. Loosen CFI-matching regexp so it matches x86_64-*-nacl* variant too. * ld-x86-64/pr12570b.d: Likewise. * ld-x86-64/x86-64.exp: Revert last change.
* merge from gccDJ Delorie2012-05-226-1/+146
|
* Skip/xfail x86_64-*-nacl* for eh4/pr12570a testsH.J. Lu2012-05-223-1/+8
| | | | | | * ld-elf/eh4.d: Skip x86_64-*-nacl*. * ld-x86-64/x86-64.exp: Xfail pr12570a for x86_64-*-nacl*.
* Revert the change for PR ld/r13909H.J. Lu2012-05-229-27/+19
| | | | | | | | | | | | | | | | | | | | | bfd/ PR ld/13909 * elf32-i386.c (elf_i386_create_dynamic_sections): Revert the last change. * elf64-x86-64.c (elf_x86_64_create_dynamic_sections): Likewise. ld/testsuite/ 2012-05-22 H.J. Lu <hongjiu.lu@intel.com> PR ld/13909 * ld-i386/i386.exp: Revert the last change. * ld-x86-64/x86-64.exp: Likewise. * ld-i386/dummy.s: Removed. * ld-i386/pr13909.d: Likewise. * ld-x86-64/pr13909.d: Likewise.
* * elflink.c (bfd_elf_discard_info): Look for next .eh_frame ifAlan Modra2012-05-223-50/+73
| | | | | | | | first one is zero size or discarded. * elf32-ppc.c (ppc_elf_size_dynamic_sections): Set most of glink_eh_frame contents here.. (ppc_elf_finish_dynamic_sections): ..rather than here. Just set offset to .glink.
* Create PLT eh_frame section if there is .eh_frame sectionH.J. Lu2012-05-229-3/+45
| | | | | | | | | | | | | | | | | | | bfd/ PR ld/13909 * elf32-i386.c (elf_i386_create_dynamic_sections): Create PLT eh_frame section if there is an input .eh_frame section. * elf64-x86-64.c (elf_x86_64_create_dynamic_sections): Likewise. ld/testsuite/ PR ld/13909 * ld-i386/i386.exp: Run pr13909. * ld-x86-64/x86-64.exp: Likewise. * ld-i386/dummy.s: New file. * ld-i386/pr13909.d: Likewise. * ld-x86-64/pr13909.d: Likewise.
* Always create PLT eh_frame section for i386/x86-64H.J. Lu2012-05-2215-7/+116
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | bfd/ 2012-05-22 H.J. Lu <hongjiu.lu@intel.com> PR ld/14105 * elf32-i386.c (elf_i386_create_dynamic_sections): Always create PLT eh_frame section with SEC_LINKER_CREATED. * elf64-x86-64.c (elf_x86_64_create_dynamic_sections): Likewise. ld/testsuite/ 2012-05-20 H.J. Lu <hongjiu.lu@intel.com> PR ld/14105 * ld-elf/eh4.d: Add PLT eh_frame. * ld-i386/i386.exp: Run pr12570a and pr12570b. * ld-x86-64/x86-64.exp: Likewise. * ld-i386/pr12570a.d: New file. * ld-i386/pr12570a.s: Likewise. * ld-i386/pr12570b.s: Likewise. * ld-i386/pr12570b.s: Likewise. * ld-x86-64/pr12570a.d: Likewise. * ld-x86-64/pr12570a.s: Likewise. * ld-x86-64/pr12570b.d: Likewise. * ld-x86-64/pr12570b.s: Likewise.
* * elflink.c (bfd_elf_discard_info): Handle multiple .eh_frameAlan Modra2012-05-224-10/+50
| | | | | | | sections attached to a BFD. * section.c (bfd_get_section_by_name): Rewrite description. (bfd_get_next_section_by_name): New function. * bfd-in2.h: Regenerate.
* gas: mips: fix segfault with invalid default cpu stringsMike Frysinger2012-05-222-1/+9
| | | | | | | | | | | | | | | | | If you configure gas for a mips32el-* target, the default cpu calculation gets mangled, and we end up passing and invalid value as the default cpu. If you try executing gas after that, it segfaults. This is because it assumes that the default cpu value is always valid. $ ./gas/as-new Assembler messages: Error: Bad value (2) for default CPU Segmentation fault (core dumped) I'm not debating that the target tuple is valid, just that gas shouldn't crash. So add a friendly assert to avoid that. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* daily updateAlan Modra2012-05-221-1/+1
|
* Include "config.h" firstH.J. Lu2012-05-213-2/+7
| | | | | * testsuite/tls_test.cc: Include "config.h" first. * testsuite/tls_test_c.c: Likewise.
* * elf32-m68k.c (elf_m68k_grok_prstatus): New function.Andreas Schwab2012-05-212-0/+72
| | | | | | (elf_m68k_grok_psinfo): New function. (elf_backend_grok_prstatus): Define. (elf_backend_grok_psinfo): Define.
* daily updateAlan Modra2012-05-211-1/+1
|
* daily updateAlan Modra2012-05-201-1/+1
|
* * elf64-mips.c (elf_backend_got_header_size): Correct definition.Maciej W. Rozycki2012-05-193-2/+9
| | | | | * elfxx-mips.c (_bfd_mips_elf_adjust_dynamic_symbol): Use the ELF backend's GOT header size instead of hardcoding it.
* * elf32-vax.c (elf_vax_relocate_section)Maciej W. Rozycki2012-05-192-2/+6
| | | | <R_VAX_8, R_VAX_16, R_VAX_32>: Don't check if info->shared again.
* * elf32-vax.c (elf_vax_relocate_section)Maciej W. Rozycki2012-05-192-8/+13
| | | | | <R_VAX_8, R_VAX_16, R_VAX_32>: Use section flags rather than its name as the check for text sections.