forked from Imagelibrary/binutils-gdb
PR 10979
* layout.cc (Layout::relaxation_loop_body): If -Ttext was used, don't put the file header and segment headers in the text segment.
This commit is contained in:
@@ -1,5 +1,10 @@
|
|||||||
2009-12-30 Ian Lance Taylor <iant@google.com>
|
2009-12-30 Ian Lance Taylor <iant@google.com>
|
||||||
|
|
||||||
|
PR 10979
|
||||||
|
* layout.cc (Layout::relaxation_loop_body): If -Ttext was used,
|
||||||
|
don't put the file header and segment headers in the text
|
||||||
|
segment.
|
||||||
|
|
||||||
PR 10979
|
PR 10979
|
||||||
* common.cc (Sort_commons::operator()): Stabilize sort when both
|
* common.cc (Sort_commons::operator()): Stabilize sort when both
|
||||||
entries are NULL.
|
entries are NULL.
|
||||||
|
|||||||
@@ -1482,6 +1482,12 @@ Layout::relaxation_loop_body(
|
|||||||
!= General_options::OBJECT_FORMAT_ELF)
|
!= General_options::OBJECT_FORMAT_ELF)
|
||||||
load_seg = NULL;
|
load_seg = NULL;
|
||||||
|
|
||||||
|
// If the user set the address of the text segment, that may not be
|
||||||
|
// compatible with putting the segment headers and file headers into
|
||||||
|
// that segment.
|
||||||
|
if (parameters->options().user_set_Ttext())
|
||||||
|
load_seg = NULL;
|
||||||
|
|
||||||
gold_assert(phdr_seg == NULL
|
gold_assert(phdr_seg == NULL
|
||||||
|| load_seg != NULL
|
|| load_seg != NULL
|
||||||
|| this->script_options_->saw_sections_clause());
|
|| this->script_options_->saw_sections_clause());
|
||||||
|
|||||||
Reference in New Issue
Block a user