binutils-gdb/gold/testsuite
Ian Lance Taylor 9f1d377b33 * options.h (class General_options): Add -z relro.
* layout.cc (Layout::Layout): Initialize relro_segment_.
	(Layout::add_output_section_data): Return the output section.
	(Layout::make_output_section): Rcognize relro sections and mark
	them appropriately.
	(Layout::attach_allocated_section_to_segment): Put relro sections
	in a PT_GNU_RELRO segment.
	(Layout::create_initial_dynamic_sections): Mark the .dynamic
	section as relro.
	(Layout::segment_precedes): Sort PT_GNU_RELRO segments after
	PT_TLS segments.
	(Layout::linkonce_mapping): Map d.rel.ro.local to
	.data.rel.ro.local.
	(Layout::output_section_name): Us .data.rel.ro.local for any
	section which begins with that.
	* layout.h (class Layout): Update add_output_section_data
	declaration.  Add relro_segment_ field.
	* output.cc (Output_section::Output_section): Initialize is_relro_
	and is_relro_local_ fields.
	(Output_segment::add_output_section): Group relro sections.
	(Output_segment::is_first_section_relro): New function.
	(Output_segment::maximum_alignment): If there is a relro section,
	align the segment to the common page size.
	(Output_segment::set_section_addresses): Track whether we are
	looking at relro sections.  If the last section is a relro
	section, align to the common page size.
	(Output_segment::set_section_list_addresses): Add in_relro
	parameter.  Change all callers.  Align to the page size when
	moving from relro to non-relro section.
	(Output_segment::set_offset): Align memsz of a PT_GNU_RELRO
	segment.
	* output.h (class Output_section): Add is_relro_ and
	is_relro_local_ fields.
	(Output_section::is_relro): New function.
	(Output_section::set_is_relro): New function.
	(Output_section::is_relro_local): New function.
	(Output_section::set_is_relro_local): New function.
	(class Output_segment): Update declarations.
	* i386.cc (Target_i386::got_section): Mark .got section as relro.
	* sparc.cc (Target_sparc::got_section): Likewise.
	* x86_64.cc (Target_x86_64::got_section): Likewise.
	* testsuite/relro_test_main.cc: New file.
	* testsuite/relro_test.cc: New file.
	* testsuite/Makefile.am (check_PROGRAMS): Add relro_test.
	(relro_test_SOURCES, relro_test_DEPENDENCIES): New variables.
	(relro_test_LDFLAGS, relro_test_LDADD): New variables.
	(relro_test.so, relro_test_pic.o): New targets.
	* testsuite/Makefile.in: Rebuild.
2008-05-20 04:00:47 +00:00
..
Makefile.am * options.h (class General_options): Add -z relro. 2008-05-20 04:00:47 +00:00
Makefile.in * options.h (class General_options): Add -z relro. 2008-05-20 04:00:47 +00:00
basic_test.cc Update copyright years. Update language files. 2008-03-13 21:04:21 +00:00
binary.in Add support for --format binary for input files. 2008-02-08 07:06:58 +00:00
binary_test.cc Add support for --format binary for input files. 2008-02-08 07:06:58 +00:00
binary_unittest.cc * object.cc (Xindex::initialize_symtab_xindex): New function. 2008-04-19 18:30:58 +00:00
common_test_1.c * common.cc (Sort_commons::operator): Correct sorting algorithm. 2008-03-27 19:57:41 +00:00
constructor_test.cc Update copyright years. Update language files. 2008-03-13 21:04:21 +00:00
debug_msg.cc Update copyright years. Update language files. 2008-03-13 21:04:21 +00:00
debug_msg.sh Update copyright years. Update language files. 2008-03-13 21:04:21 +00:00
exception_test.h Update copyright years. Update language files. 2008-03-13 21:04:21 +00:00
exception_test_1.cc Update copyright years. Update language files. 2008-03-13 21:04:21 +00:00
exception_test_2.cc Update copyright years. Update language files. 2008-03-13 21:04:21 +00:00
exception_test_main.cc Update copyright years. Update language files. 2008-03-13 21:04:21 +00:00
initpri1.c * output.cc 2008-03-29 08:09:55 +00:00
justsyms.t * testsuite/justsyms.t: Start at 0x100. 2008-04-11 18:49:40 +00:00
justsyms_1.cc * testsuite/justsyms.t: Start at 0x100. 2008-04-11 18:49:40 +00:00
justsyms_2.cc Implement --just-symbols, including -R FILE. Fix symbol values when 2008-02-07 01:51:25 +00:00
many_sections_test.cc * object.cc (Sized_relobj::include_section_group): Adjust section 2008-05-05 19:16:43 +00:00
object_unittest.cc Update copyright years. Update language files. 2008-03-13 21:04:21 +00:00
odr_violation1.cc From Craig Silverstein: Rework debug info code a bit, add option for 2007-11-14 01:03:01 +00:00
odr_violation2.cc From Craig Silverstein: Rework debug info code a bit, add option for 2007-11-14 01:03:01 +00:00
protected_1.cc * symtab.cc (Symbol_table::add_from_dynobj): If we see a protected 2008-05-06 22:24:26 +00:00
protected_2.cc * symtab.cc (Symbol_table::add_from_dynobj): If we see a protected 2008-05-06 22:24:26 +00:00
protected_3.cc * symtab.cc (Symbol_table::add_from_dynobj): If we see a protected 2008-05-06 22:24:26 +00:00
protected_main_1.cc * symtab.cc (Symbol_table::add_from_dynobj): If we see a protected 2008-05-06 22:24:26 +00:00
protected_main_2.cc * symtab.cc (Symbol_table::add_from_dynobj): If we see a protected 2008-05-06 22:24:26 +00:00
protected_main_3.cc * symtab.cc (Symbol_table::add_from_dynobj): If we see a protected 2008-05-06 22:24:26 +00:00
relro_test.cc * options.h (class General_options): Add -z relro. 2008-05-20 04:00:47 +00:00
relro_test_main.cc * options.h (class General_options): Add -z relro. 2008-05-20 04:00:47 +00:00
script_test_1.cc Support assignments and expressions in linker scripts. 2008-01-09 19:57:45 +00:00
script_test_1.t Support assignments and expressions in linker scripts. 2008-01-09 19:57:45 +00:00
script_test_2.cc * testsuite/Makefile.am (justsyms_2r.o): Add dependency on 2008-04-11 20:44:52 +00:00
script_test_2.t Force different sections to different pages for better results on 2008-02-12 00:15:40 +00:00
script_test_2a.cc * testsuite/Makefile.am (justsyms_2r.o): Add dependency on 2008-04-11 20:44:52 +00:00
script_test_2b.cc * testsuite/justsyms.t: Start at 0x100. 2008-04-11 18:49:40 +00:00
script_test_3.sh PR gold/5996 2008-04-10 01:02:46 +00:00
script_test_3.t Force different sections to different pages for better results on 2008-02-12 00:15:40 +00:00
script_test_4.sh * testsuite/script_test_4.sh: Permit leading zeroes. 2008-04-16 17:43:38 +00:00
script_test_4.t * script-sections.cc (Script_sections::create_segments): Use 2008-04-15 22:50:37 +00:00
test.cc Update copyright years. Update language files. 2008-03-13 21:04:21 +00:00
test.h Update copyright years. Update language files. 2008-03-13 21:04:21 +00:00
testfile.cc * options.h (class General_options): Define --wrap as a special 2008-04-09 00:48:13 +00:00
testfile.h Update copyright years. Update language files. 2008-03-13 21:04:21 +00:00
testmain.cc PR gold/5986 2008-03-26 23:36:46 +00:00
tls_test.cc * common.cc (Symbol_table::allocate_commons): Remove options 2008-04-17 07:12:00 +00:00
tls_test.h * common.cc (Symbol_table::allocate_commons): Remove options 2008-04-17 07:12:00 +00:00
tls_test_c.c * common.cc (Symbol_table::allocate_commons): Remove options 2008-04-17 07:12:00 +00:00
tls_test_file2.cc Update copyright years. Update language files. 2008-03-13 21:04:21 +00:00
tls_test_main.cc * common.cc (Symbol_table::allocate_commons): Remove options 2008-04-17 07:12:00 +00:00
two_file_test.h * output.cc (Output_reloc<SHT_REL>::local_section_offset): Add 2008-04-07 22:46:17 +00:00
two_file_test_1.cc * output.cc (Output_reloc<SHT_REL>::local_section_offset): Add 2008-04-07 22:46:17 +00:00
two_file_test_1b.cc From Cary Coutant: Fix a case in which code takes the address of a 2008-02-01 00:39:10 +00:00
two_file_test_2.cc * output.cc (Output_reloc<SHT_REL>::local_section_offset): Add 2008-04-07 22:46:17 +00:00
two_file_test_main.cc * output.cc (Output_reloc<SHT_REL>::local_section_offset): Add 2008-04-07 22:46:17 +00:00
undef_symbol.cc Update copyright years. Update language files. 2008-03-13 21:04:21 +00:00
undef_symbol.sh Update copyright years. Update language files. 2008-03-13 21:04:21 +00:00
undef_symbol_main.cc Update copyright years. Update language files. 2008-03-13 21:04:21 +00:00
ver_matching_def.cc Update copyright years. Update language files. 2008-03-13 21:04:21 +00:00
ver_matching_test.sh Originally from Craig Silverstein, with changes: support using a 2008-01-24 00:15:00 +00:00
ver_test.h Update copyright years. Update language files. 2008-03-13 21:04:21 +00:00
ver_test_1.cc Update copyright years. Update language files. 2008-03-13 21:04:21 +00:00
ver_test_2.cc Update copyright years. Update language files. 2008-03-13 21:04:21 +00:00
ver_test_2.script Update copyright years. Update language files. 2008-03-13 21:04:21 +00:00
ver_test_2.sh Don't get confused about whether a symbol is the default version if we 2008-03-14 05:57:19 +00:00
ver_test_3.cc Update copyright years. Update language files. 2008-03-13 21:04:21 +00:00
ver_test_4.cc Update copyright years. Update language files. 2008-03-13 21:04:21 +00:00
ver_test_4.script Update copyright years. Update language files. 2008-03-13 21:04:21 +00:00
ver_test_4.sh * symtab.cc (Symbol_table::do_define_as_constant): Don't force a 2008-03-29 08:39:26 +00:00
ver_test_5.cc * symtab.cc (Symbol_table::add_from_relobj): Don't set the version 2008-03-27 06:11:57 +00:00
ver_test_5.script * symtab.cc (Symbol_table::add_from_relobj): Don't set the version 2008-03-27 06:11:57 +00:00
ver_test_5.sh * symtab.cc (Symbol_table::add_from_relobj): Don't set the version 2008-03-27 06:11:57 +00:00
ver_test_6.c * symtab.cc (Symbol_table::add_from_object): Handle saw_undefined_ 2008-03-27 18:19:09 +00:00
ver_test_7.cc * symtab.cc (Symbol_table::add_from_object): If we don't use the 2008-03-29 07:19:02 +00:00
ver_test_7.sh * symtab.cc (Symbol_table::add_from_object): If we don't use the 2008-03-29 07:19:02 +00:00
ver_test_8.script * symtab.c (Symbol::init_base_output_data): Add version 2008-05-08 18:44:33 +00:00
ver_test_main.cc Update copyright years. Update language files. 2008-03-13 21:04:21 +00:00
ver_test_main_2.cc Don't get confused about whether a symbol is the default version if we 2008-03-14 05:57:19 +00:00
version_script.map Originally from Craig Silverstein, with changes: support using a 2008-01-24 00:15:00 +00:00
weak_alias_test_1.cc * symtab.cc (Symbol_table::add_from_dynobj): Only look for weak 2008-04-09 22:45:08 +00:00
weak_alias_test_2.cc * symtab.cc (Symbol_table::add_from_dynobj): Only look for weak 2008-04-09 22:45:08 +00:00
weak_alias_test_3.cc * symtab.cc (Symbol_table::add_from_dynobj): Only look for weak 2008-04-09 22:45:08 +00:00
weak_alias_test_4.cc * symtab.cc (Symbol_table::add_from_dynobj): Only look for weak 2008-04-09 22:45:08 +00:00
weak_alias_test_main.cc * symtab.cc (Symbol_table::add_from_dynobj): Only look for weak 2008-04-09 22:45:08 +00:00
weak_test.cc Update copyright years. Update language files. 2008-03-13 21:04:21 +00:00
weak_undef.h * symtab.h (Symbol::is_strong_undefined): Removed unused function. 2008-04-17 00:14:36 +00:00
weak_undef_file1.cc * symtab.h (Symbol::is_strong_undefined): Removed unused function. 2008-04-17 00:14:36 +00:00
weak_undef_file2.cc * symtab.h (Symbol::is_strong_undefined): Removed unused function. 2008-04-17 00:14:36 +00:00
weak_undef_test.cc * symtab.h (Symbol::is_strong_undefined): Removed unused function. 2008-04-17 00:14:36 +00:00