Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ENTRY(_start)
- SECTIONS
- {
- .init 0x80000 :
- {
- PROVIDE (__start = .);
- *(.init)
- }
- .text ALIGN(4096) :
- {
- *(.text.unlikely .text.*_unlikely)
- *(.text.exit .text.exit.*)
- *(.text.startup text.startup.*)
- *(.text.hot .text.hot.*)
- *(.text .stub .text.* .gnu.linkonce.t.*)
- *(.gnu.warning)
- }
- . += CONSTANT(COMMONPAGESIZE);
- .rodata ALIGN(4096) :
- {
- *(.rodata .rodata.* .gnu.linkonce.r*)
- }
- .data ALIGN(4096) :
- {
- PROVIDE (__startup_begin = .);
- *(.startup)
- PROVIDE (__startup_end = .);
- PROVIDE (__shutdown_begin = .);
- *(.shutdown)
- PROVIDE (__shutdown_end = .);
- *(.data .data.* .gnu.linkonce.d)
- SORT(CONSTRUCTORS)
- PROVIDE(__ctors_begin = .);
- *(.ctors)
- PROVIDE(__ctors_end = .);
- }
- .bss ALIGN(4096) :
- {
- bss = .;
- __bss_start = .;
- *(COMMON)
- *(.bss .bss.* .gnu.linkonce.b.*)
- }
- __bss_end = .;
- __bss_size = __bss_end - __bss_start;
- __kernel_end = .;
- }
- ----------------------------
- $ readelf -l build-rpi4/apollo/kernel.mod -l
- Elf file type is EXEC (Executable file)
- Entry point 0x80000
- There is 1 program header, starting at offset 64
- Program Headers:
- Type Offset VirtAddr PhysAddr
- FileSiz MemSiz Flags Align
- LOAD 0x0000000000000080 0x0000000000080000 0x0000000000080000
- 0x00000000000062b0 0x0000000000008818 RWE 0x10
- Section to Segment mapping:
- Segment Sections...
- 00 .init .text .rodata .data drivers modules .bss
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement