Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

aarch64: build gdb as part of binutils #3351

Merged
merged 1 commit into from
Sep 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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>

Loading