[Buildroot] [PATCH v2 2/9] dumb-init: new package

Baruch Siach baruch at tkos.co.il
Thu Mar 1 23:02:14 UTC 2018


Hi Yann,

On Thu, Mar 01, 2018 at 11:23:42PM +0100, Yann E. MORIN wrote:
> On 2018-03-01 23:04 +0100, Thomas Petazzoni spake thusly:
> > On Thu, 01 Mar 2018 18:21:53 +0100, Peter Korsgaard wrote:
> > >  >> dumb-init doesn't depend on any libraries, so the only issue is static
> > >  >> linking with glibc, right?  
> 
> One can do a static link with glibc, as long as one does not do any name
> resolution (username, hostname, etc...). But basically, static linking
> with glibc has long been frowned upon...

This has changed a little recently. Toolchain support is still limited though. 
glibc NEWS for 2.27 says:

* The GNU C Library can now be compiled with support for building static
  PIE executables (See --enable-static-pie in INSTALL).  These static PIE
  executables are like static executables but can be loaded at any address
  and provide additional security hardening benefits at the cost of some
  memory and performance.  When the library is built with --enable-static-pie
  the resulting libc.a is usable with GCC 8 and above to create static PIE
  executables using the GCC option '-static-pie'.  This feature is currently
  supported on i386, x86_64 and x32 with binutils 2.29 or later, and on
  aarch64 with binutils 2.30 or later.

baruch

-- 
     http://baruch.siach.name/blog/                  ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch at tkos.co.il - tel: +972.52.368.4656, http://www.tkos.co.il -


More information about the buildroot mailing list