From: Paul Mackerras <paulus@samba.org>
To: akpm@osdl.org
Cc: anton@samba.org, linux-kernel@vger.kernel.org
Subject: [PATCH] PPC64 Fix compilation with recent toolchains
Date: Fri, 19 Nov 2004 20:10:28 +1100 [thread overview]
Message-ID: <16797.47236.732462.744153@cargo.ozlabs.ibm.com> (raw)
Recent ppc64 toolchains don't create dot symbols (i.e. a globally
visible ".foo" symbol for the text of function foo) any more. This
breaks the kernel compile because we refer to function text addresses
in the system call table. Fortunately there is an option,
-mcall-aixdesc, which restores the previous behaviour, and even more
fortunately, old ppc64 toolchains understand the option as well as new
ones. This patch adds -mcall-aixdesc to CFLAGS in
arch/ppc64/Makefile.
Signed-off-by: Paul Mackerras <paulus@samba.org>
diff -urN linux-2.5/arch/ppc64/Makefile test/arch/ppc64/Makefile
--- linux-2.5/arch/ppc64/Makefile 2004-10-27 07:32:57.000000000 +1000
+++ test/arch/ppc64/Makefile 2004-11-19 16:13:41.744205744 +1100
@@ -32,7 +32,8 @@
LDFLAGS := -m elf64ppc
LDFLAGS_vmlinux := -Bstatic -e $(KERNELLOAD) -Ttext $(KERNELLOAD)
-CFLAGS += -msoft-float -pipe -mminimal-toc -mtraceback=none
+CFLAGS += -msoft-float -pipe -mminimal-toc -mtraceback=none \
+ -mcall-aixdesc
ifeq ($(CONFIG_POWER4_ONLY),y)
CFLAGS += $(call cc-option,-mcpu=power4)
reply other threads:[~2004-11-19 9:26 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=16797.47236.732462.744153@cargo.ozlabs.ibm.com \
--to=paulus@samba.org \
--cc=akpm@osdl.org \
--cc=anton@samba.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®