dhrystone baremetal!!!

Factor out --optimization-level and --static to all builds

More conventionally set argv[0] to be the basename of the image.

Fix https://github.com/cirosantilli/linux-kernel-module-cheat/issues/90
This commit is contained in:
Ciro Santilli 六四事件 法轮功
2020-04-02 03:00:02 +00:00
parent b7887ac06b
commit 66473201eb
9 changed files with 136 additions and 100 deletions

View File

@@ -9,8 +9,13 @@ SECTIONS
*(.data)
*(COMMON)
}
/* gem5 uses the bss as a measure of the kernel size. */
/* gem5 uses the bss as a measure of the kernel size.
* b7887ac06bd7fc8011fbf595b1d50ea67960d28c required __bss_start__
* when doing ./build-dhrystone --arch aarch64 --mode baremetal
*/
__bss_start__ = .;
.bss : { *(.bss) }
__bss_end__ = .;
/* Fix the addresses of everything that comes after, no matter
* the exact size of the code present in .text. This allows us to
* place CLI arguments in memory at a known location! */