Skip to content

Commit

Permalink
Merge pull request #3351 from citrus-it/gdb
Browse files Browse the repository at this point in the history
aarch64: build gdb as part of binutils
  • Loading branch information
oetiker authored Sep 10, 2023
2 parents 7904e69 + bcc0b39 commit d2bdb3e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 3 additions & 4 deletions build/binutils/build-arch-aarch64.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export AS_FOR_BUILD=/opt/cross/$ARCH/bin/$TRIPLET-as
export AR_FOR_BUILD=/opt/cross/$ARCH/bin/$TRIPLET-ar
export LD_FOR_TARGET=/bin/ld
export CFLAGS_FOR_TARGET="-mno-outline-atomics -mtls-dialect=trad"
export CXXFLAGS_FOR_TARGET="-mno-outline-atomics -mtls-dialect=trad"
export CXXFLAGS_FOR_TARGET="$CFLAGS_FOR_TARGET"
export STRIP="/usr/bin/strip -x"
export STRIP_FOR_TARGET="$STRIP"

Expand All @@ -74,9 +74,8 @@ CONFIGURE_OPTS="
--with-system-zlib
"

# gdb doesn't currently build for aarch64 due to an issue in the bison
# generated code that narrows int to char, which is unsigned.
CONFIGURE_OPTS+=" --disable-gdb"
CFLAGS+=" $CFLAGS_FOR_TARGET"
CXXFLAGS+=" $CFLAGS_FOR_TARGET"

build_init() {
typeset d=${SYSROOT[$ARCH]}/usr
Expand Down
2 changes: 2 additions & 0 deletions build/binutils/local.mog
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,7 @@ dir group=bin mode=0755 owner=root path=usr/sfw/bin
<transform file path=usr/bin/g(.*)$ -> emit \
link path=usr/gnu/bin/%<1> target=../../bin/g%<1> >

$(aarch64_ONLY)link path=usr/bin/gdb target=ggdb

<transform file path=.*\.a$ -> drop>

0 comments on commit d2bdb3e

Please sign in to comment.