From dd4438b4fe934eef3f631238d45b3681a3abdd4d Mon Sep 17 00:00:00 2001 From: Austin Clements Date: Fri, 2 Sep 2011 14:51:55 -0400 Subject: Nuke data.S, since we do have a custom linker script. --- data.S | 26 -------------------------- 1 file changed, 26 deletions(-) delete mode 100644 data.S (limited to 'data.S') diff --git a/data.S b/data.S deleted file mode 100644 index 8b651b4..0000000 --- a/data.S +++ /dev/null @@ -1,26 +0,0 @@ -// The kernel layout is: -// -// text -// rodata -// data -// bss -// -// Conventionally, Unix linkers provide pseudo-symbols -// etext, edata, and end, at the end of the text, data, and bss. -// For the kernel mapping, we need the address at the beginning -// of the data section, but that's not one of the conventional -// symbols, because the convention started before there was a -// read-only rodata section between text and data. -// -// To get the address of the data section, we define a symbol -// named data and make sure this is the first object passed to -// the linker, so that it will be the first symbol in the data section. -// -// Alternative approaches would be to parse our own ELF header -// or to write a linker script, but this is simplest. - -.data -.align 4096 -.globl data -data: - .word 1 -- cgit v1.2.3