Compare commits

..

No commits in common. "size" and "master" have entirely different histories.
size ... master

2 changed files with 2 additions and 12 deletions

View File

@ -1,5 +1,5 @@
server: link.ld main.o func.o server: main.o func.o
gcc -T link.ld main.o func.o -o server -nostdlib -static gcc main.o func.o -o server -nostdlib -static
main.o: main.S main.o: main.S
gcc -c main.S gcc -c main.S

10
link.ld
View File

@ -1,10 +0,0 @@
ENTRY(_start)
SECTIONS {
. = 4M + SIZEOF_HEADERS;
.text ALIGN(16) : { *(.text) }
.rodata ALIGN(16) : { *(.rodata) }
. += 4K; /* put .data in the next page in memory while not actually moving it in the file */
.data ALIGN(16) : { *(.data) }
.bss ALIGN(4K) : { *(COMMON) *(.bss) }
}