Skip to content

Commit bf1aa0a

Browse files
added map files
1 parent a67db0f commit bf1aa0a

3 files changed

Lines changed: 310 additions & 2 deletions

File tree

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,11 @@ $(OBJ_DIR)/%.o: $(LIB_DIR)/%.asm
4343

4444
$(UEFI_SYS): build ./obj/lib.o ./obj/efi.o
4545
$(ASM) -D STEP_MODE_INIT_VAL=$(FORCE_STEP_MODE) -g -F DWARF -f elf64 -o $(UEFI_OBJ) $(ASM_DIR)/uefi.asm
46-
$(LD) -T $(LD_DIR)/uefi.ld -o $@ $(UEFI_OBJ) $(OBJ_DIR)/lib.o $(OBJ_DIR)/efi.o
46+
$(LD) -T $(LD_DIR)/uefi.ld -Map=./map/efi.map -o $@ $(UEFI_OBJ) $(OBJ_DIR)/lib.o $(OBJ_DIR)/efi.o
4747
$(LD) --oformat=elf64-x86-64 -T $(LD_DIR)/uefi.ld -o $(UEFI_ELF) $(UEFI_OBJ) $(OBJ_DIR)/lib.o $(OBJ_DIR)/efi.o
4848

4949
$(TSL_SYS): build $(TSL_OBJS_LO) $(TSL_OBJS_HI) ./obj/bios16.o ./obj/bios32.o
50-
$(LD) -T $(LD_DIR)/tsl.ld -o $@ $(TSL_OBJS_LO) $(TSL_OBJS_HI) $(OBJ_DIR)/lib.o $(OBJ_DIR)/bios16.o $(OBJ_DIR)/bios32.o $(OBJ_DIR)/mbr_symbols.o
50+
$(LD) -T $(LD_DIR)/tsl.ld -Map=./map/tsl.map -o $@ $(TSL_OBJS_LO) $(TSL_OBJS_HI) $(OBJ_DIR)/lib.o $(OBJ_DIR)/bios16.o $(OBJ_DIR)/bios32.o $(OBJ_DIR)/mbr_symbols.o
5151
$(LD) --oformat=elf64-x86-64 -T $(LD_DIR)/tsl.ld -o $(TSL_ELF_LO) $(TSL_OBJS_LO) $(TSL_OBJS_HI) $(OBJ_DIR)/lib.o $(OBJ_DIR)/bios16.o $(OBJ_DIR)/bios32.o $(OBJ_DIR)/mbr_symbols.o
5252
$(LD) --oformat=elf64-x86-64 -T $(LD_DIR)/tsl_hi.ld -o $(TSL_ELF_HI) $(TSL_OBJS_HI) $(OBJ_DIR)/lib.o
5353

map/efi.map

Lines changed: 121 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,121 @@
1+
2+
Memory Configuration
3+
4+
Name Origin Length Attributes
5+
*default* 0x0000000000000000 0xffffffffffffffff
6+
7+
Linker script and memory map
8+
9+
0x0000000000400000 . = 0x400000
10+
0x0000000000400000 headerStart = .
11+
12+
.header 0x0000000000400000 0x158
13+
0x0000000000400000 aux = .
14+
0x0000000000400000 header = .
15+
*(.header)
16+
.header 0x0000000000400000 0x158 ./obj/uefi.o
17+
0x0000000000000158 headerSize = (. - headerStart)
18+
0x0000000000400200 . = ALIGN (0x200)
19+
0x0000000000400200 codeStart = .
20+
0x0000000000000200 codeOffset = (codeStart - headerStart)
21+
22+
.text 0x0000000000400200 0xdf0
23+
0x0000000000400200 text = .
24+
*(.text)
25+
.text 0x0000000000400200 0x845 ./obj/uefi.o
26+
*fill* 0x0000000000400a45 0xb
27+
.text 0x0000000000400a50 0x2eb ./obj/lib.o
28+
0x0000000000400a50 num2hexStr
29+
0x0000000000400a9c num2str
30+
0x0000000000400ae5 print
31+
0x0000000000400af1 print_color
32+
0x0000000000400cce memsetFramebuffer
33+
0x0000000000400ce5 keyboard_command
34+
0x0000000000400cfb keyboard_get_key
35+
0x0000000000400d21 emptyKbBuffer
36+
*fill* 0x0000000000400d3b 0x5
37+
.text 0x0000000000400d40 0x2b0 ./obj/efi.o
38+
0x0000000000400d40 ventana_modo_step
39+
0x0000000000400ddc efi_print
40+
0x0000000000400f44 efi_prompt_step_mode
41+
0x0000000000000df0 codeSize = (. - codeStart)
42+
0x0000000000401000 . = ALIGN (0x1000)
43+
0x0000000000401000 dataStart = .
44+
0x0000000000001000 dataOffset = (dataStart - headerStart)
45+
46+
.data 0x0000000000401000 0xff000
47+
0x0000000000401000 data = .
48+
*(.data)
49+
.data 0x0000000000401000 0x8d2 ./obj/uefi.o
50+
0x0000000000401038 CONOUT_INTERFACE
51+
0x0000000000401048 CONIN_INTERFACE
52+
0x0000000000401060 FB
53+
0x0000000000401068 FB_SIZE
54+
0x0000000000401080 PPSL
55+
0x00000000004010e0 STEP_MODE_FLAG
56+
0x0000000000401119 EFI_INPUT_KEY
57+
*fill* 0x00000000004018d2 0x2
58+
.data 0x00000000004018d4 0x898 ./obj/lib.o
59+
0x00000000004018e4 print_cursor
60+
.data 0x000000000040216c 0x144 ./obj/efi.o
61+
0x0000000000404000 . = ALIGN (0x4000)
62+
*fill* 0x00000000004022b0 0x1d50
63+
0x0000000000404000 payload = .
64+
*(.payload)
65+
.payload 0x0000000000404000 0xfc000 ./obj/uefi.o
66+
0x00000000000ff000 dataSize = (. - dataStart)
67+
0x0000000000500000 . = ALIGN (0x1000)
68+
69+
.bss 0x0000000000500000 0x0
70+
0x0000000000500000 bss = .
71+
*(.bss)
72+
*(EXCLUDE_FILE(*.o) COMMON)
73+
0x0000000000100000 fileSize = (. - headerStart)
74+
LOAD ./obj/uefi.o
75+
LOAD ./obj/lib.o
76+
LOAD ./obj/efi.o
77+
OUTPUT(build/uefi.sys binary)
78+
79+
.debug_aranges 0x0000000000000000 0x90
80+
.debug_aranges
81+
0x0000000000000000 0x30 ./obj/uefi.o
82+
.debug_aranges
83+
0x0000000000000030 0x30 ./obj/lib.o
84+
.debug_aranges
85+
0x0000000000000060 0x30 ./obj/efi.o
86+
87+
.debug_pubnames
88+
0x0000000000000000 0x36
89+
.debug_pubnames
90+
0x0000000000000000 0x12 ./obj/uefi.o
91+
.debug_pubnames
92+
0x0000000000000012 0x12 ./obj/lib.o
93+
.debug_pubnames
94+
0x0000000000000024 0x12 ./obj/efi.o
95+
96+
.debug_info 0x0000000000000000 0xf2
97+
.debug_info 0x0000000000000000 0x50 ./obj/uefi.o
98+
.debug_info 0x0000000000000050 0x51 ./obj/lib.o
99+
.debug_info 0x00000000000000a1 0x51 ./obj/efi.o
100+
101+
.debug_abbrev 0x0000000000000000 0x51
102+
.debug_abbrev 0x0000000000000000 0x1b ./obj/uefi.o
103+
.debug_abbrev 0x000000000000001b 0x1b ./obj/lib.o
104+
.debug_abbrev 0x0000000000000036 0x1b ./obj/efi.o
105+
106+
.debug_line 0x0000000000000000 0x435
107+
.debug_line 0x0000000000000000 0x1f5 ./obj/uefi.o
108+
.debug_line 0x00000000000001f5 0x12f ./obj/lib.o
109+
.debug_line 0x0000000000000324 0x111 ./obj/efi.o
110+
111+
.debug_frame 0x0000000000000000 0x14
112+
.debug_frame 0x0000000000000000 0x4 ./obj/uefi.o
113+
*fill* 0x0000000000000004 0x4
114+
.debug_frame 0x0000000000000008 0x4 ./obj/lib.o
115+
*fill* 0x000000000000000c 0x4
116+
.debug_frame 0x0000000000000010 0x4 ./obj/efi.o
117+
118+
.debug_loc 0x0000000000000000 0x30
119+
.debug_loc 0x0000000000000000 0x10 ./obj/uefi.o
120+
.debug_loc 0x0000000000000010 0x10 ./obj/lib.o
121+
.debug_loc 0x0000000000000020 0x10 ./obj/efi.o

map/tsl.map

Lines changed: 187 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,187 @@
1+
2+
Memory Configuration
3+
4+
Name Origin Length Attributes
5+
*default* 0x0000000000000000 0xffffffffffffffff
6+
7+
Linker script and memory map
8+
9+
0x0000000000007e00 code_start16_reloc = 0x7e00
10+
0x0000000000000000 code_start16_load = 0x0
11+
12+
.text_start16 0x0000000000007e00 0xa1 load address 0x0000000000000000
13+
./obj/start16.o(.text)
14+
.text 0x0000000000007e00 0xa1 ./obj/start16.o
15+
0x0000000000008000 . = ALIGN (0x200)
16+
0x0000000000008000 code_start16_end_reloc_aligned = .
17+
0x0000000000000200 code_start16_size_aligned = (code_start16_end_reloc_aligned - code_start16_reloc)
18+
0x0000000000008000 code_lo_start_reloc = .
19+
0x0000000000000200 code_lo_start_load = (code_start16_load + code_start16_size_aligned)
20+
21+
.text_low 0x0000000000008000 0x378 load address 0x0000000000000200
22+
./obj/tsl_start.o(.text)
23+
.text 0x0000000000008000 0x10 ./obj/tsl_start.o
24+
./obj/bios16.o(.text)
25+
.text 0x0000000000008010 0x122 ./obj/bios16.o
26+
0x0000000000008010 a20_line
27+
0x000000000000805b e820
28+
0x00000000000080ec vesa
29+
./obj/bios32.o(.text)
30+
*fill* 0x0000000000008132 0xe
31+
.text 0x0000000000008140 0xe6 ./obj/bios32.o
32+
0x0000000000008140 load_tsl_hi
33+
0x0000000000008164 vesa2uefi
34+
0x00000000000081b9 config_paging
35+
./obj/tsl_ap.o(.text)
36+
*fill* 0x0000000000008226 0xa
37+
.text 0x0000000000008230 0x148 ./obj/tsl_ap.o
38+
0x0000000000008373 bootmode_branch
39+
0x0000000000008400 . = ALIGN (0x100)
40+
0x0000000000008400 code_lo_end_reloc_aligned = .
41+
0x0000000000000400 code_lo_size_aligned = (code_lo_end_reloc_aligned - code_lo_start_reloc)
42+
0x0000000000008400 data_lo_start_reloc_aligned = .
43+
0x0000000000000600 data_lo_start_load = (code_lo_start_load + code_lo_size_aligned)
44+
45+
.data_low 0x0000000000008400 0x28 load address 0x0000000000000600
46+
./obj/tsl_ap.o(.data)
47+
.data 0x0000000000008400 0x28 ./obj/tsl_ap.o
48+
0x0000000000008400 GDTR32
49+
0x0000000000008428 data_lo_end_reloc_not_aligned = .
50+
0x0000000000008800 . = ALIGN (0x800)
51+
0x0000000000008800 data_lo_end_reloc_aligned = .
52+
0x0000000000000400 data_lo_size_aligned = (data_lo_end_reloc_aligned - data_lo_start_reloc_aligned)
53+
0x0000000000800000 code_hi_start_reloc = 0x800000
54+
0x0000000000000a00 code_hi_start_load = (data_lo_start_load + data_lo_size_aligned)
55+
56+
.text 0x0000000000800000 0x148b load address 0x0000000000000a00
57+
*(.text)
58+
.text 0x0000000000800000 0x1192 ./obj/tsl.o
59+
0x0000000000800000 start64
60+
0x0000000000800d7c init_cpu
61+
*fill* 0x0000000000801192 0xe
62+
.text 0x00000000008011a0 0x2eb ./obj/lib.o
63+
0x00000000008011a0 num2hexStr
64+
0x00000000008011ec num2str
65+
0x0000000000801235 print
66+
0x0000000000801241 print_color
67+
0x000000000080141e memsetFramebuffer
68+
0x0000000000801435 keyboard_command
69+
0x000000000080144b keyboard_get_key
70+
0x0000000000801471 emptyKbBuffer
71+
0x0000000000802000 . = ALIGN (0x1000)
72+
0x0000000000802000 code_hi_end_reloc_aligned = .
73+
0x0000000000002000 code_hi_size_aligned = (code_hi_end_reloc_aligned - code_hi_start_reloc)
74+
0x0000000000802000 data_hi_start_reloc_aligned = .
75+
0x0000000000002a00 data_hi_start_load = (code_hi_start_load + code_hi_size_aligned)
76+
77+
.data 0x0000000000802000 0xf04 load address 0x0000000000002a00
78+
*(.data)
79+
.data 0x0000000000802000 0x66b ./obj/tsl.o
80+
0x0000000000802000 STEP_MODE_FLAG
81+
0x0000000000802010 tmpGDTR64
82+
0x0000000000802020 GDTR64
83+
0x0000000000802042 IDTR64
84+
*fill* 0x000000000080266b 0x1
85+
.data 0x000000000080266c 0x898 ./obj/lib.o
86+
0x000000000080267c print_cursor
87+
0x0000000000802f04 data_hi_end_reloc = .
88+
0x0000000000002f04 code_data_hi_size = (data_hi_end_reloc - code_hi_start_reloc)
89+
0x0000000000803000 . = ALIGN (0x1000)
90+
91+
.bss 0x0000000000803000 0x0
92+
0x0000000000803000 bss = .
93+
*(.bss)
94+
*(EXCLUDE_FILE(*.o) COMMON)
95+
LOAD ./obj/start16.o
96+
LOAD ./obj/tsl_start.o
97+
LOAD ./obj/tsl_ap.o
98+
LOAD ./obj/tsl.o
99+
LOAD ./obj/lib.o
100+
LOAD ./obj/bios16.o
101+
LOAD ./obj/bios32.o
102+
LOAD ./obj/mbr_symbols.o
103+
OUTPUT(build/tsl.sys binary)
104+
105+
.debug_aranges 0x0000000000000000 0x150
106+
.debug_aranges
107+
0x0000000000000000 0x30 ./obj/start16.o
108+
.debug_aranges
109+
0x0000000000000030 0x30 ./obj/tsl_start.o
110+
.debug_aranges
111+
0x0000000000000060 0x30 ./obj/bios16.o
112+
.debug_aranges
113+
0x0000000000000090 0x30 ./obj/bios32.o
114+
.debug_aranges
115+
0x00000000000000c0 0x30 ./obj/tsl_ap.o
116+
.debug_aranges
117+
0x00000000000000f0 0x30 ./obj/tsl.o
118+
.debug_aranges
119+
0x0000000000000120 0x30 ./obj/lib.o
120+
121+
.debug_pubnames
122+
0x0000000000000000 0x7e
123+
.debug_pubnames
124+
0x0000000000000000 0x12 ./obj/start16.o
125+
.debug_pubnames
126+
0x0000000000000012 0x12 ./obj/tsl_start.o
127+
.debug_pubnames
128+
0x0000000000000024 0x12 ./obj/bios16.o
129+
.debug_pubnames
130+
0x0000000000000036 0x12 ./obj/bios32.o
131+
.debug_pubnames
132+
0x0000000000000048 0x12 ./obj/tsl_ap.o
133+
.debug_pubnames
134+
0x000000000000005a 0x12 ./obj/tsl.o
135+
.debug_pubnames
136+
0x000000000000006c 0x12 ./obj/lib.o
137+
138+
.debug_info 0x0000000000000000 0x241
139+
.debug_info 0x0000000000000000 0x58 ./obj/start16.o
140+
.debug_info 0x0000000000000058 0x53 ./obj/tsl_start.o
141+
.debug_info 0x00000000000000ab 0x54 ./obj/bios16.o
142+
.debug_info 0x00000000000000ff 0x54 ./obj/bios32.o
143+
.debug_info 0x0000000000000153 0x50 ./obj/tsl_ap.o
144+
.debug_info 0x00000000000001a3 0x4d ./obj/tsl.o
145+
.debug_info 0x00000000000001f0 0x51 ./obj/lib.o
146+
147+
.debug_abbrev 0x0000000000000000 0xbd
148+
.debug_abbrev 0x0000000000000000 0x1b ./obj/start16.o
149+
.debug_abbrev 0x000000000000001b 0x1b ./obj/tsl_start.o
150+
.debug_abbrev 0x0000000000000036 0x1b ./obj/bios16.o
151+
.debug_abbrev 0x0000000000000051 0x1b ./obj/bios32.o
152+
.debug_abbrev 0x000000000000006c 0x1b ./obj/tsl_ap.o
153+
.debug_abbrev 0x0000000000000087 0x1b ./obj/tsl.o
154+
.debug_abbrev 0x00000000000000a2 0x1b ./obj/lib.o
155+
156+
.debug_line 0x0000000000000000 0x9e1
157+
.debug_line 0x0000000000000000 0x7d ./obj/start16.o
158+
.debug_line 0x000000000000007d 0x49 ./obj/tsl_start.o
159+
.debug_line 0x00000000000000c6 0xb3 ./obj/bios16.o
160+
.debug_line 0x0000000000000179 0xa2 ./obj/bios32.o
161+
.debug_line 0x000000000000021b 0xad ./obj/tsl_ap.o
162+
.debug_line 0x00000000000002c8 0x5ea ./obj/tsl.o
163+
.debug_line 0x00000000000008b2 0x12f ./obj/lib.o
164+
165+
.debug_frame 0x0000000000000000 0x34
166+
.debug_frame 0x0000000000000000 0x4 ./obj/start16.o
167+
*fill* 0x0000000000000004 0x4
168+
.debug_frame 0x0000000000000008 0x4 ./obj/tsl_start.o
169+
*fill* 0x000000000000000c 0x4
170+
.debug_frame 0x0000000000000010 0x4 ./obj/bios16.o
171+
*fill* 0x0000000000000014 0x4
172+
.debug_frame 0x0000000000000018 0x4 ./obj/bios32.o
173+
*fill* 0x000000000000001c 0x4
174+
.debug_frame 0x0000000000000020 0x4 ./obj/tsl_ap.o
175+
*fill* 0x0000000000000024 0x4
176+
.debug_frame 0x0000000000000028 0x4 ./obj/tsl.o
177+
*fill* 0x000000000000002c 0x4
178+
.debug_frame 0x0000000000000030 0x4 ./obj/lib.o
179+
180+
.debug_loc 0x0000000000000000 0x70
181+
.debug_loc 0x0000000000000000 0x10 ./obj/start16.o
182+
.debug_loc 0x0000000000000010 0x10 ./obj/tsl_start.o
183+
.debug_loc 0x0000000000000020 0x10 ./obj/bios16.o
184+
.debug_loc 0x0000000000000030 0x10 ./obj/bios32.o
185+
.debug_loc 0x0000000000000040 0x10 ./obj/tsl_ap.o
186+
.debug_loc 0x0000000000000050 0x10 ./obj/tsl.o
187+
.debug_loc 0x0000000000000060 0x10 ./obj/lib.o

0 commit comments

Comments
 (0)