From 4c87a1868835d05f1cadae7b8ad6a7c95d9d9c0e Mon Sep 17 00:00:00 2001 From: Ross Philipson Date: Tue, 14 Mar 2017 15:40:33 -0400 Subject: Initial commit of EFI TBOOT work from internal project. Signed-off-by: Ross Philipson --- tboot/genlds.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100755 tboot/genlds.sh (limited to 'tboot/genlds.sh') diff --git a/tboot/genlds.sh b/tboot/genlds.sh new file mode 100755 index 0000000..3d2806f --- /dev/null +++ b/tboot/genlds.sh @@ -0,0 +1,19 @@ +#! /bin/sh + +RO_DATA_SECTION=".rdata" + +if [ "$1" == "gcc" ]; then + RO_DATA_SECTION=".rodata" +fi + +cat << EOF >> tboot.lds +SECTIONS +{ + .text : { + . = ALIGN(4096); + *(.text) + *($RO_DATA_SECTION) + *(SORT($RO_DATA_SECTION*)) + } +} +EOF -- cgit v1.2.3