apio
8748364b7e
All checks were successful
continuous-integration/drone/push Build is passing
I can't believe the fact that there is a working gas and ld on Luna. At least, for a hello world program anyway :) objdump seems to have some problems with stack size in some cases, but apart from that, no crashes. And that can easily be solved with either more stack preallocation or stack resizing in the kernel on page faults.
31 lines
761 B
Plaintext
31 lines
761 B
Plaintext
# Basic information
|
|
name="binutils"
|
|
version="2.39"
|
|
|
|
# Download options
|
|
format="tar"
|
|
url="https://ftp.gnu.org/gnu/binutils/binutils-$version.tar.gz"
|
|
output="binutils-$version.tar.gz"
|
|
sha256sum="d12ea6f239f1ffe3533ea11ad6e224ffcb89eb5d01bbea589e9158780fa11f10"
|
|
|
|
# Build instructions
|
|
default_build_make=true
|
|
|
|
do_patch()
|
|
{
|
|
patch -ui $portdir/binutils.patch -p 1 -d $srcdir/..
|
|
}
|
|
|
|
do_configure()
|
|
{
|
|
$srcdir/configure --host=$LUNA_ARCH-luna --disable-nls --disable-werror --enable-warn-rwx-segments=no --prefix=/usr --enable-gold=no --enable-ld=yes --enable-gprofng=no
|
|
}
|
|
|
|
do_install()
|
|
{
|
|
make install
|
|
|
|
cd $installdir/usr/bin
|
|
$LUNA_ARCH-luna-strip size objdump ar strings ranlib objcopy addr2line readelf elfedit nm strip c++filt as gprof ld.bfd ld
|
|
}
|