[systemd-devel] [PATCH] build-sys: remove --gc-sections to fix debugging

Gustavo Sverzut Barbieri gustavo.barbieri at intel.com
Wed Nov 26 09:37:23 PST 2014


On Wed, Nov 26, 2014 at 06:27:45PM +0100, Michael Biebl wrote:
> 2014-11-26 18:16 GMT+01:00 Gustavo Sverzut Barbieri
> <gustavo.barbieri at intel.com>:
> >
> > My only comment is that we should also remove:
> >         -ffunction-sections
> >         -fdata-sections
> > those are only useful to enable gc-sections.
> >
> > From time to time someone should run a build with
> >         -ffunction-sections
> >         -fdata-sections
> >         -Wl,--gc-sections
> >         -Wl,--print-gc-sections
> > so we print out sections that are dangling and then we could remove
> > them from source code if needed.
>
> Could we add them to autogen.sh so it's used by the developers?
> After all, we already set quite a few CFLAGS in autogen.sh.

It's something that is quite annoying, then I'd not add. Maybe to
"make distcheck" via DISTCHECK_CONFIGURE_FLAGS?


--
Gustavo Sverzut Barbieri
Intel Open source Technology Center


More information about the systemd-devel mailing list