From: Jan Beulich <jbeulich@suse.com>
To: trcrsired <oyzawqgcfc@gmail.com>
Cc: gdb-patches@sourceware.org, binutils@sourceware.org
Subject: Re: [PATCH 1/1] Support building binutils-gdb for an Android (bionic) host
Date: Fri, 30 Oct 2026 14:56:08 +0100 [thread overview]
Message-ID: <7668944c-a4a4-43ba-8f62-a0bb845450a5@suse.com> (raw)
In-Reply-To: <20261029124117.13519-2-oyzawqgcfc@gmail.com>
On 29.10.2026 13:41, trcrsired wrote:
> Building with --host=aarch64-linux-android30 failed because bionic is not
> glibc:
>
> - The compiler's <limits.h> does not expose PATH_MAX (bionic defines it in
> <linux/limits.h>), while <sys/param.h> defines MAXPATHLEN as PATH_MAX.
> Make PATH_MAX available from libiberty.h and gnulib's pathmax.h for
> __ANDROID__.
> - bionic's <stdint.h> defines UINTPTR_WIDTH in terms of
> __UINTPTR_WIDTH__, which GCC does not predefine. Derive the width from
> the type in rawmemchr.c.
> - bionic's fortify headers do not compile from C++ with the Android GCC
> port, so do not define _FORTIFY_SOURCE for __ANDROID__.
> - Modern NDKs provide Elf32_auxv_t/Elf64_auxv_t, so stop assuming Android
> lacks them in gdbserver; linux-low.cc otherwise defines conflicting
> struct tags.
> - gprofng needs glibc facilities (pthread cancellation, dlinfo), so do
> not build it for android targets.
>
> /
> * configure.ac (enable_gprofng): Do not build gprofng for android
> targets.
> * configure: Regenerate.
>
> include/ChangeLog:
>
> * libiberty.h: Include <linux/limits.h> on Android when PATH_MAX
> is not defined.
> ---
> configure | 2 +-
> configure.ac | 2 +-
> gdbserver/configure | 17 +----------------
> gdbserver/configure.ac | 23 ++++++-----------------
> gdbsupport/common-defs.h | 2 +-
> gnulib/import/pathmax.h | 8 ++++++++
> gnulib/import/rawmemchr.c | 8 +++++++-
> include/libiberty.h | 8 ++++++++
> 8 files changed, 33 insertions(+), 37 deletions(-)
Top-level and libiberty changes want submitting to gcc-patches@, for
binutils to then sync. The remaining changes want submitting to
gdb-patches@.
Also there may need to be a Signed-off-by of yours, unless you have a
copyright assignment in place with the FSF.
Jan
next prev parent reply other threads:[~2026-10-30 13:56 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-29 12:41 [PATCH 0/1] " trcrsired
2026-10-29 12:41 ` [PATCH 1/1] " trcrsired
2026-10-30 13:56 ` Jan Beulich [this message]
2026-10-30 17:57 ` Tom Tromey
2026-10-30 19:51 ` Simon Marchi
2026-10-30 20:31 ` coshvji cujmlqef
2026-11-03 14:21 ` Tom Tromey
2026-11-03 14:58 ` Simon Marchi
2026-11-17 18:43 ` Tom Tromey
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7668944c-a4a4-43ba-8f62-a0bb845450a5@suse.com \
--to=jbeulich@suse.com \
--cc=binutils@sourceware.org \
--cc=gdb-patches@sourceware.org \
--cc=oyzawqgcfc@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox