mirror of
https://github.com/zeldaret/af.git
synced 2026-10-09 10:01:37 -04:00
a10bb11ed6
* Makefile cleanup * venv * baseroms folder * Jenkinsfile * Remove z64compress * Small cleanup * More small fixes * diff_settings fix * Fix jenkins * make compress in readme
16 lines
428 B
Bash
Executable File
16 lines
428 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 '\bdmadata_ROM_START\b' | cut -d' ' -f1`
|
|
|
|
echo 0x"$_dmadataSegmentRomStart"
|