Re: [PATCH v2 1/1] sandbox: eliminate unused functions from binaries

2023-10-24 Thread Simon Glass
Hi, On Mon, 23 Oct 2023 at 10:24, Tom Rini wrote: > > On Mon, Oct 23, 2023 at 10:13:55AM -0700, Simon Glass wrote: > > Hi, > > > > On Mon, 23 Oct 2023 at 10:03, Tom Rini wrote: > > > > > > On Mon, Oct 23, 2023 at 01:37:27AM +0200, Heinrich Schuchardt wrote: > > > > The sandbox should closely

Re: [PATCH v2 1/1] sandbox: eliminate unused functions from binaries

2023-10-23 Thread Tom Rini
On Mon, Oct 23, 2023 at 10:13:55AM -0700, Simon Glass wrote: > Hi, > > On Mon, 23 Oct 2023 at 10:03, Tom Rini wrote: > > > > On Mon, Oct 23, 2023 at 01:37:27AM +0200, Heinrich Schuchardt wrote: > > > The sandbox should closely mimic other architectures. > > > > > > Place each function or data in

Re: [PATCH v2 1/1] sandbox: eliminate unused functions from binaries

2023-10-23 Thread Simon Glass
Hi, On Mon, 23 Oct 2023 at 10:03, Tom Rini wrote: > > On Mon, Oct 23, 2023 at 01:37:27AM +0200, Heinrich Schuchardt wrote: > > The sandbox should closely mimic other architectures. > > > > Place each function or data in a separate section and let the linker > > eliminate unused ones. This will

Re: [PATCH v2 1/1] sandbox: eliminate unused functions from binaries

2023-10-23 Thread Tom Rini
On Mon, Oct 23, 2023 at 01:37:27AM +0200, Heinrich Schuchardt wrote: > The sandbox should closely mimic other architectures. > > Place each function or data in a separate section and let the linker > eliminate unused ones. This will reduce the binary size. > > In the linker script mark that