Compare commits
No commits in common. "size" and "master" have entirely different histories.
4
Makefile
4
Makefile
|
|
@ -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
10
link.ld
|
|
@ -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) }
|
|
||||||
}
|
|
||||||
Loading…
Reference in New Issue
Block a user