| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Change-Id: If634d8d30cfa8c88ca3ba59691a0df4ee5596f85
|
|
|
|
|
|
|
|
|
|
|
|
| |
when linking with "-r" options (ld bfd behaviour).
2012-10-16 Sriraman Tallam <tmsriram@google.com>
* layout.cc (Layout::include_section): Keep sections marked
SHF_EXCLUDE when doing relocatable links.
Change-Id: Icc49c2b8e34097ec95d869a70d367ef6faf320ed
Signed-off-by: Alexander Ivchenko <alexander.ivchenko@intel.com>
|
|
|
|
|
|
|
|
|
| |
For binutils-2.22 make check-gold was broken. This patch reverts
4dd978c332b01f700fb83a8ea57043fe08557093 and applies
3dcb6e6fd79152c6baa321d2af8892b714cad958 instead.
Change-Id: I7589c72aab9b180473c6e2049c7c6e72f9a8d808
Signed-off-by: Alexander Ivchenko <alexander.ivchenko@intel.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2013-06-05 Alexander Ivchenko <alexander.ivchenko@intel.com>
gold/
* layout.cc (Layout::set_segment_offsets): Taking care of the case when
the maximum segment alignment is larger than the page size.
* testsuite/Makefile.am (large_symbol_alignment): Test that Gold
correctly aligns the symbols with large alignemnt.
* testsuite/Makefile.in: Regenerate.
* testsuite/large_symbol_alignment.cc: New file.
Change-Id: I2fe5b73b9e76050f0f42bbbc9086d0d5824c0020
Signed-off-by: Alexander Ivchenko <alexander.ivchenko@intel.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
command line option in gold.
2013-05-30 Alexander Ivchenko <alexander.ivchenko@intel.com>
Sriraman Tallam <tmsriram@google.com>
* options.h (sort_section): New option.
* output.h (Input_section_sort_section_prefix_special_ordering_compare):
Rename from Input_section_sort_section_name_special_ordering_compare.
(Input_section_sort_section_name_compare): New struct.
* output.cc (Output_section::Input_section_sort_section_name_compare::
operator()): New function.
(Output_section::sort_attached_input_sections): Use new sort function
for .text if --sort-section=name is specified.
* layout.cc (Layout::make_output_section):
Add sorting by name when --sort-section=name is specified.
* testsuite/Makefile.am (text_section_grouping): Test option
--sort-section=name.
* testsuite/Makefile.in: Regenerate.
* testsuite/section_sorting_name.cc: New file.
* testsuite/section_sorting_name.sh: New file.
Change-Id: Icbb4bb11b95398c1f052326145aefaa2bdf41614
Signed-off-by: Alexander Ivchenko <alexander.ivchenko@intel.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
merging string literals:
2013-05-03 Alan Modra <amodra@bigpond.net.au>
* merge.cc (Output_merge_string::do_add_input_section): Correct
scan for number of strings. Rename vars to avoid shadowing.
Include missing terminator in input_size_.
2013-05-01 H.J. Lu <hjl.tools@gmail.com>
Restore empty string handling
* merge.cc (Output_merge_string<Char_type>::do_add_input_section):
Restore empty string handling.
2013-05-01 Cary Coutant <ccoutant@google.com>
gold/
* stringpool.cc (Stringpool_template::new_key_offset): Fix
uninitialized warning.
2013-04-29 Alexander Ivchenko <alexander.ivchenko@intel.com>
gold/
* output.cc (Output_section::add_merge_input_section): Allow
to merge sections if the alignment is more than character size.
* merge.h (Output_merge_string::Output_merge_string): Remove
assert.
* merge.cc (Output_merge_string<Char_type>::do_add_input_section): Count
only not-null strings. Check the alignment of strings.
* stringpool.h
(Stringpool_template<Stringpool_char>::Stringpool_template): Add
alignment as the argument.
(Stringpool_template<Stringpool_char>::addralign_): New class member.
* stringpool.cc (Stringpool_template<Stringpool_char>::new_key_offset):
Align non-zero length strings according to the addralign_.
(Stringpool_template<Stringpool_char>::set_string_offsets):
Updating offsets according to the given alignment.
* testsuite/Makefile.am (text_section_grouping): Test if string
literals are getting merged.
* testsuite/Makefile.in: Regenerate.
* testsuite/merge_string_literals_1.c: New file.
* testsuite/merge_string_literals_2.c: Ditto.
* testsuite/merge_string_literals.sh: Ditto.
Change-Id: I865560473766a31294d88ddcf43b2991c569c638
Signed-off-by: Alexander Ivchenko <alexander.ivchenko@intel.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2013-01-24 Sriraman Tallam <tmsriram@google.com>
* layout.cc (Layout::layout): Check for option text_reorder.
(Layout::make_output_section): Ditto.
* options.h (text_reorder): New option.
* output.cc (Input_section_sort_compare): Remove special ordering
of section names.
(Output_section::
Input_section_sort_section_name_special_ordering_compare::
operator()): New function.
(Output_section::sort_attached_input_sections): Use new sort function
for .text.
* output.h (Input_section_sort_section_name_special_ordering_compare):
New struct.
* testsuite/Makefile.am (text_section_grouping): Test option
--no-text-reorder
* testsuite/Makefile.in: Regenerate.
* testsuite/text_section_grouping.sh: Check order of functions without
default text reordering.
2013-01-16 Sriraman Tallam <tmsriram@google.com>
* testsuite/plugin_final_layout.cc: Fix comment.
2013-01-16 Sriraman Tallam <tmsriram@google.com>
* layout.cc (Layout::layout): Do not do default sorting for
text sections when section ordering is specified.
(make_output_section): Ditto.
* testsuite/plugin_final_layout.cc: Name the function sections
to catch reordering issues.
Change-Id: I3413636486d578d3482f9a8ec1d93a0ec0a8f7d8
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
sorting of text sections
Author: Sriraman Tallam <tmsriram@google.com>
Date: Thu Jan 10 00:18:14 2013 +0000
Make linker scripts and section ordering via --section-ordering-file or
linker plugins work. This patch lets linker scripts take precedence.
2013-01-09 Sriraman Tallam <tmsriram@google.com>
* output.h (sort_attached_input_sections): Change to be public.
* script-sections.cc
(Output_section_definition::set_section_addresses): Sort
attached input sections according to section order before linker
script assigns section addresses.
(Orphan_output_section::set_section_addresses): Sort
attached input sections according to section order before linker
script assigns section addresses.
* Makefile.am (final_layout.sh): Use a simple linker script to
check if section ordering still works.
* Makefile.in: Regenerate.
Author: Ian Lance Taylor <ian@airs.com>
Date: Fri Dec 21 06:24:31 2012 +0000
* layout.cc (Layout::special_ordering_of_input_section): New
function.
(Layout::layout): If input section requires special ordering, must
sort input sections.
(Layout::make_output_section): May sort .text input sections.
(Layout::is_section_name_prefix_grouped): Remove.
* layout.h (class Layout): Declare
special_ordering_of_input_section. Don't declare
is_section_name_prefix_grouped.
* output.cc (Output_section::add_input_section): Revert last
change.
(Output_section::Input_section_sort::match_file_name): Don't crash
if called on output section data.
(Output_section::Input_section_sort_compare): Sort based on
special ordering.
(Output_section::Input_section_sort_section_order_index_compare):
Revert last patch.
(Output_section::sort_attached_input_sections): Likewise.
Change-Id: I385c609300f697abcdeb82324c9af903259fe2b6
|
|\ |
|
| |
| |
| |
| |
| |
| |
| | |
Patch sent upstream for review as well.
http://sourceware.org/ml/binutils/2012-12/msg00202.html
Change-Id: I9bd12518f57293987a850f846d6d821f154c3cff
|
|/
|
|
|
|
|
|
| |
bfd files are backported from trunk.
gold files are not in trunk yet. Upstream is in progress.
Change-Id: I22e286af02e0d3ee9bebd92831a91b9027719cba
Signed-off-by: Pavel Chupin <pavel.v.chupin@intel.com>
|
|
|
|
|
|
|
|
| |
Modified two more files (nacl.cc and dwarf_reader.cc)
then previous commit c4e152d03f30998de6c625c45d894e8ce1c812c7
this change is based.
Change-Id: Ie6276194ceac69fc6dc6741c5905687373d2fac4
|
|
|
|
|
|
| |
Missing local patches will be added after.
Change-Id: I7e5f7529f165a48db48a07f08b85f36c2faa8d4a
|
|\ |
|
| |
| |
| |
| |
| |
| |
| | |
See same fix 3f9deb2d1ee43da1e1d4cf7576ea0e1c1412c8ec for binutils-2.21
Change-Id: I17ed2f187f4bc9dc0be7ffd624530f227d4e6282
Signed-off-by: Pavel Chupin <pavel.v.chupin@intel.com>
|
|/
|
|
|
|
|
|
|
|
|
|
|
|
| |
See http://sourceware.org/ml/binutils/2012-03/txt00005.txt
Backport of binutils (revision, file)
1.146 gold/arm.cc
1.97 gold/gold.cc
1.63 gold/target.h
1.188 gold/testsuite/Makefile.am
1.2 gold/testsuite/arm_exidx_test.s
1.1 gold/testsuite/arm_exidx_test.sh
Change-Id: Id7d79684fec9945540ff17a5773163214bd9d371
|
|\ |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
The gcc 4.2.1 (Apple Inc. build 5666, dot 3) comes with Xcode 3.2.6
emits warning for "while (0);" and breaks the build (thanks to -Werror
which treat warning as error). Change to "do {} while (0)" to fix it.
This is the same as previous commit e7891a8a63d5c3eb3bfd3e2d3a94a05438a43373
applied to binutils-2.21/gold
Change-Id: I41cccfd2e03d2a9a1172be93bea4e9031ea3fb90
|
|/
|
|
|
|
|
|
|
|
|
|
| |
1) Fix unused variable warning treated as an error,
partial backport of 28c6758c7a87647eec5476a5c03415b121b44c7a
done to binutils-2.21/gold
2) Add casts where i586-mingw32msvc-gcc gives warnings
later treated as errors, same as
68ba60c0e44c1187cb582474ebb001d95a7170f6 done to
binutils-2.21/gold
Change-Id: I746477ebef77159d340178d20c9ec4e2dca23abc
|
|
Change-Id: I8c1bf4cf62df8eb16439021f1a1bac6437f5c470
|