From: Stafford Horne <shorne@gmail.com>
To: linux-kernel@vger.kernel.org
Cc: openrisc@lists.librecores.org, stefan.kristiansson@saunalahti.fi,
jonas@southpole.se, linux@roeck-us.net, fengguang.wu@intel.com,
Stafford Horne <shorne@gmail.com>
Subject: [PATCH] openrisc: Add _text symbol to fix ksym build error
Date: Wed, 14 Dec 2016 21:55:02 +0900 [thread overview]
Message-ID: <1481720102-20169-1-git-send-email-shorne@gmail.com> (raw)
The build report reports:
.tmp_kallsyms1.o: In function `kallsyms_relative_base':
>> (.rodata+0x8a18): undefined reference to `_text'
This is when using 'make alldefconfig'. Adding this _text symbol to mark
the start of the kernel as in other architecture fixes this.
Signed-off-by: Stafford Horne <shorne@gmail.com>
---
arch/openrisc/kernel/vmlinux.lds.S | 3 +++
1 file changed, 3 insertions(+)
diff --git a/arch/openrisc/kernel/vmlinux.lds.S b/arch/openrisc/kernel/vmlinux.lds.S
index ef31fc2..58eaca0 100644
--- a/arch/openrisc/kernel/vmlinux.lds.S
+++ b/arch/openrisc/kernel/vmlinux.lds.S
@@ -44,6 +44,8 @@ SECTIONS
/* Read-only sections, merged into text segment: */
. = LOAD_BASE ;
+ _text = .;
+
/* _s_kernel_ro must be page aligned */
. = ALIGN(PAGE_SIZE);
_s_kernel_ro = .;
@@ -66,6 +68,7 @@ SECTIONS
* fixup is definitely necessary
*/
+ _data = .;
_sdata = .;
/* Page alignment required for RO_DATA_SECTION */
--
2.7.4
next reply other threads:[~2016-12-14 12:55 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-12-14 12:55 Stafford Horne [this message]
2016-12-14 12:58 ` [OpenRISC] [PATCH] openrisc: Add _text symbol to fix ksym build error Geert Uytterhoeven
2016-12-14 13:12 ` Stafford Horne
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=1481720102-20169-1-git-send-email-shorne@gmail.com \
--to=shorne@gmail.com \
--cc=fengguang.wu@intel.com \
--cc=jonas@southpole.se \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@roeck-us.net \
--cc=openrisc@lists.librecores.org \
--cc=stefan.kristiansson@saunalahti.fi \
/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