Alan Modra
167ac92966
daily update
18 years ago
Ian Lance Taylor
801647d1db
PR 6716
* gold.h: Always include <clocale>. Add Solaris workarounds
following code in binutils/sysdep.h.
18 years ago
Ian Lance Taylor
5edd166e7d
PR 6048
* ehframe.cc (Eh_frame::add_ehframe_input_section): Check whether
this->eh_frame_hdr_ is NULL before using it.
18 years ago
Ian Lance Taylor
c89ad72891
* dynobj.cc (Versions::Versions): Update comment.
18 years ago
H.J. Lu
457cad8e7d
2008-07-24 H.J. Lu <hongjiu.lu@intel.com>
* gas/i386/nops-1.d: Add -mtune=generic32.
* gas/i386/nops-2.d: Likewise.
* gas/i386/nops-3.d: Likewise.
* gas/i386/x86-64-nops-1.d: Add -mtune=generic64.
* gas/i386/x86-64-nops-2.d: Likewise.
* gas/i386/x86-64-nops-3.d: Likewise.
* gas/i386/x86-64-nops-4.d: Likewise.
18 years ago
Daniel Jacobowitz
20163277f8
* elf32-mips.c (elf_backend_write_section): Define.
18 years ago
Pedro Alves
60e569b986
* remote.c (remote_threads_extra_info): Don't query the remote
server about info on the internally added main thread.
18 years ago
DJ Delorie
b7d9aef1b3
merge from gcc
18 years ago
Aleksandar Ristovski
a6a7f2a560
* nto-procfs.c (procfs_attach): Populate initial thread list.
(procfs_wait): Return new pid, built from the inferior status.
18 years ago
Nick Clifton
4ff738568a
* elf.c (_bfd_elf_map_sections_to_segments): Catch off by one
error assigning sections to segments.
18 years ago
Ian Lance Taylor
aa86f06bb6
* dynobj.cc (Versions::Versions): If there is an soname, use it as
the base version name.
18 years ago
Jie Zhang
81fd73edd1
* config/bfin-parse.y (asm_1): Error if plain symbol is used
as load/store offset.
18 years ago
Ian Lance Taylor
5778530ea7
* stringpool.cc (Stringpool_template::add_with_length): Set key to
array size plus one.
(Stringpool_template::set_string_offsets): Subtract one from key
before using it as an array index.
(Stringpool_template::get_offset_with_length): Likewise.
(Stringpool_template::write_to_buffer): Likewise.
* stringpool.h (Stringpool_template::get_offset_from_key):
Likewise.
18 years ago
Ian Lance Taylor
7f649c59d1
PR 6658
* object.h (Merged_symbol_value::value): Do our best to handle a
negative addend.
18 years ago
Alan Modra
94c16cb988
daily update
18 years ago
gdbadmin
e5a0a87f7c
*** empty log message ***
18 years ago
Ian Lance Taylor
057ead2231
PR 6647
* script.cc (Version_script_info::get_versions): Don't add empty
version tag to return value.
(Version_script_info::get_symbol_version_helper): Change return
type to bool. Add pversion parameter. Change all callers.
(script_register_vers_node): Don't require a non-NULL tag.
* script.h (class Version_script_info): Update declarations.
(Version_script_info::get_symbol_version): Change return type to
bool. Add version parameter. Change all callers.
* symtab.cc (Sized_symbol::add_from_relobj): Rework version
handling. Handle an empty version from a version script.
(Symbol_table::define_special_symbol): Likewise.
* testsuite/ver_test_10.script: New file.
* testsuite/ver_test_10.sh: New file.
* testsuite/Makefile.am (check_SCRIPTS): Add ver_test_10.sh.
(check_DATA): Add ver_test_10.syms.
(ver_test_10.syms, ver_test_10.so): New target.
* testsuite/Makefile.in: Rebuild.
18 years ago
Thiago Jung Bauermann
e63e4db203
* configure.ac (CONFIG_INITS): Delete long obsoleted variable.
* configure: Regenerate.
18 years ago
Chris Demetriou
58e54ac21d
2008-07-23 Simon Baldwin <simonb@google.com>
* symtab.cc (Symbol_table::sized_write_symbol): Only set st_size
to zero for undefined symbols from dynamic libraries.
18 years ago
Ian Lance Taylor
95d14cd31e
* symtab.cc (Symbol_table::resolve): Remove version parameter.
Change all callers.
* symtab.h (class Symbol_table): Update declaration.
* testsuite/ver_test_9.cc: New file.
* testsuite/Makefile.am (check_PROGRAMS): Add ver_test_9.
(ver_test_9_SOURCES, ver_test_9_DEPENDENCIES): Define.
(ver_test_9_LDFLAGS, ver_test_9_LDADD): Define.
(ver_test_9.so, ver_test_9.o): New targets.
* testsuite/Makefile.in: Rebuild.
18 years ago
Aleksandar Ristovski
14ef7606b7
* nto-procfs.c (procfs_xfer_memory): Changed signature.
(procfs_resume): Workaround for dereferencing type-punned pointer
warning.
* nto-tdep.c (nto_parse_redirection): Change signature to be const
correct.
* nto-tdep.h (nto_parse_redirection): Likewise.
18 years ago
gdbadmin
16d0210785
*** empty log message ***
18 years ago
Alan Modra
2b380f6b14
daily update
18 years ago
Ian Lance Taylor
3481085102
* options.h (class General_options): Define --check-sections.
* layout.cc (Layout::set_segment_offsets): Handle
--check-sections.
18 years ago
Ian Lance Taylor
af6156ef8d
* options.h (class General_options): Define -n/--nmagic and
-N/--omagic.
* options.cc (General_options::finalize): For -n/--nmagic or
-N/--omagic, set -static.
* layout.cc (Layout::attach_allocated_section_to_segment): If
-N/--omagic, don't put read-only and read-write sections in
different segments.
(Layout::find_first_load_seg): If -N/--omagic, don't insist on
finding a read-only segment.
(Layout::set_segment_offsets): If -N/--omagic or -n/--nmagic,
don't set the minimum segment alignment to the common page size,
and don't set the file offset to the address modulo the page size.
* script-sections.cc (Script_sections::create_segments): If
-n/--omagic, don't put read-only and read-write sections in
different segments.
18 years ago
Ian Lance Taylor
92de84a60c
* cref.cc: New file.
* cref.h: New file.
* options.h (class General_options): Add --print-symbol-counts.
* main.cc (main): Issue defined symbol report if requested.
* archive.cc (Archive::interpret_header): Make into a const member
function.
(Archive::add_symbols): Call Input_objects::archive_start and
archive_stop.
(Archive::const_iterator): Define new class.
(Archive::begin, Archive::end): New functions.
(Archive::include_all_members): Rewrite to use iterator.
(Archive::count_members): New function.
* archive.h (class Archive): Update declarations.
(Archive::filename): New function.
* object.cc: Include "cref.h".
(Sized_relobj::Sized_relobj): Initialize defined_count_.
(Sized_relobj::do_get_global_symbol_counts): New function.
(Input_objects::add_object): Add object to cross-referencer.
(Input_objects::archive_start): New function.
(Input_objects::archive_stop): New function.
(Input_objects::print_symbol_counts): New function.
* object.h: Declare Cref and Archive.
(Object::get_global_symbol_counts): New function.
(Object::do_get_global_symbol_counts): New pure virtual function.
(class Sized_relobj): Add defined_count_ field. Update
declarations.
(class Input_objects): Add cref_ field. Update constructor.
Update declarations.
* dynobj.cc (Sized_dynobj::Sized_dynobj): Initialize symbols_ and
defined_count_.
(Sized_dynobj::do_add_symbols): Allocate symbols_ if printing
symbol counts.
(Sized_dynobj::do_get_global_symbol_counts): New function.
* dynobj.h (class Sized_dynobj): Add fields symbols_ and
defined_count_. Update declarations. Define Symbols typedef.
* symtab.cc (Symbol_table::add_from_relobj): Add defined
parameter. Change all callers.
(Symbol_table::add_from_dynobj): Add sympointers and defined
parameters. Change all callers.
* symtab.h (class Symbol_table): Update declarations.
* Makefile.am (CCFILES): Add cref.cc.
(HFILES): Add cref.h.
* Makefile.in: Rebuild.
18 years ago
Chris Demetriou
3f7c5e1d99
2008-07-22 Simon Baldwin <simonb@google.com>
* symtab.cc (Symbol_table::sized_write_symbol): Set symbol size
to zero when writing undefined symbols.
18 years ago
Alan Modra
308cb401d6
Update for elf_link_output_extsym change
18 years ago
Nick Clifton
39948a609d
* elf.c (_bfd_elf_map_sections_to_segments): Allow sections in
adjoining pages to be included in the same segment.
18 years ago
Nick Clifton
570de99165
* config/tc-mips.c (mips_ip): Reset s to argsStart.
* gas/mips/tls-ill.l: Update error message.
* gas/mips/octeon-ill.l: Likewise.
18 years ago
Jie Zhang
b4f42c969a
* config/tc-bfin.c (bfin_gen_loop): Remove loop symbol.
18 years ago
Ian Lance Taylor
e0b640329e
* output.cc (Output_section::add_input_section): Don't try to
merge empty merge sections.
18 years ago
Chris Demetriou
bda987c255
2008-07-22 Simon Baldwin <simonb@google.com>
* elflink.c (elf_link_output_extsym): Set st_size to zero for
symbols from dynamic libraries.
18 years ago
Stan Shebs
cfd8ab242a
Scrub remnants of IN_SOLIB_DYNSYM_RESOLVE_CODE.
* gdbarch.sh: Adjust comment to refer to
in_solib_dynsym_resolve_code().
* gdbarch.h, gdbarch.c: Update.
* solib-osf.c: Ditto.
* infrun.c: Ditto.
(handle_inferior_event): Use in_solib_dynsym_resolve_code
unconditionally.
* config/mips/nm-irix5.h: Remove undef of
IN_SOLIB_DYNSYM_RESOLVE_CODE.
* gdbint.texinfo: Refer to target_so_ops.in_dynsym_resolve_code
instead of IN_SOLIB_DYNSYM_RESOLVE_CODE.
18 years ago
Alan Modra
21963d0e69
daily update
18 years ago
gdbadmin
5427ade67e
*** empty log message ***
18 years ago
Craig Silverstein
096b02cf4d
2008-07-21 Craig Silverstein <csilvers@google.com>
* symtab.cc (Symbol_table::warn_about_undefined_dynobj_symbol):
Include symbol version in error message.
18 years ago
DJ Delorie
cc189afcf8
* config/tc-h8300.c (fix_operand_size): Use the default size
specified by the .lbranch/.sbranch pseudos.
18 years ago
Tom Tromey
781b42b0ba
gdb
* symfile.c (reread_symbols): Don't pass argument to observer.
* exec.c (exec_file_attach): Don't pass argument to observer.
* ada-lang.c (ada_executable_changed_observer): Remove argument.
* symtab.c (symtab_observer_executable_changed): Remove argument.
* observer.sh: Handle functions with no arguments.
gdb/doc
* observer.texi (GDB Observers): Remove obsolete comment.
<executable_changed>: Remove argument.
18 years ago
H.J. Lu
88ba32a0f9
2008-07-21 H.J. Lu <hongjiu.lu@intel.com>
PR ld/4424
* elflink.c (_bfd_elf_merge_symbol): Call bed->relocs_compatible
to check if 2 inputs are compatible.
18 years ago
Nick Clifton
37c43c558f
* elf.c (assign_file_positions_for_load_sections): Print vma in
error message about overlapping section vmas.
18 years ago
H.J. Lu
50403a1fdb
2008-07-21 H.J. Lu <hongjiu.lu@intel.com>
PR ld/6747
* elf32-frv.c (elf32_frv_relocate_section): Revert the change
for PR ld/6446 checked in by accident on May 21, 2008.
18 years ago
Nick Clifton
799c00e027
* coff-sh.c (bfd_pe_print_pdata): Define to NULL for non
COFF_WITH_PE based SH ports.
* libpei.h (_bfd_XX_print_ce_compressed_pdata): Prototype.
* arm-wince-pe.c (bfd_pe_print_pdata): Use
_bfd_pe_print_ce_compressed_pdata.
(slurp_symcache, cleanup_syms, pe_print_ce_compressed_pdata): Move
to...
* peXXigen.c: ... here and rename pe_print_ce_compressed_pdata to
_bfd_XX_print_ce_compressed_pdata.
18 years ago
Nick Clifton
5b9f75a8ae
* ld-scripts/include-sections.t: Discard all sections not
explicitly requested by the rest of the linker script.
* ld-scripts/include-1.d: Expect test to fail for AIX ports.
Do not assume that the .text section will be marked readonly.
* ld-scripts/include.s: Replace .section directives with just
.text or .data.
18 years ago
Alan Modra
f60e73e9fc
* elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Drop
unwanted zero terminators.
18 years ago
Alan Modra
dc1859a6ef
* elf32-spu.c (spu_elf_relocate_section): Expand
RELOC_FOR_GLOBAL_SYMBOL. Don't warn about undefined symbols for
R_SPU_PPU32 and R_SPU_PPU64 relocations.
18 years ago
Chris Demetriou
1d1f116d7e
2008-07-20 Chris Demetriou <cgd@google.com>
* configure.ac (gold_cv_c_random_seed): New configured variable.
(RANDOM_SEED_CFLAGS): New substituted variable.
* Makefile.am (AM_CFLAGS, AM_CXXFLAGS): Add $(RANDOM_SEED_CFLAGS).
* configure: Rebuild.
* Makefile.in: Likewise.
* testsuite/Makefile.in: Likewise.
18 years ago
Luis Machado
89eeb0bc23
* bfd/elf-bfd.h: Declare elfcore_write_ppc_vsx.
* bfd/elf.c (elfcore_grok_ppc_vsx): New function.
(elfcore_write_ppc_vsx): New function
(elfcore_grok_note): Handle VSX notes.
(elfcore_write_register_note): Handle VSX notes.
* include/elf/common.h: Define NT_PPC_VSX.
* binutils/readelf.c (get_note_type): Handle VSX notes.
18 years ago
Chris Demetriou
a366c65aeb
2008-07-20 Sergei Poselenov <sposelenov@emcraft.com>
Chris Demetriou <cgd@google.com>
* elfread.c (elf_symfile_segments): Fix the check that each loadable
section fits within an ELF segment to handle ELF segments that hit
the end of the address space.
18 years ago
Alan Modra
1cad8cd386
daily update
18 years ago