summaryrefslogtreecommitdiffstats
path: root/src/build
diff options
context:
space:
mode:
Diffstat (limited to 'src/build')
-rw-r--r--src/build/linker/linker.C16
-rw-r--r--src/build/mkrules/cflags.env.mk2
2 files changed, 1 insertions, 17 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) &&
diff --git a/src/build/mkrules/cflags.env.mk b/src/build/mkrules/cflags.env.mk
index e1d36c190..04ff6fedd 100644
--- a/src/build/mkrules/cflags.env.mk
+++ b/src/build/mkrules/cflags.env.mk
@@ -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
OpenPOWER on IntegriCloud