Skip to content

Commit

Permalink
Revert "Compile Hostboot with -Os"
Browse files Browse the repository at this point in the history
This reverts commit cd1e5c9.
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>
  • Loading branch information
dcrowell77 committed Aug 8, 2019
1 parent a51a388 commit 4a6e203
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 28 deletions.
16 changes: 0 additions & 16 deletions src/build/linker/linker.C
Expand Up @@ -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
Expand Down Expand Up @@ -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))
{
Expand Down Expand Up @@ -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) &&
Expand Down
2 changes: 1 addition & 1 deletion src/build/mkrules/cflags.env.mk
Expand Up @@ -28,7 +28,7 @@
# Description:
# Configuration of the compiler, linker, etc. flags.

OPT_LEVEL ?= -Os
OPT_LEVEL ?= -O3

ifdef MODULE
COMMONFLAGS += -fPIC -Bsymbolic -Bsymbolic-functions
Expand Down
3 changes: 1 addition & 2 deletions src/makefile
Expand Up @@ -236,8 +236,7 @@ TESTCASE_MODULES += testscan
TESTCASE_MODULES += testsecureboot
TESTCASE_MODULES += testfsiscom
TESTCASE_MODULES += testlpc
#TODO: RTC 213102 to properly add & execute HTMGT test
#TESTCASE_MODULES += $(if $(CONFIG_HTMGT),testhtmgt)
TESTCASE_MODULES += $(if $(CONFIG_HTMGT),testhtmgt)
TESTCASE_MODULES += testinitservice
TESTCASE_MODULES += testfsi
TESTCASE_MODULES += testibscom
Expand Down
12 changes: 6 additions & 6 deletions src/usr/errl/runtime/test/test_runtimeDeconfig.H
Expand Up @@ -51,8 +51,8 @@ class deconfigureTargetAtRuntimeTest : public CxxTest::TestSuite
// pass in a null target pointer
TARGETING::Target * l_target = nullptr;

errlHndl_t l_errl = nullptr;
l_errl = HWAS::theDeconfigGard().deconfigureTargetAtRuntime(
errlHndl_t l_errl =
HWAS::theDeconfigGard().deconfigureTargetAtRuntime(
l_target,
HWAS::DeconfigGard::FULLY_AT_RUNTIME,
l_errl);
Expand Down Expand Up @@ -118,8 +118,8 @@ class deconfigureTargetAtRuntimeTest : public CxxTest::TestSuite

l_target = l_cores.at(0);

errlHndl_t l_errl = nullptr;
l_errl = HWAS::theDeconfigGard().deconfigureTargetAtRuntime(
errlHndl_t l_errl =
HWAS::theDeconfigGard().deconfigureTargetAtRuntime(
l_target,
HWAS::DeconfigGard::SPEC_DECONFIG,
l_errl);
Expand Down Expand Up @@ -179,8 +179,8 @@ class deconfigureTargetAtRuntimeTest : public CxxTest::TestSuite

TARGETING::Target * l_target = l_proc.at(0);

errlHndl_t l_errl = nullptr;
l_errl = HWAS::theDeconfigGard().deconfigureTargetAtRuntime(
errlHndl_t l_errl =
HWAS::theDeconfigGard().deconfigureTargetAtRuntime(
l_target,
HWAS::DeconfigGard::FULLY_AT_RUNTIME,
l_errl);
Expand Down
2 changes: 1 addition & 1 deletion src/usr/fapi2/test/fapi2GetChildrenTest.H
Expand Up @@ -706,7 +706,7 @@ void test_fapi2GetChildren()
TARGET_STATE_PRESENT).size(); } },
};

pervasiveChildTestRec* ptr = nullptr;
pervasiveChildTestRec* ptr;
int numPervTests = 0;
TARGETING::ATTR_MODEL_type l_model = l_proc->getAttr<TARGETING::ATTR_MODEL>();
if (l_model == TARGETING::MODEL_NIMBUS)
Expand Down
2 changes: 1 addition & 1 deletion src/usr/isteps/istep16/call_mss_scrub.C
Expand Up @@ -81,7 +81,7 @@ void* call_mss_scrub (void *io_pArgs)

// Determine which target type runs the maintenance commands.
TARGETING::MODEL masterProcModel = masterProc->getAttr<ATTR_MODEL>();
TARGETING::TYPE maintTrgtType = TYPE_MBA;
TARGETING::TYPE maintTrgtType;
switch ( masterProcModel )
{
case MODEL_CUMULUS: maintTrgtType = TYPE_MBA; break;
Expand Down
2 changes: 1 addition & 1 deletion src/usr/isteps/tod/runtime/rt_todintf.C
Expand Up @@ -31,7 +31,7 @@
#include <runtime/interface.h> // g_hostInterfaces
#include <util/runtime/rt_fwreq_helper.H> // firmware_request_helper
#include <tod_init_reasoncodes.H> // TOD_RT_TOPOLOGY_RESET_BACKUP, etc
#include <errl/errlentry.H>
#include <errlmanager_common.C> // errlCommit


using namespace ERRORLOG;
Expand Down

0 comments on commit 4a6e203

Please sign in to comment.