X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=gold%2Fdefstd.cc;h=a7fdd93369fc35990401cd9503bbec07c3f740ab;hb=5430098f1807e084fe4ff5057040d68435f3d8a2;hp=984f3e1b042e44f5b41892ab9fec849d36e0c18d;hpb=a445fddf828b0e8251fbdce91bc9372e7efd24f0;p=deliverable%2Fbinutils-gdb.git diff --git a/gold/defstd.cc b/gold/defstd.cc index 984f3e1b04..a7fdd93369 100644 --- a/gold/defstd.cc +++ b/gold/defstd.cc @@ -1,6 +1,6 @@ // defstd.cc -- define standard symbols for gold. -// Copyright 2006, 2007 Free Software Foundation, Inc. +// Copyright (C) 2006-2017 Free Software Foundation, Inc. // Written by Ian Lance Taylor . // This file is part of gold. @@ -107,7 +107,19 @@ const Define_symbol_in_section in_section[] = 0, // nonvis true, // offset_is_from_end true // only_if_ref - } + }, + { + "__stack", // name + ".stack", // output_section + 0, // value + 0, // size + elfcpp::STT_NOTYPE, // type + elfcpp::STB_GLOBAL, // binding + elfcpp::STV_DEFAULT, // visibility + 0, // nonvis + false, // offset_is_from_end + true // only_if_ref + }, }; const int in_section_count = sizeof in_section / sizeof in_section[0]; @@ -128,6 +140,20 @@ const Define_symbol_in_segment in_segment[] = 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 @@ -238,7 +264,7 @@ const Define_symbol_in_segment in_segment[] = elfcpp::STV_DEFAULT, // visibility 0, // nonvis Symbol::SEGMENT_END, // offset_from_base - false // only_if_ref + true // only_if_ref } };