projects
/
binutils-gdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
117be58
)
* layout.cc (Layout::set_segment_offsets): Accept writable .text
author
Alan Modra
<amodra@gmail.com>
Thu, 21 Mar 2013 04:52:55 +0000
(
04:52
+0000)
committer
Alan Modra
<amodra@gmail.com>
Thu, 21 Mar 2013 04:52:55 +0000
(
04:52
+0000)
segment when omagic.
gold/ChangeLog
patch
|
blob
|
history
gold/layout.cc
patch
|
blob
|
history
diff --git
a/gold/ChangeLog
b/gold/ChangeLog
index 52c2067e101c01941e4ab96a1bff1fd5a3d3ebd1..49ed9345a6b822cf5f59b7001904cc1cc23350d2 100644
(file)
--- a/
gold/ChangeLog
+++ b/
gold/ChangeLog
@@
-1,3
+1,8
@@
+2013-03-21 Alan Modra <amodra@gmail.com>
+
+ * layout.cc (Layout::set_segment_offsets): Accept writable .text
+ segment when omagic.
+
2013-03-21 Alan Modra <amodra@gmail.com>
* dwp.cc (Dwp_output_file::add_contribution): Avoid signed/unsigned
diff --git
a/gold/layout.cc
b/gold/layout.cc
index 4c48c3c4bb686d5a5b4dc8a847d6e8dc4a254197..8b88deaa43ddb42be4738fdf0de1b32c143cee9f 100644
(file)
--- a/
gold/layout.cc
+++ b/
gold/layout.cc
@@
-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;
}