summaryrefslogtreecommitdiffstats
path: root/create_debug.sh
blob: ada21f94e9ca3ad55fdb4bf594cfa1ccb8702d7d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
#! /bin/sh

objdump -h memtest_shared
objdump -h boot/header.o
objdump -h boot/setup.o

BSS_SIZE=$(size -B -d memtest_shared | grep memtest_shared | tr -s ' ' | cut -d' ' -f3)
echo $BSS_SIZE
echo "bss_size: $BSS_SIZE"



ld --defsym=_bss_size=$BSS_SIZE -T memtest_efi_modified.lds boot/header.o boot/setup.o -b memtest_shared -o memtest_modified.efi