Skip to content

Instantly share code, notes, and snippets.

@nobuh
Created May 7, 2021 05:17
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nobuh/98f065c6c03bbfda1a250f3ae8c4b2f8 to your computer and use it in GitHub Desktop.
Save nobuh/98f065c6c03bbfda1a250f3ae8c4b2f8 to your computer and use it in GitHub Desktop.
GBA GCC プログラミング

GBA GCC プログラミング

ARM のクロスビルド環境

binutils のソース https://www.sourceware.org/pub/binutils/releases/binutils-2.36.1.tar.gz

  • 解凍
  • cd cd binutils-2.36.1
  • mkdir build_arm`
  • cd build_arm
  • ../configure --target=arm-gba-elf
  • make all-binutils all-gas all-ld
  • 手製のインストールスクリプト install_arm.sh を使ってインストールする
#!/bin/sh -x
DEST=/usr/local/bin
SUFFIX=-arm
cp -a gas/as-new ${DEST}/as${SUFFIX}
cp -a ld/ld-new ${DEST}/ld${SUFFIX}
cp -a binutils/ar ${DEST}/ar${SUFFIX}
cp -a binutils/size ${DEST}/size${SUFFIX}
cp -a binutils/readelf ${DEST}/readelf${SUFFIX}
cp -a binutils/strip-new ${DEST}/strip${SUFFIX}
cp -a binutils/nm-new ${DEST}/nm${SUFFIX}
cp -a binutils/objcopy ${DEST}/objcopy${SUFFIX}
cp -a binutils/objdump ${DEST}/objdump${SUFFIX}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment