aboutsummaryrefslogtreecommitdiff
path: root/gold/Makefile.am
AgeCommit message (Collapse)AuthorFilesLines
2008-07-212008-07-20 Chris Demetriou <cgd@google.com>Chris Demetriou1-2/+2
* 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.
2008-06-122008-06-12 David Edelsohn <edelsohn@gnu.org>David Edelsohn1-2/+2
David S. Miller <davem@davemloft.net> * powerpc.cc: New file. * Makefile.am (TARGETSOURCES): Add powerpc.cc (ALL_TARGETOBJS): Add powerpc.$(OBJEXT) * configure.tgt: Add entries for powerpc-* and powerpc64-*. * Makefile.in: Rebuild.
2008-05-28elfcpp/:Ian Lance Taylor1-0/+2
* dwarf.h (enum DW_FORM): Define. gold/: * reduced_debug_output.cc: New file. * reduced_debug_output.h: New file. * options.h (class General_optoins): Add --strip-debug-non-line. * options.cc (General_options::finalize): Add strip_debug_non_line to the strip heirarchy. * layout.h (class Layout): Add debug_abbrev_ and debug_info_ fields. * layout.cc: Include "reduced_debug_output.h". (Layout::Layout): Initialize new fields. (line_only_debug_sections): New static array. (is_lines_only_debug_sections): New static inline function. (Layout::include_section): Handle --strip-debug-non-line. (Layout::make_output_section): If --strip-debug-non-line, build new output sections for .debug_abbrev and .debug_info. * dwarf_reader.cc (read_unsigned_LEB_128): Move to namespace gold. Warn about possible overflow. (read_signed_LEB_128): Likewise. * dwarf_reader.h: (read_unsigned_LEB_128): Declare. (read_signed_LEB_128): Declare. * Makefile.am (CCFILES): Add reduced_debug_output.cc. (HFILES): Add reduced_debug_output.h. * Makefile.in: Rebuild.
2008-05-21 * mapfile.cc: New file.Ian Lance Taylor1-0/+2
* mapfile.h: New file. * options.h (class General_options): Add -M/--print-map and -Map. * options.cc (General_options::finalize): Make -M equivalent to -Map -. * main.cc: Include <cstdio> and "mapfile.h". (main): Open mapfile if requested. * gold.cc (class Middle_runner): Add mapfile_ field. Update constructor. Change caller. (queue_initial_tasks): Add mapfile parameter. Change caller. (queue_middle_tasks): Likewise. * gold.h (queue_initial_tasks, queue_middle_tasks): Update declarations. * archive.cc: Include "mapfile.h". (Archive::add_symbols): Add mapfile parameter. Change all callers. Pass mapfile, symbol, and reason to include_member. (Archive::include_all_members): Add mapfile parameter. Change all callers. (Archive::include_member): Add mapfile, sym, and why parameters. Change all callers. Report inclusion to map file. * archive.h: Include "fileread.h". (class Archive): Update declarations. (Archive::file): New const method. (class Add_archive_symbols): Add mapfile_ field. Update constructor. Change all callers. * readsyms.h (class Read_symbols): Likewise. (class Finish_group): Likewise. (class Read_script): Likewise. * common.cc: Include "mapfile.h". (Symbol_table::allocate_commons): Add mapfile parameter. Change all callers. (Symbol_table::do_allocate_commons): Likewise. (Symbol_table::do_allocate_commons_list): Likewise. Report common symbol allocation to mapfile. * common.h (class Allocate_commons_task): Add mapfile_ field. Update constructor. Change all callers. * symtab.h (class Symbol_table): Update declarations. * layout.cc: Include "mapfile.h". (Layout_task_runner::run): Print information to mapfile. (Layout::create_gold_note): Change Output_data_fixed_space to Output_data_zero_fill. (Layout::create_build_id): Likewise. (Layout::print_to_mapfile): New function. * layout.h (class Layout_task_runner): Add mapfile_ field. Update constructor. Change caller. (class Layout): Declare print_to_mapfile. * output.cc (Output_section::Input_section::print_to_mapfile): New function. (Output_section::add_input_section): If producing a map, always add to input_sections_ list. (Output_section::do_print_to_mapfile): New function. (Output_segment::print_sections_to_mapfile): New function. (Output_segment::print_section_list_to_mapfile): New function. * output.h: Include "mapfile.h". (Output_data::print_to_mapfile): New function. (Output_data::do_print_to_mapfile): New virtual function. (Output_segment_headers::do_print_to_mapfile): New function. (Output_file_header::do_print_to_mapfile): New function. (Output_data_const::do_print_to_mapfile): New function. (class Output_data_const_buffer): Add map_name_ field. Update constructor. Change all callers. Add do_print_to_mapfile function. (class Output_data_fixed_space): Likewise. (class Output_data_space): Likewise. (class Output_data_zero_fill): New class. (Output_data_strtab::do_print_to_mapfile): New function. (Output_data_reloc_base::do_print_to_mapfile): New function. (Output_relocatable_relocs::do_print_to_mapfile): New function. (Output_data_group::do_print_to_mapfile): New function. (Output_data_got::do_print_to_mapfile): New function. (Output_data_dynamic::do_print_to_mapfile): New function. (Output_symtab_xindex::do_print_to_mapfile): New function. (class Output_section): Declare do_print_to_mapflie. Declare print_to_mapfile in Input_section. (class Output_segment): Declare new functions. * object.h (Sized_relobj::symbol_count): New function. * script-sections.cc (Output_section_element_dot_assignment::set_section_addresses): Change Output_data_fixed_space to Output_data_zero_fill. (Output_data_expression::do_print_to_mapfile): New function. * script.cc (read_input_script): Add mapfile parameter. Change all callers. * script.h (read_input_script): Update declaration. * ehframe.h (Eh_frame_hdr::do_print_to_mapfile): New function. (Eh_frame::do_print_to_mapfile): New function. * merge.h (Output_merge_data::do_print_to_mapfile): New function. (Output_merge_string::do_print_to_mapfile): New function. * i386.cc (Output_data_plt_i386::do_print_to_mapfile): New function. * sparc.cc (Output_data_plt_sparc::do_print_to_mapfile): New function. * x86_64.cc (Output_data_plt_x86_64::do_print_to_mapfile): New function. * Makefile.am (CCFILES): Add mapfile.cc. (HFILES): Add mapfile.h. * Makefile.in: Rebuild.
2008-04-16 * copy-relocs.cc: New file.Ian Lance Taylor1-0/+2
* copy-relocs.h: New file. * reloc.cc: Remove Copy_relocs code. * reloc.h: Likewise. * reloc-types.h (struct Reloc_types) [both versions]: Add get_reloc_addend_noerror. * output.h (class Output_data_reloc<elfcpp::SHT_REL>): Add variants of add_global which take an addend which must be zero. * i386.cc: Include "copy-relocs.h". (class Target_i386): Change type of copy_relocs_ to variable, update initializer. (Target_i386::copy_reloc): Rewrite to pass to Copy_relocs class. Change all callers. (Target_i386::do_finalize_sections): Change handling of copy_relocs_. * sparc.cc: Include "copy-relocs.h". (class Target_sparc): Change type of copy_relocs_ to variable, update initializer. (Target_sparc::copy_reloc): Rewrite to pass to Copy_relocs class. Change all callers. (Target_sparc::do_finalize_sections): Change handling of copy_relocs_. * x86_64.cc: Include "copy-relocs.h". (class Target_x86_64): Change type of copy_relocs_ to variable, update initializer. (Target_x86_64::copy_reloc): Rewrite to pass to Copy_relocs class. Change all callers. (Target_x86_64::do_finalize_sections): Change handling of copy_relocs_. * Makefile.am (CCFILES): Add copy-relocs.cc. (HFILES): Add copy-relocs.h.
2008-04-15toplevel/David S. Miller1-2/+2
* configure.ac: Add sparc*-*-* to gold supported targets. * configure: Regenerate. gold/ * sparc.cc: New file. * Makefile.am (TARGETSOURCES): Add sparc.cc (ALL_TARGETOBJS): Add sparc.$(OBJEXT) * configure.tgt: Document targ_extra_size and targ_extra_big_endian. Add entries for sparc-* and sparc64-*. * configure.ac: Handle targ_extra_size and targ_extra_big_endian. * Makefile.in: Rebuild. * configure: Likewise. * po/POTFILES.in: Likewise. * po/gold.pot: Likewise.
2008-02-08Add support for --format binary for input files.Ian Lance Taylor1-0/+2
2008-02-06Fix group signature handling for relocatable link, add bootstrapIan Lance Taylor1-3/+29
relocatable test.
2008-02-05From Ollie Wild: add missing backquote to install-exec-local.Ian Lance Taylor1-1/+1
2008-01-23Add explicit dependencies on yyscript.h to make sure that it isIan Lance Taylor1-0/+2
built.
2008-01-23Parse a SECTIONS clause in a linker script.Ian Lance Taylor1-2/+5
2008-01-09Support assignments and expressions in linker scripts.Ian Lance Taylor1-0/+1
2007-12-14Rewrite workqueue. This version eliminates the master thread, andIan Lance Taylor1-0/+1
reduces the amount of locking required to find a new thread to run.
2007-12-01Compile shared library code with -fPIC. Also, alphabetize.Ian Lance Taylor1-1/+1
2007-11-30From Craig Silverstein: Add support for compressing .debug_str section.Ian Lance Taylor1-0/+2
2007-11-22Add threading support.Ian Lance Taylor1-2/+4
2007-11-02From Craig Silverstein: Add first version of generating error messagesIan Lance Taylor1-0/+2
with file name and line number.
2007-10-24Use AC_GNU_SOURCE.Ian Lance Taylor1-1/+1
2007-10-17Add infrastructure for threading support.Ian Lance Taylor1-1/+5
2007-10-14Run all error handling through an Errors object. Delete output fileIan Lance Taylor1-0/+2
on error.
2007-10-08From Craig Silverstein: add tls.h, use it in i386.cc.Ian Lance Taylor1-0/+1
2007-10-07Add --version option.Ian Lance Taylor1-0/+1
2007-10-04Full support for --sysroot.Ian Lance Taylor1-2/+5
2007-10-01From Craig Silverstein: x86_64 support.Ian Lance Taylor1-2/+2
2007-09-30Clean up target handling--only build required files, warn aboutIan Lance Taylor1-7/+12
unsupported targets.
2007-09-26Add basic exception frame header, plus test.Ian Lance Taylor1-0/+2
2007-09-25Rework File_read interface. Get file size. Use pread whenIan Lance Taylor1-2/+2
available.
2007-09-22Change YFLAGS to AM_YFLAGS.Ian Lance Taylor1-1/+1
2007-09-22Add bootstrap test.Ian Lance Taylor1-3/+47
2007-09-21Add global parameters.Ian Lance Taylor1-0/+2
2007-05-16Add support for SHF_MERGE sections.Ian Lance Taylor1-0/+2
2006-11-30Added a testsuite. More support for COPY relocations.Ian Lance Taylor1-9/+15
2006-11-16Snapshot. Includes first cut at output relocation sections.Ian Lance Taylor1-0/+2
2006-11-14More dynamic object support, initial scripting support.Ian Lance Taylor1-2/+14
2006-11-03Can now do a full static link of hello, world in C or C++Ian Lance Taylor1-0/+4
2006-09-29Snapshot. Now able to produce a minimal executable which actuallyIan Lance Taylor1-0/+5
runs.
2006-09-21New drop, with first cut of section layout code.Ian Lance Taylor1-1/+4
2006-08-18Another snapshot of the current state of the sources. Gets to theIan Lance Taylor1-3/+12
point of symbol resolution and can now issue a multiple definition error. Also added target selection infrastructure.
2006-08-04Initial CVS checkin of goldIan Lance Taylor1-0/+69