Initial revision
This commit is contained in:
Executable
+28
@@ -0,0 +1,28 @@
|
||||
# Makefile for lib/end.
|
||||
|
||||
CC1 = $(CC) -c
|
||||
|
||||
LIBRARY = ../end.a
|
||||
all: $(LIBRARY)
|
||||
|
||||
OBJECTS = \
|
||||
$(LIBRARY)(edata.o) \
|
||||
$(LIBRARY)(em_end.o) \
|
||||
$(LIBRARY)(end.o) \
|
||||
$(LIBRARY)(etext.o) \
|
||||
|
||||
$(LIBRARY): $(OBJECTS)
|
||||
aal cr $@ *.o
|
||||
rm *.o
|
||||
|
||||
$(LIBRARY)(edata.o): edata.s
|
||||
$(CC1) edata.s
|
||||
|
||||
$(LIBRARY)(em_end.o): em_end.s
|
||||
$(CC1) em_end.s
|
||||
|
||||
$(LIBRARY)(end.o): end.s
|
||||
$(CC1) end.s
|
||||
|
||||
$(LIBRARY)(etext.o): etext.s
|
||||
$(CC1) etext.s
|
||||
Executable
+7
@@ -0,0 +1,7 @@
|
||||
#
|
||||
.sect .text
|
||||
.sect .rom
|
||||
.sect .data
|
||||
.align _EM_WSIZE
|
||||
.define _edata
|
||||
_edata:
|
||||
Executable
+21
@@ -0,0 +1,21 @@
|
||||
#
|
||||
.sect .text
|
||||
.align _EM_WSIZE
|
||||
.define __etext, endtext
|
||||
__etext:
|
||||
endtext:
|
||||
.sect .rom
|
||||
.align _EM_WSIZE
|
||||
.define endrom
|
||||
endrom:
|
||||
.sect .data
|
||||
.align _EM_WSIZE
|
||||
.define __edata, enddata
|
||||
__edata:
|
||||
enddata:
|
||||
.sect .bss
|
||||
.align _EM_WSIZE
|
||||
.sect .end ! only for declaration of _end, __end or endbss.
|
||||
.define __end, endbss
|
||||
__end:
|
||||
endbss:
|
||||
Executable
+7
@@ -0,0 +1,7 @@
|
||||
.sect .text
|
||||
.sect .rom
|
||||
.sect .data
|
||||
.sect .bss
|
||||
.sect .end ! only for declaration of _end, __end or endbss.
|
||||
.define _end
|
||||
_end:
|
||||
Executable
+5
@@ -0,0 +1,5 @@
|
||||
#
|
||||
.sect .text
|
||||
.align _EM_WSIZE
|
||||
.define _etext
|
||||
_etext:
|
||||
Reference in New Issue
Block a user