// defstd.cc -- define standard symbols for gold.
-// Copyright 2006, 2007 Free Software Foundation, Inc.
+// Copyright (C) 2006-2020 Free Software Foundation, Inc.
// Written by Ian Lance Taylor <iant@google.com>.
// This file is part of gold.
true, // offset_is_from_end
true // only_if_ref
},
- {
- "__rel_iplt_start", // name
- ".rel.iplt", // output_section
- 0, // value
- 0, // size
- elfcpp::STT_NOTYPE, // type
- elfcpp::STB_GLOBAL, // binding
- elfcpp::STV_HIDDEN, // visibility
- 0, // nonvis
- false, // offset_is_from_end
- true // only_if_ref
- },
- {
- "__rel_iplt_end", // name
- ".rel.iplt", // output_section
- 0, // value
- 0, // size
- elfcpp::STT_NOTYPE, // type
- elfcpp::STB_GLOBAL, // binding
- elfcpp::STV_HIDDEN, // visibility
- 0, // nonvis
- true, // offset_is_from_end
- true // only_if_ref
- },
- {
- "__rela_iplt_start", // name
- ".rela.iplt", // output_section
- 0, // value
- 0, // size
- elfcpp::STT_NOTYPE, // type
- elfcpp::STB_GLOBAL, // binding
- elfcpp::STV_HIDDEN, // visibility
- 0, // nonvis
- false, // offset_is_from_end
- true // only_if_ref
- },
- {
- "__rela_iplt_end", // name
- ".rela.iplt", // output_section
- 0, // value
- 0, // size
- elfcpp::STT_NOTYPE, // type
- elfcpp::STB_GLOBAL, // binding
- elfcpp::STV_HIDDEN, // visibility
- 0, // nonvis
- true, // offset_is_from_end
- true // only_if_ref
- },
{
"__stack", // name
".stack", // output_section
Symbol::SEGMENT_START, // offset_from_base
true // only_if_ref
},
+ {
+ "__ehdr_start", // name
+ elfcpp::PT_LOAD, // segment_type
+ elfcpp::PF(0), // segment_flags_set
+ elfcpp::PF(0), // segment_flags_clear
+ 0, // value
+ 0, // size
+ elfcpp::STT_NOTYPE, // type
+ elfcpp::STB_GLOBAL, // binding
+ elfcpp::STV_HIDDEN, // visibility
+ 0, // nonvis
+ Symbol::SEGMENT_START, // offset_from_base
+ true // only_if_ref
+ },
{
"etext", // name
elfcpp::PT_LOAD, // segment_type
elfcpp::STV_DEFAULT, // visibility
0, // nonvis
Symbol::SEGMENT_END, // offset_from_base
- false // only_if_ref
+ true // only_if_ref
}
};