summaryrefslogtreecommitdiffstats
path: root/src/build/linker/linker.C
diff options
context:
space:
mode:
authorCorey Swenson <cswenson@us.ibm.com>2019-10-27 21:28:37 -0500
committerWilliam G Hoffa <wghoffa@us.ibm.com>2019-10-29 06:50:34 -0500
commitf41f71705385741c2b3e63412796e741ef44c55a (patch)
treef211431868bd13dc21ccc8580a5dfa7030625d74 /src/build/linker/linker.C
parenta7739158a42e3d4caf325f8f23c79641ec6707d2 (diff)
downloadtalos-hostboot-f41f71705385741c2b3e63412796e741ef44c55a.tar.gz
talos-hostboot-f41f71705385741c2b3e63412796e741ef44c55a.zip
Fix linker Object init
Builds on Ubuntu are failing with hbibl.bin size error. Traced back to linker struct Object constructor missing the init of sfpr section. Change-Id: I9ad7ab90f02d403dc0237831736cc615e73738e6 Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/86066 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Reviewed-by: Nicholas E Bofferding <bofferdn@us.ibm.com> Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com> Reviewed-by: Zachary Clark <zach@ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: William G Hoffa <wghoffa@us.ibm.com>
Diffstat (limited to 'src/build/linker/linker.C')
-rw-r--r--src/build/linker/linker.C6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/build/linker/linker.C b/src/build/linker/linker.C
index ba498d8a9..6a8854d83 100644
--- a/src/build/linker/linker.C
+++ b/src/build/linker/linker.C
@@ -112,6 +112,8 @@ struct Section
size_t size;
bfd_byte* data;
+
+ Section() : name(""), vma_offset(0), size(0), data(NULL) {}
};
/**
@@ -204,7 +206,7 @@ struct Object
/**
* CTOR default
*/
- Object() : image(NULL), text(), rodata(), data(), offset(0),
+ Object() : image(NULL), text(), rodata(), data(), sfpr(), offset(0),
base_addr(0), iv_output(NULL), tls_module(-1) {}
@@ -214,7 +216,7 @@ struct Object
* @param[in] i_out : output FILE handle
*/
Object(unsigned long i_baseAddr, FILE* i_out)
- : image(NULL), text(), rodata(), data(), offset(0),
+ : image(NULL), text(), rodata(), data(), sfpr(), offset(0),
base_addr(i_baseAddr), iv_output(i_out), tls_module(-1) {}
};
OpenPOWER on IntegriCloud