[systemd-devel] [PATCH] build-sys: remove --gc-sections to fix debugging
Michael Biebl
mbiebl at gmail.com
Wed Nov 26 09:27:45 PST 2014
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.
Michael
--
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?
More information about the systemd-devel
mailing list