xv6-riscv/kernel
Anish Athalye f2ab0eb644 Clean up linker script
This patch does the following:

- Add .text.* to the .text section in the output
- Add an assertion that the trampoline does not overflow a page
- Add the .rodata section
- Make .sdata and .sdata.* (which is for small data) be absorbed into
  the .data section, because we don't need to distinguish between them;
  this prevents .sdata from appearing in the output
- Make the analogous change for .srodata and .sbss
- Make all the data sections 16-byte aligned

This patch also updates the .editorconfig for *.ld files.
2019-10-21 22:27:18 -04:00
..
bio.c
buf.h no buf->qnext 2019-09-24 14:41:51 -04:00
console.c
date.h separate source into kernel/ user/ mkfs/ 2019-06-11 09:57:14 -04:00
defs.h updated alarmtest 2019-10-03 15:02:19 -04:00
elf.h
entry.S
exec.c updated alarmtest 2019-10-03 15:02:19 -04:00
fcntl.h
file.c fix major validation 2019-09-23 20:01:56 -04:00
file.h
fs.c don't leak a file system block if the buf argument to write is invalid 2019-09-20 13:09:26 -04:00
fs.h
kalloc.c Make the end variable be really at the end of bss, and delete + 4096 in freerange() 2019-09-08 15:19:19 -04:00
kernel.ld Clean up linker script 2019-10-21 22:27:18 -04:00
kernelvec.S
log.c
main.c sfence.vma in trampoline as well 2019-09-03 16:29:48 -04:00
memlayout.h
param.h
pipe.c nits 2019-10-16 12:27:08 -04:00
plic.c updated alarmtest 2019-10-03 15:02:19 -04:00
printf.c
proc.c nits 2019-10-16 12:27:08 -04:00
proc.h updated alarmtest 2019-10-03 15:02:19 -04:00
ramdisk.c
riscv.h all of PTE_FLAGS 2019-09-17 06:07:58 -04:00
sleeplock.c
sleeplock.h separate source into kernel/ user/ mkfs/ 2019-06-11 09:57:14 -04:00
spinlock.c updated alarmtest 2019-10-03 15:02:19 -04:00
spinlock.h
start.c separate out timer init code for clarity 2019-07-28 13:16:49 -04:00
stat.h
string.c
swtch.S
syscall.c nits 2019-09-20 06:02:47 -04:00
syscall.h
sysfile.c don't leak memory if exec() arguments are invalid. 2019-09-21 04:54:25 -04:00
sysproc.c Support exit status for exit/wait 2019-09-10 12:30:10 -04:00
trampoline.S set architecture riscv:rv64 -- fix gdb trampoline disassembly, thanks jonathan 2019-09-12 10:48:48 -04:00
trap.c all of PTE_FLAGS 2019-09-17 06:07:58 -04:00
types.h
uart.c
virtio.h
virtio_disk.c
vm.c yet another sbrk() bug fix, and usertest 2019-09-20 12:13:57 -04:00