All of lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Petazzoni via buildroot <buildroot@buildroot.org>
To: "J. Neuschäfer via buildroot" <buildroot@buildroot.org>
Cc: "J. Neuschäfer" <j.neuschaefer@gmx.net>
Subject: Re: [Buildroot] [PATCH] package/Makefile.in: Use "-z text" instead of "-Wl, -z, text"
Date: Tue, 6 Aug 2024 12:13:35 +0200	[thread overview]
Message-ID: <20240806121335.5571bd76@windsurf> (raw)
In-Reply-To: <20240805-z-linker-v1-1-8362e6645f67@gmx.net>

On Mon, 05 Aug 2024 23:53:56 +0200
J. Neuschäfer via buildroot <buildroot@buildroot.org> wrote:

> After the recent addition to -Wl,-z,text to TARGET_LDFLAGS in case of
> musl-libc and dynamic linking, it was found that some packages pass
> TARGET_LDFLAGS directly to ld, but the -Wl syntax only works with
> compiler drivers (gcc/clang). This commit changes the flag to -z text,
> which the gcc and clang also understand and pass to the linker.
> 
> Reported-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
> Signed-off-by: J. Neuschäfer <j.neuschaefer@gmx.net>
> ---
> Note: This patch is inspired by gnu-efi, which passes TARGET_LDFLAGS
> directly to ld. This particular case is solved by this patch, but
> gnu-efi then fails differently (on ARM), with errors such as:

Applied to master, thanks.

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

  reply	other threads:[~2024-08-06 10:13 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-08-05 21:53 [Buildroot] [PATCH] package/Makefile.in: Use "-z text" instead of "-Wl, -z, text" J. Neuschäfer via buildroot
2024-08-06 10:13 ` Thomas Petazzoni via buildroot [this message]
2024-08-09 10:00 ` yann.morin
2024-08-09 12:52   ` yann.morin

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=20240806121335.5571bd76@windsurf \
    --to=buildroot@buildroot.org \
    --cc=j.neuschaefer@gmx.net \
    --cc=thomas.petazzoni@bootlin.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.