diff options
Diffstat (limited to 'na')
| -rw-r--r-- | na/include/lume/lumeos.lds.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/na/include/lume/lumeos.lds.h b/na/include/lume/lumeos.lds.h index b4a8f42..76e1e75 100644 --- a/na/include/lume/lumeos.lds.h +++ b/na/include/lume/lumeos.lds.h @@ -29,6 +29,7 @@ _srodata = .; \ *(.rodata .rodata.*) \ INIT_ARRAY \ + DRIVER_ARRAY \ _erodata = .; \ } @@ -39,6 +40,13 @@ KEEP(*(.init_array .init_array.*)) \ __init_array_end = .; +/* ===== Driver Registration Table ===== */ +#define DRIVER_ARRAY \ + . = ALIGN(8); \ + PROVIDE(__drivers_start = .); \ + KEEP(*(.drivers)) \ + PROVIDE(__drivers_end = .); + /* ===== Initialized Read-Write Data ===== */ #define DATA_SECTION \ .data : AT(ADDR(.data) - PAGE_OFFSET) { \ |
