mm/include
Anghelo Carvajal a04f1b8e05
Change tooling for better elf correctness (#1632)
* Add addresses for makerom and boot segments

* Mark entrypoint as the entry of the elf

* Add extra labels to macro.inc

* Use dlabel, jlabel and endlabel in disassembly

* Make jlabel global

* git subrepo pull tools/asm-processor

subrepo:
  subdir:   "tools/asm-processor"
  merged:   "92b9ec72f"
upstream:
  origin:   "git@github.com:simonlindholm/asm-processor.git"
  branch:   "main"
  commit:   "92b9ec72f"
git-subrepo:
  version:  "0.4.3"
  origin:   "https://github.com/ingydotnet/git-subrepo.git"
  commit:   "2f68596"

* Use `dlabel`s for non-functions in .text

* Add linker asserts

* Move framebuffer_lo to before the makerom segment to avoid `dot moved backwards` warnings

* fix

* Improve assert message

* fix

* Third fix

* Fix four

* Move undefined_syms to linker_script folder

* Make second linker script file to avoid abusing undefined_syms

* Update Makefile

Co-authored-by: Derek Hensley <hensley.derek58@gmail.com>

* Rename to extra.ld

* Use entrypoint symbol on ROM header

---------

Co-authored-by: Derek Hensley <hensley.derek58@gmail.com>
2024-05-17 06:41:23 -07:00
..
PR General Cleanup 3 (#1543) 2024-01-29 10:51:59 -03:00
audio Introduce More Audio Headers (#1515) 2024-02-08 14:36:11 -03:00
libc Organize `libc` and `libm` files (#1499) 2023-11-28 13:01:14 +11:00
libc64 Organize `libc64` files (#1492) 2023-11-27 12:01:42 +11:00
tables EnInvadepoh (Aliens, UFO, Invasion Handler, etc.) OK and documented (#1614) 2024-04-29 08:19:55 -07:00
CIC6105.h Cleanup pass for CIC6105.c (#1371) 2023-09-24 19:23:44 +10:00
alignment.h Match `Environment_DrawSkyboxStarsImpl` (z_kankyo OK), introduce `rand.h` (#1476) 2023-11-10 10:28:16 +11:00
attributes.h Yet another libultra cleanup (#1384) 2023-10-26 10:44:27 -03:00
audiomgr.h Irqmgr + scheduler Docs (#1527) 2024-01-20 20:47:00 -03:00
audiothread_cmd.h Enable `-Wint-conversion` warning (#1266) 2023-11-02 10:07:38 +11:00
buffers.h Move the system heap and the framebuffers to their own segments (#1488) 2023-11-26 09:47:21 -03:00
build.h Cleanup pass for CIC6105.c (#1371) 2023-09-24 19:23:44 +10:00
carthandle.h Small boot cleanup (#1475) 2023-11-10 10:08:21 +11:00
color.h Match `Environment_DrawSkyboxStarsImpl` (z_kankyo OK), introduce `rand.h` (#1476) 2023-11-10 10:28:16 +11:00
command_macros_base.h
debug.h Move libultra function declarations to libultra headers (#1196) 2023-09-02 15:34:29 -04:00
fault.h General Cleanup 2 (#1538) 2024-01-28 21:27:50 -03:00
fault_internal.h Port OoT's docs for `fault.c` and `fault_drawer.c` (#1199) 2023-07-08 14:41:25 -04:00
flg_set.h More header cleanup (#1604) 2024-04-25 18:16:47 -07:00
functions.h c_keyframe.c decompiled and documented (#1630) 2024-05-17 08:29:19 -04:00
gamealloc.h Yet another header cleanup (#1508) 2023-11-23 13:55:05 +11:00
gfx.h Yet another header cleanup (#1508) 2023-11-23 13:55:05 +11:00
gfxprint.h General Cleanup 3 (#1543) 2024-01-29 10:51:59 -03:00
global.h Yet another header cleanup (#1284) 2023-06-18 16:43:47 +10:00
ichain.h Yet another header cleanup (#1508) 2023-11-23 13:55:05 +11:00
idle.h Idle + Main bss and cleanup (#1292) 2023-06-26 10:18:50 +10:00
irqmgr.h Irqmgr + scheduler Docs (#1527) 2024-01-20 20:47:00 -03:00
kanread.h Extract Kanji + some adjacent docs (#1536) 2024-01-21 12:47:27 +11:00
listalloc.h PreRender.c OK (#1320) 2023-09-15 19:34:16 -03:00
loadfragment.h Misc Clean (#1602) 2024-04-06 10:23:06 -07:00
macro.inc Change tooling for better elf correctness (#1632) 2024-05-17 06:41:23 -07:00
macros.h c_keyframe.c decompiled and documented (#1630) 2024-05-17 08:29:19 -04:00
main.h Irqmgr + scheduler Docs (#1527) 2024-01-20 20:47:00 -03:00
message_data_fmt_nes.h Text Extraction + some Message Docs (#1530) 2024-01-19 21:16:57 -03:00
message_data_fmt_staff.h Text Extraction + some Message Docs (#1530) 2024-01-19 21:16:57 -03:00
message_data_static.h Text Extraction + some Message Docs (#1530) 2024-01-19 21:16:57 -03:00
padmgr.h Move libultra function declarations to libultra headers (#1196) 2023-09-02 15:34:29 -04:00
padutils.h General Cleanup (#1529) 2024-01-15 10:03:13 +11:00
prevent_bss_reordering.h
prevent_bss_reordering2.h `z64vi*.h` and `sys_cfb.h` headers (#1259) 2023-08-09 19:44:31 -04:00
regs.h Introduce `z64pause_menu.h` header (#1505) 2024-03-31 20:05:02 -07:00
rom_header.h New Romheader format (#1628) 2024-05-17 09:00:45 -04:00
romfile.h Use Romfile in place of vromStart and vromEnd in structs (#1618) 2024-05-12 10:08:52 -07:00
scheduler.h General Cleanup 2 (#1538) 2024-01-28 21:27:50 -03:00
segment_symbols.h Use Romfile in place of vromStart and vromEnd in structs (#1618) 2024-05-12 10:08:52 -07:00
seqcmd.h Audio `sequence.c` OK and documented (#1201) 2023-03-30 19:53:47 +11:00
sequence.h increase audio seq cmd list size (#1610) 2024-04-06 09:24:22 -07:00
sfx.h Cleanup External Audio Headers (#1520) 2023-11-29 14:18:09 -03:00
slowly.h
stack.h
stackcheck.h `stackcheck.h` (#1204) 2023-04-18 17:50:34 -04:00
su_mtx.h More header cleanup (#1604) 2024-04-25 18:16:47 -07:00
sys_cfb.h `z64vi*.h` and `sys_cfb.h` headers (#1259) 2023-08-09 19:44:31 -04:00
sys_cmpdma.h More header cleanup (#1604) 2024-04-25 18:16:47 -07:00
sys_flashrom.h More header cleanup (#1604) 2024-04-25 18:16:47 -07:00
sys_initial_check.h More header cleanup (#1604) 2024-04-25 18:16:47 -07:00
sys_matrix.h
sys_ucode.h More header cleanup (#1604) 2024-04-25 18:16:47 -07:00
system_heap.h Docs Cleanup (#1153) 2023-05-29 13:04:07 +10:00
tha.h Enable `-Wint-conversion` warning (#1266) 2023-11-02 10:07:38 +11:00
thga.h
ultra64.h Yet another libultra cleanup (#1384) 2023-10-26 10:44:27 -03:00
unk.h
variables.h More header cleanup (#1604) 2024-04-25 18:16:47 -07:00
viconfig.h General Cleanup (#1529) 2024-01-15 10:03:13 +11:00
vt.h
yaz0.h General Cleanup (#1529) 2024-01-15 10:03:13 +11:00
z64.h c_keyframe.c decompiled and documented (#1630) 2024-05-17 08:29:19 -04:00
z64DLF.h More header cleanup (#1604) 2024-04-25 18:16:47 -07:00
z64actor.h More header cleanup (#1604) 2024-04-25 18:16:47 -07:00
z64actor_dlftbls.h Use Romfile in place of vromStart and vromEnd in structs (#1618) 2024-05-12 10:08:52 -07:00
z64animation.h c_keyframe.c decompiled and documented (#1630) 2024-05-17 08:29:19 -04:00
z64animation_legacy.h Yet another header cleanup (#1284) 2023-06-18 16:43:47 +10:00
z64audio.h Introduce More Audio Headers (#1515) 2024-02-08 14:36:11 -03:00
z64bgcheck.h General Cleanup 2 (#1538) 2024-01-28 21:27:50 -03:00
z64bombers_notebook.h General Cleanup 2 (#1538) 2024-01-28 21:27:50 -03:00
z64camera.h More header cleanup (#1604) 2024-04-25 18:16:47 -07:00
z64circle_tex.h Clean2 (#1605) 2024-02-20 14:04:23 +11:00
z64collision_check.h Boss01 (Odolwa) OK and documented (#1452) 2023-10-29 08:29:43 +11:00
z64curve.h Update ZAPD (#1533) 2024-01-14 12:34:50 -03:00
z64cutscene.h Update ZAPD (#1533) 2024-01-14 12:34:50 -03:00
z64cutscene_commands.h Update ZAPD (#1533) 2024-01-14 12:34:50 -03:00
z64debug_display.h
z64debug_text.h
z64dma.h Use Romfile in place of vromStart and vromEnd in structs (#1618) 2024-05-12 10:08:52 -07:00
z64door.h `ovl_En_Door` docs pass (#1603) 2024-04-22 18:34:02 -07:00
z64eff_blure.h Split effect headers and a bit of cleanup (#1482) 2023-11-27 12:24:46 -03:00
z64eff_footmark.h
z64eff_shield_particle.h Split effect headers and a bit of cleanup (#1482) 2023-11-27 12:24:46 -03:00
z64eff_spark.h Split effect headers and a bit of cleanup (#1482) 2023-11-27 12:24:46 -03:00
z64eff_ss_dead.h Split effect headers and a bit of cleanup (#1482) 2023-11-27 12:24:46 -03:00
z64eff_tire_mark.h Split effect headers and a bit of cleanup (#1482) 2023-11-27 12:24:46 -03:00
z64effect.h Split effect headers and a bit of cleanup (#1482) 2023-11-27 12:24:46 -03:00
z64effect_ss.h Use Romfile in place of vromStart and vromEnd in structs (#1618) 2024-05-12 10:08:52 -07:00
z64environment.h `z_en_test4.c` Documented (#1498) 2023-11-25 17:34:33 +11:00
z64font.h More header cleanup (#1604) 2024-04-25 18:16:47 -07:00
z64frameadvance.h Move libultra function declarations to libultra headers (#1196) 2023-09-02 15:34:29 -04:00
z64game.h Use Romfile in place of vromStart and vromEnd in structs (#1618) 2024-05-12 10:08:52 -07:00
z64game_over.h
z64horse.h `z_horse.c` OK (#1245) 2023-06-01 15:11:11 -04:00
z64interface.h Yet another header cleanup (#1284) 2023-06-18 16:43:47 +10:00
z64item.h Z_message (2 NON_MATCHINGS) (#1398) 2023-10-04 08:51:45 +11:00
z64jpeg.h Move libultra function declarations to libultra headers (#1196) 2023-09-02 15:34:29 -04:00
z64keyframe.h c_keyframe.c decompiled and documented (#1630) 2024-05-17 08:29:19 -04:00
z64lib.h Yet another header cleanup (#1508) 2023-11-23 13:55:05 +11:00
z64lifemeter.h More header cleanup (#1604) 2024-04-25 18:16:47 -07:00
z64light.h Yet another header cleanup (#1508) 2023-11-23 13:55:05 +11:00
z64malloc.h Yet another header cleanup (#1508) 2023-11-23 13:55:05 +11:00
z64map.h
z64math.h ObjMure2 OK and documented (#1525) 2024-01-14 15:36:22 -03:00
z64message.h More header cleanup (#1604) 2024-04-25 18:16:47 -07:00
z64nmi_buff.h More header cleanup (#1604) 2024-04-25 18:16:47 -07:00
z64object.h More header cleanup (#1604) 2024-04-25 18:16:47 -07:00
z64ocarina.h Cleanup External Audio Headers (#1520) 2023-11-29 14:18:09 -03:00
z64path.h More header cleanup (#1604) 2024-04-25 18:16:47 -07:00
z64pause_menu.h Use Romfile in place of vromStart and vromEnd in structs (#1618) 2024-05-12 10:08:52 -07:00
z64player.h More header cleanup (#1604) 2024-04-25 18:16:47 -07:00
z64prerender.h PreRender.c OK (#1320) 2023-09-15 19:34:16 -03:00
z64quake.h `code_80140E80` OK and preliminary documentation, Fbdemo_Wipe4 OK and documented (#1106) 2023-10-26 17:42:24 +11:00
z64rumble.h Move libultra function declarations to libultra headers (#1196) 2023-09-02 15:34:29 -04:00
z64save.h EnInvadepoh (Aliens, UFO, Invasion Handler, etc.) OK and documented (#1614) 2024-04-29 08:19:55 -07:00
z64scene.h More header cleanup (#1604) 2024-04-25 18:16:47 -07:00
z64schedule.h A higher level language for schedule scripts (#1462) 2024-02-01 09:50:32 -03:00
z64shrink_window.h
z64skin.h General Cleanup (#1529) 2024-01-15 10:03:13 +11:00
z64skin_matrix.h Yet another header cleanup (#1508) 2023-11-23 13:55:05 +11:00
z64skybox.h Skybox Docs (#1534) 2024-01-14 15:56:19 -03:00
z64snap.h
z64sound_source.h Yet another header cleanup (#1284) 2023-06-18 16:43:47 +10:00
z64speed_meter.h General Cleanup 2 (#1538) 2024-01-28 21:27:50 -03:00
z64subs.h `ovl_En_Door` docs pass (#1603) 2024-04-22 18:34:02 -07:00
z64thread.h Dmadata Migration (#1526) 2024-01-14 13:04:53 -03:00
z64transition.h Use Romfile in place of vromStart and vromEnd in structs (#1618) 2024-05-12 10:08:52 -07:00
z64view.h `ovl_En_Door` docs pass (#1603) 2024-04-22 18:34:02 -07:00
z64vimode.h `z64vi*.h` and `sys_cfb.h` headers (#1259) 2023-08-09 19:44:31 -04:00
z64vis.h Framebuffer filter docs (#1528) 2024-01-20 21:04:28 -03:00
z64visfbuf.h `code_80140E80` OK and preliminary documentation, Fbdemo_Wipe4 OK and documented (#1106) 2023-10-26 17:42:24 +11:00
z64voice.h General Cleanup 2 (#1538) 2024-01-28 21:27:50 -03:00
z_en_hy_code.h Text Extraction + some Message Docs (#1530) 2024-01-19 21:16:57 -03:00
z_fireobj.h Misc Cleanup 3 (#1268) 2023-06-06 08:57:45 +10:00
z_prenmi.h `z64game.h` (#1250) 2023-06-06 08:54:18 -04:00
z_title_setup.h `z64game.h` (#1250) 2023-06-06 08:54:18 -04:00