Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kallsyms failure: relative symbol value 0x100007aa4 out of range in relative mode #229

Open
M1cha opened this issue Sep 14, 2016 · 9 comments

Comments

@M1cha
Copy link

M1cha commented Sep 14, 2016

I'm compiling for ARM with gcc-linaro-6.1.1~linaro-gcc-6-branch@f3888e76-20160721-x86_64_arm-eabi.

EDIT: the official 'gcc-linaro-5.3-2016.02-x86_64_arm-eabi' seems to be broken too

@tavip
Copy link
Member

tavip commented Sep 14, 2016

@M1cha We recently had a change in kallsyms, could you please try building at the following commit: d58310d?

@M1cha
Copy link
Author

M1cha commented Sep 14, 2016

I am using the latest master branch already :)

@pscollins
Copy link
Member

Have you done an mrproper since the last time you pulled from master?

On Sep 14, 2016 11:19 AM, "Michael Zimmermann" notifications@github.com
wrote:

I am using the latest master branch already :)


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#229 (comment), or mute
the thread
https://github.com/notifications/unsubscribe-auth/ADz8y50EY2fiSejApzNhkyrsWS73AzTjks5qqDqhgaJpZM4J9A0m
.

@M1cha
Copy link
Author

M1cha commented Sep 14, 2016

@pscollins I cloned the project for the first time today, so yes.

@M1cha
Copy link
Author

M1cha commented Sep 15, 2016

to make it easier for you to reproduce it, here's the toolchain I use:
https://releases.linaro.org/components/toolchain/binaries/5.3-2016.02/arm-eabi/

also, I'm using Arch Linux if that matters.

@Rondom
Copy link

Rondom commented Sep 15, 2016

The commit tavip mentioned is BEFORE the kallsyms change. So I suggest to try this to make sure the change did not break anything.

@M1cha
Copy link
Author

M1cha commented Sep 15, 2016

@tavip @Rondom sry that I misunderstood the post.
I tried building at the commit mentioned but I still get the same error.

@tavip
Copy link
Member

tavip commented Sep 15, 2016

Thanks for trying it out. I will install the toolchain and give it a try tomorrow. We probably need to tune some gcc parameters.

@thehajime
Copy link
Member

diff --git a/arch/lkl/Kconfig b/arch/lkl/Kconfig
index 0dceddc0e3fa..2d1dbf0d25ee 100644
--- a/arch/lkl/Kconfig
+++ b/arch/lkl/Kconfig
@@ -39,6 +39,9 @@ config 64BIT
 config BIG_ENDIAN
        def_bool n

+config KALLSYMS_BASE_RELATIVE
+       def_bool n
+
 config TTY
        def_bool n

The above patch alleviates this issue, but not sure if this is the right fix or not...

thehajime added a commit to libos-nuse/lkl-linux that referenced this issue Oct 28, 2016
Signed-off-by: Hajime Tazaki <thehajime@gmail.com>
thehajime added a commit to libos-nuse/lkl-linux that referenced this issue Jan 12, 2017
Signed-off-by: Hajime Tazaki <thehajime@gmail.com>
thehajime added a commit to libos-nuse/lkl-linux that referenced this issue Feb 13, 2017
Signed-off-by: Hajime Tazaki <thehajime@gmail.com>
thehajime added a commit to libos-nuse/lkl-linux that referenced this issue Feb 23, 2017
Signed-off-by: Hajime Tazaki <thehajime@gmail.com>
thehajime added a commit to libos-nuse/lkl-linux that referenced this issue Jun 25, 2018
Signed-off-by: Hajime Tazaki <thehajime@gmail.com>
thehajime added a commit to ukontainer/lkl-linux that referenced this issue Jan 22, 2019
Signed-off-by: Hajime Tazaki <thehajime@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants