diff options
Diffstat (limited to 'apps')
-rw-r--r-- | apps/link.ld | 15 | ||||
-rw-r--r-- | apps/wm.c | 3 |
2 files changed, 9 insertions, 9 deletions
diff --git a/apps/link.ld b/apps/link.ld index 2b9599a..781e38d 100644 --- a/apps/link.ld +++ b/apps/link.ld @@ -8,27 +8,24 @@ SECTIONS . = 0x00000000; .text : { + code = .; *(.text) - } - - .rodata : { *(.rodata) + . = ALIGN(4096); } - . = ALIGN(4096); - .data : { + data = .; *(.data) + . = ALIGN(4096); } - . = ALIGN(4096); - .bss : { + bss = .; *(.bss) + . = ALIGN(4096); } - . = ALIGN(4096); - _GLOBAL_OFFSET_TABLE_ = .; . = ALIGN(4096); @@ -251,6 +251,9 @@ static void handle_event_keyboard(struct event_keyboard *event) else if (event->scancode == KEY_LEFTCTRL || event->scancode == KEY_RIGHTCTRL) special_keys.ctrl ^= 1; + if (event->scancode > KEYMAP_LENGTH) + return; + char ch; if (special_keys.shift) ch = keymap->shift_map[event->scancode]; |