forked from Imagelibrary/binutils-gdb
* layout.cc (Layout::set_segment_offsets): Accept writable .text
segment when omagic.
This commit is contained in:
@@ -3353,7 +3353,8 @@ Layout::set_segment_offsets(const Target* target, Output_segment* load_seg,
|
||||
addr = (*p)->paddr();
|
||||
}
|
||||
else if (parameters->options().user_set_Ttext()
|
||||
&& ((*p)->flags() & elfcpp::PF_W) == 0)
|
||||
&& (parameters->options().omagic()
|
||||
|| ((*p)->flags() & elfcpp::PF_W) == 0))
|
||||
{
|
||||
are_addresses_set = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user