diff mbox series

Makefile: Build with symbols

Message ID 20190411051013.5711-1-joel@jms.id.au
State Accepted
Headers show
Series Makefile: Build with symbols | expand

Checks

Context Check Description
snowpatch_ozlabs/apply_patch success Successfully applied on branch master (ff79070d1c4cdc38f2ecb42e45b8322cb1efb819)
snowpatch_ozlabs/snowpatch_job_snowpatch-skiboot success Test snowpatch/job/snowpatch-skiboot on branch master
snowpatch_ozlabs/snowpatch_job_snowpatch-skiboot-dco success Signed-off-by present

Commit Message

Joel Stanley April 11, 2019, 5:10 a.m. UTC
Signed-off-by: Joel Stanley <joel@jms.id.au>
---
 Makefile.main | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Stewart Smith April 17, 2019, 7:42 a.m. UTC | #1
Joel Stanley <joel@jms.id.au> writes:
> Signed-off-by: Joel Stanley <joel@jms.id.au>
> ---
>  Makefile.main | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/Makefile.main b/Makefile.main
> index 8a99ec9f4b79..fa412857349a 100644
> --- a/Makefile.main
> +++ b/Makefile.main
> @@ -76,7 +76,7 @@ endif
>  
>  CFLAGS := -fno-strict-aliasing -pie -fpie -fno-pic -mbig-endian -m64
>  CFLAGS += -mcpu=power7
> -CFLAGS += -Wl,--oformat,elf64-powerpc
> +CFLAGS += -Wl,--oformat,elf64-powerpc -ggdb

Sure.. I'm guessing this is useful for bonus debugging info when using
Debugging Magic(TM), merged to master as of a7855bdd659382468ffc17ad6460c4c67488c2e6
diff mbox series

Patch

diff --git a/Makefile.main b/Makefile.main
index 8a99ec9f4b79..fa412857349a 100644
--- a/Makefile.main
+++ b/Makefile.main
@@ -76,7 +76,7 @@  endif
 
 CFLAGS := -fno-strict-aliasing -pie -fpie -fno-pic -mbig-endian -m64
 CFLAGS += -mcpu=power7
-CFLAGS += -Wl,--oformat,elf64-powerpc
+CFLAGS += -Wl,--oformat,elf64-powerpc -ggdb
 CFLAGS += $(call try-cflag,$(CC),-ffixed-r13)
 CFLAGS += $(call try-cflag,$(CC),-std=gnu11)
 ifeq ($(ELF_ABI_v2),1)