mirror of
https://github.com/zeldaret/oot.git
synced 2024-11-28 19:25:27 +00:00
d674dad3da
* Improve compression * Format * Typo * Use Python assignment expression in tools/dmadata.py Co-authored-by: Dragorn421 <Dragorn421@users.noreply.github.com> * Review decompress_baserom.py * Replace DEFINE_DEBUG_SCENE with CPP defines * Pass is_zlib_compressed instead of version * Reword NOLOAD comment in write_compress_ranges * Remove redundant comment --------- Co-authored-by: Dragorn421 <Dragorn421@users.noreply.github.com>
15 lines
434 B
Bash
Executable file
15 lines
434 B
Bash
Executable file
#!/bin/sh
|
|
|
|
NM=$1
|
|
ELF=$2
|
|
|
|
# dmadata_syms contents look like:
|
|
# ffffffff80015850 T _dmadataSegmentTextStart
|
|
# 00000000 A _dmadataSegmentTextSize
|
|
# 00011a40 A _dmadataSegmentRomStart
|
|
# ffffffff8001b920 T _dmadataSegmentRoDataEnd
|
|
dmadata_syms=`$NM $ELF --no-sort --radix=x --format=bsd | grep dmadata`
|
|
|
|
_dmadataSegmentRomStart=`echo "$dmadata_syms" | grep '\b_dmadataSegmentRomStart\b' | cut -d' ' -f1`
|
|
|
|
echo 0x"$_dmadataSegmentRomStart"
|