[Skiboot] [PATCH 08/11] Don't exclude sections during link
Benjamin Herrenschmidt
benh at kernel.crashing.org
Thu May 7 18:18:53 AEST 2015
On Thu, 2015-05-07 at 17:11 +1000, Stewart Smith wrote:
> We seem to need this to get the gcc generated ctors not discarded
No, you need to mark them KEEP in the lds file afaik
> Signed-off-by: Stewart Smith <stewart at linux.vnet.ibm.com>
> ---
> Makefile.main | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/Makefile.main b/Makefile.main
> index 310601d..e67d4cf 100644
> --- a/Makefile.main
> +++ b/Makefile.main
> @@ -66,7 +66,7 @@ endif
>
> CFLAGS += $(CWARNS) $(OPTS) $(DBG)
>
> -LDFLAGS := -m64 -static -nostdlib -Wl,--gc-sections -pie
> +LDFLAGS := -m64 -static -nostdlib -pie
> LDFLAGS += -Wl,-Ttext-segment,$(LD_TEXT) -Wl,-N -Wl,--build-id=none
> LDFLAGS += -Wl,--no-multi-toc
> LDRFLAGS=-melf64ppc
More information about the Skiboot
mailing list