diff --git a/mykernel/link.ld b/mykernel/link.ld index ba5947c..34adcff 100644 --- a/mykernel/link.ld +++ b/mykernel/link.ld @@ -45,4 +45,6 @@ SECTIONS *(.bss .bss.*) *(COMMON) } + + /DISCARD/ : { *(.eh_frame) *(.comment) } } diff --git a/mykernel/mykernel.aarch64.elf b/mykernel/mykernel.aarch64.elf index f7896b6..ad227f3 100755 Binary files a/mykernel/mykernel.aarch64.elf and b/mykernel/mykernel.aarch64.elf differ diff --git a/mykernel/mykernel.aarch64.txt b/mykernel/mykernel.aarch64.txt index 4aded00..7c7909d 100644 --- a/mykernel/mykernel.aarch64.txt +++ b/mykernel/mykernel.aarch64.txt @@ -10,14 +10,14 @@ ELF Header: Version: 0x1 Entry point address: 0xffffffffffe02000 Start of program headers: 64 (bytes into file) - Start of section headers: 3792 (bytes into file) + Start of section headers: 3736 (bytes into file) Flags: 0x0 Size of this header: 64 (bytes) Size of program headers: 56 (bytes) Number of program headers: 1 Size of section headers: 64 (bytes) - Number of section headers: 9 - Section header string table index: 8 + Number of section headers: 8 + Section header string table index: 7 Program Headers: Type Offset VirtAddr PhysAddr @@ -29,15 +29,14 @@ Program Headers: Segment Sections... 00 .text .got .got.plt -Symbol table '.symtab' contains 10 entries: +Symbol table '.symtab' contains 9 entries: Num: Value Size Type Bind Vis Ndx Name 0: 0000000000000000 0 NOTYPE LOCAL DEFAULT UND 1: ffffffffffe02000 0 SECTION LOCAL DEFAULT 1 2: ffffffffffe02cb8 0 SECTION LOCAL DEFAULT 2 3: ffffffffffe02cd8 0 SECTION LOCAL DEFAULT 3 4: ffffffffffe02cf0 0 SECTION LOCAL DEFAULT 4 - 5: 0000000000000000 0 SECTION LOCAL DEFAULT 5 - 6: ffffffffffe01000 0 NOTYPE GLOBAL DEFAULT 1 environment - 7: fffffffffc000000 0 NOTYPE GLOBAL DEFAULT ABS fb - 8: ffffffffffe00000 0 NOTYPE GLOBAL DEFAULT 1 bootboot - 9: fffffffff8000000 0 NOTYPE GLOBAL DEFAULT ABS mmio + 5: ffffffffffe01000 0 NOTYPE GLOBAL DEFAULT 1 environment + 6: fffffffffc000000 0 NOTYPE GLOBAL DEFAULT ABS fb + 7: ffffffffffe00000 0 NOTYPE GLOBAL DEFAULT 1 bootboot + 8: fffffffff8000000 0 NOTYPE GLOBAL DEFAULT ABS mmio diff --git a/mykernel/mykernel.x86_64.elf b/mykernel/mykernel.x86_64.elf index 9b16b4e..4758c87 100755 Binary files a/mykernel/mykernel.x86_64.elf and b/mykernel/mykernel.x86_64.elf differ diff --git a/mykernel/mykernel.x86_64.txt b/mykernel/mykernel.x86_64.txt index f69bdfe..e88a5f5 100644 --- a/mykernel/mykernel.x86_64.txt +++ b/mykernel/mykernel.x86_64.txt @@ -10,37 +10,32 @@ ELF Header: Version: 0x1 Entry point address: 0xffffffffffe02000 Start of program headers: 64 (bytes into file) - Start of section headers: 3576 (bytes into file) + Start of section headers: 3344 (bytes into file) Flags: 0x0 Size of this header: 64 (bytes) Size of program headers: 56 (bytes) - Number of program headers: 2 + Number of program headers: 1 Size of section headers: 64 (bytes) - Number of section headers: 9 - Section header string table index: 8 + Number of section headers: 7 + Section header string table index: 6 Program Headers: Type Offset VirtAddr PhysAddr FileSiz MemSiz Flags Align - LOAD 0x00000000000000b0 0x0000000000000000 0x0000000000000000 - 0x0000000000000054 0x0000000000000054 R 0x8 - LOAD 0x0000000000000108 0xffffffffffe02000 0xffffffffffe02000 + LOAD 0x0000000000000078 0xffffffffffe02000 0xffffffffffe02000 0x0000000000000b88 0x0000000000000b90 RWE 0x8 Section to Segment mapping: Segment Sections... - 00 .eh_frame - 01 .text .got.plt .bss + 00 .text .got.plt .bss -Symbol table '.symtab' contains 10 entries: +Symbol table '.symtab' contains 8 entries: Num: Value Size Type Bind Vis Ndx Name 0: 0000000000000000 0 NOTYPE LOCAL DEFAULT UND - 1: 0000000000000000 0 SECTION LOCAL DEFAULT 1 - 2: ffffffffffe02000 0 SECTION LOCAL DEFAULT 2 - 3: ffffffffffe02b70 0 SECTION LOCAL DEFAULT 3 - 4: ffffffffffe02b88 0 SECTION LOCAL DEFAULT 4 - 5: 0000000000000000 0 SECTION LOCAL DEFAULT 5 - 6: ffffffffffe01000 0 NOTYPE GLOBAL DEFAULT 2 environment - 7: fffffffffc000000 0 NOTYPE GLOBAL DEFAULT ABS fb - 8: ffffffffffe00000 0 NOTYPE GLOBAL DEFAULT 2 bootboot - 9: fffffffff8000000 0 NOTYPE GLOBAL DEFAULT ABS mmio + 1: ffffffffffe02000 0 SECTION LOCAL DEFAULT 1 + 2: ffffffffffe02b70 0 SECTION LOCAL DEFAULT 2 + 3: ffffffffffe02b88 0 SECTION LOCAL DEFAULT 3 + 4: ffffffffffe01000 0 NOTYPE GLOBAL DEFAULT 1 environment + 5: fffffffffc000000 0 NOTYPE GLOBAL DEFAULT ABS fb + 6: ffffffffffe00000 0 NOTYPE GLOBAL DEFAULT 1 bootboot + 7: fffffffff8000000 0 NOTYPE GLOBAL DEFAULT ABS mmio