embench / embench-iot

The main Embench repository
https://www.embench.org/
GNU General Public License v3.0
258 stars 104 forks source link

OpenRISC port Issue #3: Binary header issue with -nostdlib/-nostartfiles flags #197

Closed madhu2000u closed 6 months ago

madhu2000u commented 6 months ago

Part of OpenRISC port.

Issue:

When running OpenRISC toolchain with -nostdlibs and -nostartfiles as per line 1348, the benchmark_size.py reports "Binary does not have program header" for all binaries. I understand stdlibs and start files are not added to remove libs and C runtime from binary, but then shouldn't it still run for the bare metal binary generated as well? (As mentioned before, or1k-elf is a bare metal toolchain based on newlib).

Current soln:

I am excluding these flags for OpenRISC toolchain compilation.

I wanted your guidance on the working of this part of the tool.

madhu2000u commented 6 months ago

Embench moving to 2.0. Issue still exists. Could be issue with toolchain as well. Opening if issue persists as part of Embench 2.0