aboutsummaryrefslogtreecommitdiff
path: root/gold/defstd.cc
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@google.com>2007-09-22 04:38:13 +0000
committerIan Lance Taylor <iant@google.com>2007-09-22 04:38:13 +0000
commit04df9a5751b3c08c227a36f5023da378cfee4628 (patch)
tree285da8a280c3435c8126e56632740a663c632a79 /gold/defstd.cc
parent3262338673b7708c02bcdb04327720e133282c15 (diff)
downloadgdb-04df9a5751b3c08c227a36f5023da378cfee4628.zip
gdb-04df9a5751b3c08c227a36f5023da378cfee4628.tar.gz
gdb-04df9a5751b3c08c227a36f5023da378cfee4628.tar.bz2
Fix some errors in symbol placement.
Diffstat (limited to 'gold/defstd.cc')
-rw-r--r--gold/defstd.cc14
1 files changed, 7 insertions, 7 deletions
diff --git a/gold/defstd.cc b/gold/defstd.cc
index 50a977a..1e2431f 100644
--- a/gold/defstd.cc
+++ b/gold/defstd.cc
@@ -152,7 +152,7 @@ const Define_symbol_in_segment in_segment[] =
{
"_edata", // name
elfcpp::PT_LOAD, // segment_type
- elfcpp::PF_X, // segment_flags_set
+ elfcpp::PF_W, // segment_flags_set
elfcpp::PF(0), // segment_flags_clear
0, // value
0, // size
@@ -166,7 +166,7 @@ const Define_symbol_in_segment in_segment[] =
{
"edata", // name
elfcpp::PT_LOAD, // segment_type
- elfcpp::PF_X, // segment_flags_set
+ elfcpp::PF_W, // segment_flags_set
elfcpp::PF(0), // segment_flags_clear
0, // value
0, // size
@@ -180,7 +180,7 @@ const Define_symbol_in_segment in_segment[] =
{
"__bss_start", // name
elfcpp::PT_LOAD, // segment_type
- elfcpp::PF_X, // segment_flags_set
+ elfcpp::PF_W, // segment_flags_set
elfcpp::PF(0), // segment_flags_clear
0, // value
0, // size
@@ -194,7 +194,7 @@ const Define_symbol_in_segment in_segment[] =
{
"_end", // name
elfcpp::PT_LOAD, // segment_type
- elfcpp::PF_X, // segment_flags_set
+ elfcpp::PF_W, // segment_flags_set
elfcpp::PF(0), // segment_flags_clear
0, // value
0, // size
@@ -202,13 +202,13 @@ const Define_symbol_in_segment in_segment[] =
elfcpp::STB_GLOBAL, // binding
elfcpp::STV_DEFAULT, // visibility
0, // nonvis
- Symbol::SEGMENT_START, // offset_from_base
+ Symbol::SEGMENT_END, // offset_from_base
false // only_if_ref
},
{
"end", // name
elfcpp::PT_LOAD, // segment_type
- elfcpp::PF_X, // segment_flags_set
+ elfcpp::PF_W, // segment_flags_set
elfcpp::PF(0), // segment_flags_clear
0, // value
0, // size
@@ -216,7 +216,7 @@ const Define_symbol_in_segment in_segment[] =
elfcpp::STB_GLOBAL, // binding
elfcpp::STV_DEFAULT, // visibility
0, // nonvis
- Symbol::SEGMENT_START, // offset_from_base
+ Symbol::SEGMENT_END, // offset_from_base
false // only_if_ref
}
};