From: Sascha Hauer <s.hauer@pengutronix.de>
To: barebox@lists.infradead.org, Ahmad Fatoum <a.fatoum@pengutronix.de>
Subject: Re: [PATCH v2 00/16] Remove dependency on ld --gc-section in PBL
Date: Fri, 29 Nov 2024 12:55:19 +0100 [thread overview]
Message-ID: <173288131990.225615.12006024999613992445.b4-ty@pengutronix.de> (raw)
In-Reply-To: <20241125151228.341441-1-a.fatoum@pengutronix.de>
On Mon, 25 Nov 2024 16:12:12 +0100, Ahmad Fatoum wrote:
> We depend on -ffunction-sections -fdata-sections at a lot of places and
> fail the link without due to undefined references. This is especially
> needed for obj-pbl-y code as the files usually have other functions
> depending on barebox proper infrastructure, but that is never called.
>
> This works so far, but breaks for two things: LTO and using PBL on
> sandbox. Both I have not managed to get the linker not to complain about
> the undefined references in the ultimately unreferenced code.
>
> [...]
Applied, thanks!
[01/16] scripts: include: add definitions for printk and BUG()
https://git.pengutronix.de/cgit/barebox/commit/?id=5f714c461371 (link may not be stable)
[02/16] xfuncs: include <malloc.h> for free definition
https://git.pengutronix.de/cgit/barebox/commit/?id=0b4b8e79bb29 (link may not be stable)
[03/16] pbl: define IN_PBL & IN_PROPER macros globally
https://git.pengutronix.de/cgit/barebox/commit/?id=9a5dcb2db6d1 (link may not be stable)
[04/16] treewide: replace inverted check for PBL with new IN_PROPER macro
https://git.pengutronix.de/cgit/barebox/commit/?id=f25049f852b8 (link may not be stable)
[05/16] lib: random: add stubs for PBL
https://git.pengutronix.de/cgit/barebox/commit/?id=3c12b1a96d9d (link may not be stable)
[06/16] bootsource: stub out when in PBL
https://git.pengutronix.de/cgit/barebox/commit/?id=a0e525ec732a (link may not be stable)
[07/16] crypto: provide crypto_memneq for PBL
https://git.pengutronix.de/cgit/barebox/commit/?id=db767506b43f (link may not be stable)
[08/16] cdev: stub out cdev_read/write for PBL
https://git.pengutronix.de/cgit/barebox/commit/?id=5d041e2a5d13 (link may not be stable)
[09/16] libfile: stub out file descriptor API for PBL
https://git.pengutronix.de/cgit/barebox/commit/?id=5936a2a6b555 (link may not be stable)
[10/16] environment: stub out environment API for PBL
https://git.pengutronix.de/cgit/barebox/commit/?id=2353d896d505 (link may not be stable)
[11/16] of: stub out live tree API when using PBL
https://git.pengutronix.de/cgit/barebox/commit/?id=2b9c420413b0 (link may not be stable)
[12/16] errno: stub out perror/strerror API when built for PBL
https://git.pengutronix.de/cgit/barebox/commit/?id=0195ed630f2c (link may not be stable)
[13/16] xfuncs: stub out API when built for PBL
https://git.pengutronix.de/cgit/barebox/commit/?id=8bb5da08a0c4 (link may not be stable)
[14/16] stdio: stub out basprintf and friends when built for PBL
https://git.pengutronix.de/cgit/barebox/commit/?id=787ca28ad2c3 (link may not be stable)
[15/16] memory: stub out request_barebox_region for PBL
https://git.pengutronix.de/cgit/barebox/commit/?id=1fed78b24d3b (link may not be stable)
[16/16] malloc: add PBL stubs
https://git.pengutronix.de/cgit/barebox/commit/?id=3e966a13c5ae (link may not be stable)
Best regards,
--
Sascha Hauer <s.hauer@pengutronix.de>
prev parent reply other threads:[~2024-11-29 11:55 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-25 15:12 Ahmad Fatoum
2024-11-25 15:12 ` [PATCH v2 01/16] scripts: include: add definitions for printk and BUG() Ahmad Fatoum
2024-11-25 15:12 ` [PATCH v2 02/16] xfuncs: include <malloc.h> for free definition Ahmad Fatoum
2024-11-25 15:12 ` [PATCH v2 03/16] pbl: define IN_PBL & IN_PROPER macros globally Ahmad Fatoum
2024-11-25 15:12 ` [PATCH v2 04/16] treewide: replace inverted check for PBL with new IN_PROPER macro Ahmad Fatoum
2024-11-25 15:12 ` [PATCH v2 05/16] lib: random: add stubs for PBL Ahmad Fatoum
2024-11-28 9:45 ` Sascha Hauer
2024-11-25 15:12 ` [PATCH v2 06/16] bootsource: stub out when in PBL Ahmad Fatoum
2024-11-28 9:47 ` Sascha Hauer
2024-11-25 15:12 ` [PATCH v2 07/16] crypto: provide crypto_memneq for PBL Ahmad Fatoum
2024-11-25 15:12 ` [PATCH v2 08/16] cdev: stub out cdev_read/write " Ahmad Fatoum
2024-11-28 9:52 ` Sascha Hauer
2024-11-25 15:12 ` [PATCH v2 09/16] libfile: stub out file descriptor API " Ahmad Fatoum
2024-11-25 15:12 ` [PATCH v2 10/16] environment: stub out environment " Ahmad Fatoum
2024-11-25 15:12 ` [PATCH v2 11/16] of: stub out live tree API when using PBL Ahmad Fatoum
2024-11-25 15:12 ` [PATCH v2 12/16] errno: stub out perror/strerror API when built for PBL Ahmad Fatoum
2024-11-25 15:12 ` [PATCH v2 13/16] xfuncs: stub out " Ahmad Fatoum
2024-11-25 15:12 ` [PATCH v2 14/16] stdio: stub out basprintf and friends " Ahmad Fatoum
2024-11-25 15:12 ` [PATCH v2 15/16] memory: stub out request_barebox_region " Ahmad Fatoum
2024-11-25 15:12 ` [PATCH v2 16/16] malloc: add PBL stubs Ahmad Fatoum
2024-11-29 11:55 ` Sascha Hauer [this message]
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=173288131990.225615.12006024999613992445.b4-ty@pengutronix.de \
--to=s.hauer@pengutronix.de \
--cc=a.fatoum@pengutronix.de \
--cc=barebox@lists.infradead.org \
/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