diff options
author | Ross Philipson <philipsonr@ainfosec.com> | 2017-03-14 15:40:33 -0400 |
---|---|---|
committer | Ross Philipson <philipsonr@ainfosec.com> | 2017-03-14 15:40:33 -0400 |
commit | 4c87a1868835d05f1cadae7b8ad6a7c95d9d9c0e (patch) | |
tree | 4c090cd328f0695193d63832b0ff26c6f2f7207b /tboot/genlds.sh | |
parent | a04a74f8039947b0de64bab7756904ef424ab18c (diff) | |
download | tboot-4c87a1868835d05f1cadae7b8ad6a7c95d9d9c0e.tar.gz tboot-4c87a1868835d05f1cadae7b8ad6a7c95d9d9c0e.tar.bz2 tboot-4c87a1868835d05f1cadae7b8ad6a7c95d9d9c0e.zip |
Initial commit of EFI TBOOT work from internal project.
Signed-off-by: Ross Philipson <philipsonr@ainfosec.com>
Diffstat (limited to 'tboot/genlds.sh')
-rwxr-xr-x | tboot/genlds.sh | 19 |
1 files changed, 19 insertions, 0 deletions
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 |