summaryrefslogtreecommitdiffstats
path: root/src/build/linker/linker.C
diff options
context:
space:
mode:
authorDaniel M Crowell <dcrowell@us.ibm.com>2019-08-04 14:29:43 -0500
committerDaniel M Crowell <dcrowell@us.ibm.com>2019-08-08 16:43:33 -0500
commit4a6e203860f5b8cfeb7de3740b06f9bbaf2d5f1e (patch)
treeb8d1df35478c328fe7cfea5054029041a4ca91f6 /src/build/linker/linker.C
parenta51a388127115471fac1b871409ff6ccfacbfeef (diff)
downloadtalos-hostboot-4a6e203860f5b8cfeb7de3740b06f9bbaf2d5f1e.tar.gz
talos-hostboot-4a6e203860f5b8cfeb7de3740b06f9bbaf2d5f1e.zip
Revert "Compile Hostboot with -Os"
This reverts commit cd1e5c91e4a15ca933c699553ece9b841825ac03. The previous change seems to be causing problems with thread local storage (TLS) access. CQ: SW471547 Change-Id: Ic6f43fbba2a3d5abe94ea73e8e5fd03702b84365 Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/81652 Reviewed-by: Daniel M Crowell <dcrowell@us.ibm.com> Tested-by: Daniel M Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/build/linker/linker.C')
-rw-r--r--src/build/linker/linker.C16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/build/linker/linker.C b/src/build/linker/linker.C
index ba498d8a9..e5e53ad8a 100644
--- a/src/build/linker/linker.C
+++ b/src/build/linker/linker.C
@@ -123,7 +123,6 @@ struct Object
string name; //!< full path name of file
bfd* image; //!< bfd image of object
Section text; //!< text section of binary
- Section sfpr; //!< sfpr section of binary
Section rodata; //!< rodata section of binary
Section data; //!< data section of binary
map<string, Symbol> symbols; //!< symbol map
@@ -595,11 +594,6 @@ bool Object::read_object(const char* i_file)
{
s = &this->text;
}
- else if (string(".sfpr") ==
- bfd_get_section_name(image, image_section))
- {
- s = &this->sfpr;
- }
else if (string(".rodata") ==
bfd_get_section_name(image, image_section))
{
@@ -654,16 +648,6 @@ bool Object::write_object()
cout << strerror(error) << endl;
}
- // Output sfpr section.
- fseek(iv_output, offset + sfpr.vma_offset, SEEK_SET);
- if ((0 != sfpr.size) &&
- (sfpr.size != fwrite(sfpr.data, 1, sfpr.size, iv_output)))
- {
- int error = errno;
- cout << "Error writing to output for sfpr." << endl;
- cout << strerror(error) << endl;
- }
-
// Output RODATA section.
fseek(iv_output, offset + rodata.vma_offset, SEEK_SET);
if ((0 != rodata.size) &&
OpenPOWER on IntegriCloud