Tristan Gingold
1222b29101
bfd/
...
2010-08-03 Tristan Gingold <gingold@adacore.com>
* makefile.vms (OBJS): Update list.
gas/
Index: gas/ChangeLog
2010-08-03 Tristan Gingold <gingold@adacore.com>
* makefile.vms (OBJS): Add Add compress-debug.c.
2010-08-03 14:29:00 +00:00
Ian Lance Taylor
22f0da72ea
2010-08-03 Ian Lance Taylor <iant@google.com>
...
PR 11805
* layout.h (enum Output_section_order): Define.
(class Layout): Update declarations.
* layout.cc (Layout::get_output_section): Add order parameter.
Remove is_interp, is_dynamic_linker_section, is_last_relro, and
is_first_non_relro parameters. Change all callers.
(Layout::choose_output_section): Likewise.
(Layout::add_output_section_data): Likewise.
(Layout::make_output_section): Likewise. Set order.
(Layout::default_section_order): New function.
(Layout::layout_eh_frame): Call add_output_section_to_nonload.
* output.cc (Output_section::Output_section): Initialize order_.
Don't initialize deleted fields.
(Output_segment::Output_segment): Don't initialize deleted
fields.
(Output_segment::add_output_section_to_load): New function
replacing add_output_section. Change all callers to call this or
add_output_section_to_nonload.
(Output_segment::add_output_section_to_nonload): New function.
(Output_segment::remove_output_section): Rewrite.
(Output_segment::add_initial_output_data): Likewise.
(Output_segment::has_any_data_sections): Likewise.
(Output_segment::is_first_section_relro): Likewise.
(Output_segment::maximum_alignment): Likewise.
(Output_segment::has_dynamic_reloc): New function replacing
dynamic_reloc_count. Change all callers.
(Output_segment::has_dynamic_reloc_list): New function replacing
dynamic_reloc_count_list. Change all callers.
(Output_segment::set_section_addresses): Rewrite.
(Output_segment::set_offset): Rewrite.
(Output_segment::find_first_and_last_list): Remove.
(Output_segment::set_tls_offsets): Rewrite.
(Output_segment::first_section_load_address): Likewise.
(Output_segment::output_section_count): Likewise.
(Output_segment::section_with_lowest_load_address): Likewise.
(Output_segment::write_section_headers): Likewise.
(Output_segment::print_sections_to_map): Likewise.
* output.h (class Output_data): Remove dynamic_reloc_count_
field. Add has_dynamic_reloc_ field. Make bools into bitfields.
(Output_data::add_dynamic_reloc): Rewrite.
(Output_data::has_dynamic_reloc): New function.
(Output_data::dynamic_reloc_count): Remove.
(class Output_section): Add order_ field. Remvoe is_relro_local_,
is_last_relro_, is_first_non_relro_, is_interp_,
is_dynamic_linker_section_ fields. Add order and set_order
functions. Remove is_relro_local, set_is_relro_local,
is_last_relro, set_is_last_relro, is_first_non_relro,
set_is_first_non_relro functions, is_interp, set_is_interp,
is_dynamic_linker_section, and set_is_dynamic_linker_section
functions.
(class Output_segment): Change Output_data_list from std::list to
std:;vector. Add output_lists_ field. Remove output_data_ and
output_bss_ fields. Update declarations.
2010-08-03 14:07:13 +00:00
Alan Modra
e4d9f07834
* config/tc-d10v.h (TARGET_BYTES_BIG_ENDIAN): Define as 1.
...
* config/tc-m32c.c (md_number_to_chars): Call bigendian
form of number_to_chars, not littleendian.
2010-08-03 10:53:10 +00:00
Alan Modra
7b0a0875b2
* gas/all/octa.s, * gas/all/octa.d: New test.
...
* gas/all/gas.exp: Run octa.
* gas/elf/data-1.s, * gas/elf/data-1.d: Delete.
* gas/elf/elf.exp: Don't run data-1.
2010-08-03 10:30:52 +00:00
Tristan Gingold
1c4cc7461d
2010-08-03 Tristan Gingold <gingold@adacore.com>
...
* dwarf.c (display_debug_lines): Mark file argument unused.
Do not try to load .debug_info section.
2010-08-03 10:24:18 +00:00
Phil Muldoon
585d1eb8a8
2010-08-03 Phil Muldoon <pmuldoon@redhat.com>
...
* NEWS: Document Python value inferior function calls.
2010-08-03 09:38:16 +00:00
Tristan Gingold
5621317228
2010-08-03 Tristan Gingold <gingold@adacore.com>
...
* vms-alpha.c (_bfd_vms_slurp_egsd): Do not set SEC_HAS_CONTENTS
nor SEC_RELOC for empty sections.
2010-08-03 09:26:30 +00:00
Tristan Gingold
d833fa0d58
2010-08-03 Tristan Gingold <gingold@adacore.com>
...
* vms-alpha.c (evax_section_flags): Fix flags for absolute
section. Remove useless parenthesis.
2010-08-03 09:21:09 +00:00
Tristan Gingold
22b6a042aa
2010-08-03 Tristan Gingold <gingold@adacore.com>
...
* vms-lib.c (vms_lib_bread_raw): Change type of BUF argument.
(vms_lib_bread, vms_lib_bopen): Adjust.
2010-08-03 08:49:01 +00:00
Doug Evans
2de00c64c4
* dwarf2read.c (dwarf_attr_name): Add DW_AT_GNU_odr_signature.
2010-08-03 00:51:29 +00:00
gdbadmin
14b2f517ee
*** empty log message ***
2010-08-03 00:00:07 +00:00
Alan Modra
12c04d6fab
daily update
2010-08-03 00:00:06 +00:00
Doug Evans
49c3ccf710
* gdb.cp/namespace.exp: When "print ::cOtherFileClassVar" fails
...
because of an older gcc, change test2
"print ::C::OtherFileClass::cOtherFileClassVar" from unresolved
to unsupported.
2010-08-02 23:41:19 +00:00
H.J. Lu
ed9465a713
Run data-1 only for i*86, x86_64 and ia64.
...
2010-08-02 H.J. Lu <hongjiu.lu@intel.com>
* elf/elf.exp: Run data-1 only for i*86, x86_64 and ia64.
2010-08-02 22:05:23 +00:00
Ian Lance Taylor
3ff2ccb075
* arm.cc (Target_arm::gc_process_relocs): Use typename.
...
* powerpc.cc (Target_powerpc::gc_process_relocs): Likewise.
* sparc.cc (Target_sparc::gc_process_relocs): Likewise.
2010-08-02 20:44:31 +00:00
H.J. Lu
317bc8c820
Add a testcase for PR gas/11867.
...
2010-08-02 H.J. Lu <hongjiu.lu@intel.com>
PR gas/11867
* gas/elf/data-1.d: New.
* gas/elf/data-1.s: Likewise.
* elf/elf.exp: Run data-1.
2010-08-02 20:10:45 +00:00
Kazu Hirata
42c0c4f1c5
* gdb.base/break-always.exp: Do not expect full paths to file
...
names.
* gdb.base/commands.exp: Likewise.
2010-08-02 15:07:14 +00:00
Alan Modra
69da848e6e
* config/tc-d30v.c (d30v_cons_align): Don't align constants
...
in debug sections.
2010-08-02 13:53:29 +00:00
Alan Modra
c47320c3a0
* readelf.c (apply_relocations): D30V is really REL.
2010-08-02 13:52:49 +00:00
Ian Lance Taylor
88a4108bde
PR 11855
...
* script.cc (Script_options::Script_options): Initialize
symbol_definitions_ and symbol_references_.
(Script_options::add_symbol_assignment): Update
symbol_definitions_ and symbol_references_.
(Script_options::add_symbol_reference): New function.
(script_symbol): New function.
* script.h (class Script_options): Add symbol_definitions_ and
symbol_references_ fields.
(Script_options::referenced_const_iterator): New type.
(Script_options::referenced_begin): New function.
(Script_options::referenced_end): New function.
(Script_options::is_referenced): New function.
(Script_options::any_unreferenced): New function.
* script-c.h (script_symbol): Declare.
* yyscript.y (exp): Call script_symbol.
* symtab.cc: Include "script.h".
(Symbol_table::gc_mark_undef_symbols): Add layout parameter.
Change all callers. Check symbols referenced by scripts.
(Symbol_table::add_undefined_symbols_from_command_line): Add
layout parameter. Change all callers.
(Symbol_table::do_add_undefined_symbols_from_command_line):
Likewise. Break out loop body. Check symbols referenced by
scripts.
(Symbol_table::add_undefined_symbol_from_command_line): New
function broken out of
do_add_undefined_symbols_from_command_line.
* symtab.h (class Symbol_table): Update declarations.
* archive.cc: Include "layout.h".
(Archive::should_include_member): Add layout parameter. Change
all callers. Check for symbol mentioned in expression.
* archive.h (class Archive): Update declaration.
* object.cc (Sized_relobj::do_should_include_member): Add layout
parameter.
* object.h (Object::should_include_member): Add layout parameter.
Change all callers.
(Object::do_should_include_member): Add layout parameter.
(class Sized_relobj): Update declaration.
* dynobj.cc (Sized_dynobj::do_should_include_member): Add layout
parameter.
* dynobj.h (class Sized_dynobj): Update declaration.
* plugin.cc (Sized_pluginobj::do_should_include_member): Add
layout parameter.
* plugin.h (class Sized_pluginobj): Update declaration.
2010-08-02 13:34:33 +00:00
Alan Modra
93d90f466b
PR gas/11867
...
* expr.c (operand <'-' and '~'>): Widen bignums.
(operand <'!'>): Correct bignum result and convert to O_constant.
* read.c (emit_expr): Don't assert on .byte bignum. Don't display
bignum truncated warning for sign extended bignums.
2010-08-02 13:19:44 +00:00
Ian Lance Taylor
5f1ab67afc
PR 11866
...
* output.cc (Output_segment::set_offset): Search for the first and
last sections rather than assuming that the list is in order.
(Output_segment::find_first_and_last_list): New function.
* output.h (class Output_segment): Update declarations.
* testsuite/Makefile.am (check_PROGRAMS): Add relro_strip_test.
(relro_strip_test_SOURCES): New variable.
(relro_strip_test_DEPENDENCIES): New variable.
(relro_strip_test_LDFLAGS): New variable.
(relro_strip_test_LDADD): New variable.
(relro_strip_test.so): New target.
2010-08-02 11:59:11 +00:00
Alan Modra
85cfcbfb1a
PR 11866
...
* elf.c (assign_file_positions_for_load_sections): Use p_vaddr to
calculate off_adjust rather than first section vma.
2010-08-02 10:08:02 +00:00
Ian Lance Taylor
a8df5856e2
* i386.cc (class Target_i386): Add got_tlsdesc_ field.
...
(Target_i386::Target_i386):: Initialize got_tlsdesc_.
(Target_i386::got_tlsdesc_section): New function.
(Target_i386::got_section): Create space for GOT entries for
TLSDESC relocations.
(Target_i386::Scan::local): Use TLSDESC GOT for unoptimized
R_386_TLS_GOTDESC.
(Target_i386::Scan::global): Likewise.
(Target_i386::Relocate::relocate_tls): Adjust GOT offset when
using TLSDESC GOT.
* x86_64.cc (class Target_x86_64): Add got_tlsdesc_ field.
(Target_x86_64::Target_x86_64):: Initialize got_tlsdesc_.
(Target_x86_64::got_tlsdesc_section): New function.
(Target_x86_64::got_section): Create space for GOT entries for
TLSDESC relocations.
(Target_x86_64::Scan::local): Use TLSDESC GOT for unoptimized
R_386_TLS_GOTDESC.
(Target_x86_64::Scan::global): Likewise.
(Target_x86_64::Relocate::relocate_tls): Adjust GOT offset when
using TLSDESC GOT.
2010-08-02 10:07:03 +00:00
Tristan Gingold
b27423bb54
2010-08-02 Tristan Gingold <gingold@adacore.com>
...
* lib/gas-defs.exp (get_standard_section_names): New function.
(run_dump_tests): Document the new behavior for objdump,
document to new section-subst option. Automatically perform
substitutions for objdump.
(objdump_finish): Add REF_SUBST argument.
(run_list_test): Adjust call of regexp_diff.
(run_list_test_stdin): Ditto.
* gas/all/gas.exp (test_cond): Adjust call of regexp_diff.
* gas/symver/symver.exp (run_error_test): Ditto.
* gas/mt/relocs.exp (regexp_test): Ditto.
* gas/mep/complex-relocs.exp (regexp_test): Ditto.
* gas/m68k/all.exp: Ditto.
* gas/elf/elf.exp (run_elf_list_test): Ditto.
* gas/rx/rx-asm-good.d: Set section-subst to no.
2010-08-02 08:48:57 +00:00
Alan Modra
cd94c7fbb3
* config/tc-v850.c (md_assemble): Always pass format string to
...
as_warn.
(md_apply_fix): Similarly for as_warn_where.
2010-08-02 08:43:18 +00:00
Alan Modra
089b899275
* gas/i386/i386.exp (dw2-compress-1): Only run on ELF targets.
...
(dw2-compress-2, x86-64-dw2-compress-2): Remove unnecessary linux
target test.
2010-08-02 08:38:45 +00:00
Alan Modra
09fe853bd0
Update for ppc_fix_adjustable change.
2010-08-02 08:22:53 +00:00
Ian Lance Taylor
0c10a0a69f
* testsuite/final_layout.sh: Use dc to convert from hex to
...
decimal.
2010-08-02 07:41:04 +00:00
gdbadmin
651a8b0448
*** empty log message ***
2010-08-02 00:00:34 +00:00
Alan Modra
1245c354f3
daily update
2010-08-02 00:00:05 +00:00
gdbadmin
16f7fb5408
*** empty log message ***
2010-08-01 00:00:33 +00:00
Alan Modra
5098892f13
daily update
2010-08-01 00:00:05 +00:00
Paul Pluzhnikov
02d868e86d
2010-07-31 Paul Pluzhnikov <ppluzhnikov@google.com>
...
* linux-thread-db.c (libthread_db_debug): New variable.
(thread_db_find_new_threads_silently): Control verbosity with it.
(try_thread_db_load_1, try_thread_db_load): Likewise.
(find_new_threads_once): Likewise.
(_initialize_thread_db): Set/show it.
doc/ChangeLog
2010-07-31 Paul Pluzhnikov <ppluzhnikov@google.com>
* gdb.texinfo (Threads): Document 'debug libthread-db'.
2010-07-31 15:34:41 +00:00
Pedro Alves
310444acc2
* Makefile.in (signals_h): New.
...
(server_h): Depend on it.
(server.o): Don't depend on $(signals_def).
(signals.o): Depend on $(signals_def).
2010-07-31 07:58:48 +00:00
Jan Kratochvil
a19cae1666
gdb/
...
* common/signals.c (signals): Move the content to signals.def.
Include it. Remove the INDENT comments.
gdb/gdbserver/
* Makefile.in (signals_def): New.
(server_h): Append include/gdb/signals.h and signals_def.
(server.o): Append signals_def.
include/gdb/
* signals.h (enum target_signal): Move the content to signals.def.
Include it.
* signals.def: New file.
2010-07-31 04:17:44 +00:00
Alan Modra
7d7832c110
daily update
2010-07-31 00:00:06 +00:00
gdbadmin
e1720182fa
*** empty log message ***
2010-07-31 00:00:03 +00:00
Tom Tromey
c2bbed2a5a
gdb
...
* Makefile.in (install-only): Install gdb-add-index.
* gdb-add-index.sh: New file.
gdb/doc
* gdb.texinfo (Index Files): Mention gdb-add-index.
2010-07-30 20:46:34 +00:00
Doug Evans
c98ee71b7c
* gdb.cp/temargs.exp: For new tests that require newer gccs,
...
xfail them when run with older gccs.
2010-07-30 20:12:00 +00:00
Doug Evans
fd961404f8
* lib/gdb.exp (build_executable): Forward "c++" option to
...
get_compiler_info.
2010-07-30 19:59:42 +00:00
Cheng Renquan
f32b2f0980
gdb/
...
* MAINTAINERS: Add myself for write after approval privileges.
2010-07-30 19:11:27 +00:00
Doug Evans
999adef4d9
* gdb.python/py-type.exp (test_template): Mark as xfail tests
...
"python print ttype.template_argument(1)" and
"python print isinstance(ttype.template_argument(1), gdb.Value)"
if using gcc 4.4 or earlier.
2010-07-30 18:46:27 +00:00
Doug Evans
d3765805ec
* gdb.base/valgrind-db-attach.exp: Use unique test name for
...
attach-to-debugger handling.
2010-07-30 17:28:07 +00:00
H.J. Lu
b20dd2ce19
Add ATTRIBUTE_UNUSED to info in compute_bucket_count.
...
2010-07-30 H.J. Lu <hongjiu.lu@intel.com>
* elflink.c (compute_bucket_count): Add ATTRIBUTE_UNUSED to info.
2010-07-30 16:29:58 +00:00
Jan Kratochvil
1276c7599c
gdb/
...
* symfile.c (addr_section_name): New function.
(addrs_section_compar): Use it.
(addr_info_make_relative): Use it. Move variable sect_name into a more
inner block. Make ".dynbss" and ".sdynbss" checks more strict.
gdb/testsuite/
* gdb.base/prelink-lib.c (copyreloc): New initialized variable.
* gdb.base/prelink.c (copyreloc, bssvar, bssvarp): New variables.
(main): Use copyreloc.
* gdb.base/prelink.exp (split debug of executable)
(.dynbss vs. .bss address shift): New tests.
2010-07-30 16:04:30 +00:00
Tom Tromey
420697bb59
* configure: Rebuild.
...
* configure.ac: Add missing case for Python 2.7.
2010-07-30 15:59:41 +00:00
Hui Zhu
6c13bbe177
2010-07-30 Hui Zhu <teawater@gmail.com>
...
* gdb.texinfo (Inferiors and Programs): Update the introduce of
"detach inferior" and "kill inferior".
2010-07-30 14:32:02 +00:00
Anthony Green
e95c64cb3b
Add moxie-rtems support
2010-07-30 07:32:18 +00:00
gdbadmin
9ff9845ffb
*** empty log message ***
2010-07-30 00:00:32 +00:00