CONFIG_BUILD_ELF64 broken on IP32 since 2.6.20
IP32 kernels that are built with CONFIG_BUILD_ELF64=y only produce an exception when booted. This worked with 2.6.19 and before. I haven't had a chance to dig deep yet but it seems both Franck Bui-Huu and Atsushi Nemoto had patches in 2.6.20 that might have caused this. This still happens with 2.6.22. I cannot boot current git for other reasons.
If anyone has an idea which specific patch might have caused this, please let me know. Otherwise I'll try to find time in the next few days to revert various patches.
Signature · 2 lines
Martin Michlmayr http://www.cyrius.com/
Quoted 7 lines
IP32 kernels that are built with
CONFIG_BUILD_ELF64=yonly produce an exception when booted. This worked with 2.6.19 and before. I haven't had a chance to dig deep yet but it seems both Franck Bui-Huu and Atsushi Nemoto had patches in 2.6.20 that might have caused this. This still happens with 2.6.22. I cannot boot current git for other reasons.
Quoted 7 lines
If anyone has an idea which specific patch might have caused this, please let me know. Otherwise I'll try to find time in the next few days to revert various patches.
--
Martin Michlmayr
http://www.cyrius.com/
Nice to know someone's still working on Linux on the O2. I can confirm that its been broken, and I had believed I was even told why by Kumba
http://www.nabble.com/Re:-Cross-Compile-difficulties-p10769217.html:
Quoted 8 lines
One, make sure you're doing "make vmlinux.32", and two,
CONFIG_BUILD_ELF64is
_not_ enabled. For 2.6.20, I had to cram in a patch from Frank to get these
things to not PROM crash (due to the elimination of CPHYSADDY and replacement by__pa()), but on 2.6.21, this patch was unnecessary. Unsure about 2.6.22-rcX.
Anyway... sad to say this is a little beyond my understanding, but maybe it can help you start hacking. For what its worth, I'll gladly test patches on my O2s as I have an R5K 200 and RM7K 600.
Quoted 1 line · * [email protected] <[email protected]> [2007-09-25 11:32]:
Quoted 1 line
One, make sure you're doing "make vmlinux.32", and two,
CONFIG_BUILD_ELF64
I should say that I'm indeed using "make vmlinux.32". Anyway, I see no reason why this would break, especially given that it used to work. And if it really isn't supported anymore, make it impossible to chose CONFIG_BUILD_ELF64 on IP32.
Signature · 2 lines
Martin Michlmayr http://www.cyrius.com/
Quoted 13 lines · * [email protected] <[email protected]> [2007-09-25 11:32]:
Quoted 2 lines
Quoted 1 line
One, make sure you're doing "make vmlinux.32", and two,
CONFIG_BUILD_ELF64I should say that I'm indeed using "make vmlinux.32". Anyway, I see no reason why this would break, especially given that it used to work. And if it really isn't supported anymore, make it impossible to chose
CONFIG_BUILD_ELF64on IP32.
--
Martin Michlmayr
http://www.cyrius.com/
Sorry, you're misinterpreting what I said. The indented text was the advice given to me by Kumba (I highlighted the part of the linked thread) of why a 64-bit kernel won't work. Or at least I think that's what he was saying. Since you asked when 64-bit on IP32 was killed, and what patches did it, I thought this information might help.
Quoted 6 lines · Martin Michlmayr
IP32 kernels that are built with
CONFIG_BUILD_ELF64=yonly produce an exception when booted. This worked with 2.6.19 and before. I haven't had a chance to dig deep yet but it seems both Franck Bui-Huu and Atsushi Nemoto had patches in 2.6.20 that might have caused this. This still happens with 2.6.22. I cannot boot current git for other reasons.
I think this is solved on current git a few weeks ago by this commit (not mainlined yet):
Quoted 6 lines
Subject: [MIPS] Fix
CONFIG_BUILD_ELF64kernels with symbols in CKSEG0.
Date: Tue, 11 Sep 2007 11:12:03 +0100
Author: Ralf Baechle <[email protected]> Tue Sep 11 08:50:40 2007 +0100
Commit:db423f6e86c3c4c70edf3eaf504e22c467b9f97c
Gitweb: http://www.linux-mips.org/g/linux/db423f6e
Branch: master
It is just one liner and can be backported easily.
Quoted 3 lines
If anyone has an idea which specific patch might have caused this, please let me know. Otherwise I'll try to find time in the next few days to revert various patches.
Well, It might be a bit hard to revert specific patch in patchset with dependencies.
For background, there were fairly lengthy discussion on this topic. My thought was abstracted in this:
(http://www.linux-mips.org/archives/linux-mips/2007-03/msg00484.html)
Quoted 9 lines · Atsushi Nemoto
And I think the answer is
1) Disable
CONFIG_BUILD_ELF64in short term.2) Apply Franck's patchset with a slight change (enclose -msym32 by $(call cc-option)).
And _if_ this did not work on IP32, something needs to be fixed, but I can not see why for now.
I still think CONFIG_BUILD_ELF64=n is best choice. You can get smaller and faster kernel with this. Are there any reason to use CONFIG_BUILD_ELF64=y for IP32? (Note that CONFIG_BUILD_ELF64 and CONFIG_BOOT_ELF64 is separate thing.)
And The Franck's patchset is already in linux-queue tree of lmo so should be in 2.6.24.
And finally I can remember the report from Kumba:
http://www.linux-mips.org/archives/linux-mips/2007-03/msg00485.html
I do not know this RM52xx thing is fixed or not. ;)
---
Atsushi Nemoto
Quoted 5 lines · Atsushi Nemoto
I think this is solved on current git a few weeks ago by this commit (not mainlined yet):
Quoted 2 lines
Subject: [MIPS] Fix
CONFIG_BUILD_ELF64kernels with symbols in CKSEG0.
Gitweb: http://www.linux-mips.org/g/linux/db423f6eIt is just one liner and can be backported easily.
I put this into 2.6.22 and it works. Thanks a lot for the link.
Quoted 3 lines
I still think
CONFIG_BUILD_ELF64=nis best choice. You can get smaller and faster kernel with this. Are there any reason to useCONFIG_BUILD_ELF64=yfor IP32?
I don't know. All I know is that it's enabled in the Debian kernel for IP22 and IP32 and has broken the kernel. Thiemo, do you remember why this option is enabled in our kernels?
Quoted 2 lines
(Note that
CONFIG_BUILD_ELF64andCONFIG_BOOT_ELF64is separate thing.)
Yeah, I'm aware of this. We want to keep CONFIG_BOOT_ELF64 but I'm happy to turn CONFIG_BUILD_ELF64 off in the Debian kernel if Thiemo agrees.
Thanks for your response.
Signature · 2 lines
Martin Michlmayr http://www.cyrius.com/
Il giorno mer, 26/09/2007 alle 07.59 +0200, Martin Michlmayr ha scritto:
Quoted 8 lines · Atsushi Nemoto
Quoted 5 lines
I think this is solved on current git a few weeks ago by this commit (not mainlined yet):
Quoted 2 lines
Subject: [MIPS] Fix
CONFIG_BUILD_ELF64kernels with symbols in CKSEG0.
Gitweb: http://www.linux-mips.org/g/linux/db423f6eIt is just one liner and can be backported easily.
I put this into 2.6.22 and it works. Thanks a lot for the link.
I just checked that 2.6.23-rc8 include this patch, so I am going to try it.
Quoted 4 lines · Martin Michlmayr
IP32 kernels that are built with
CONFIG_BUILD_ELF64=yonly produce an exception when booted. This worked with 2.6.19 and before. I haven't had a chance to dig deep yet but it seems both Franck Bui-Huu and Atsushi Nemoto had patches in 2.6.20 that might have caused this.
I'm the culprit ;) but...
Quoted 6 lines
This still happens with 2.6.22. I cannot boot current git for other reasons.
If anyone has an idea which specific patch might have caused this, please let me know. Otherwise I'll try to find time in the next few days to revert various patches.
It's sad to see this issue is still not fixed. Some people complained about IPxx kernels broken by CONFIG_BUILD_ELF64 config but disappear once they reported the problem. Anyways, hopefully this time we could do a better job...
OK, it seems that Ralf's commit db423f6e86c3c4c70edf3eaf504e22c467b9f97c fixes your issue. But actually I think it just hides another problem. Because with CONFIG_BUILD_ELF64=y you claim to run a kernel with 64 bit symbols. However if the previous commit fixes your issue then it shows that your kernel handles a symbol linked in CKSEG0 although CONFIG_BUILD_ELF64 is set.
To verify this, could you apply the following patch _without_ Ralf's commit and report back the trace. You may need to enable early printk to see something and be sure CONFIG_KALLSYMS_ALL is set.
thanks,
Franck
-- 8< --
include/asm-mips/page.h +11 -2
@@ -149,8 +149,17 @@ typedef struct { unsigned long pgprot; } pgprot_t; __x <CKSEG0 ?XPHYSADDR (__x) :CPHYSADDR (__x); \ })#else -#define __pa (x) \ - ((unsigned long)(x) - PAGE_OFFSET + PHYS_OFFSET) +static inline unsigned long __pa (void *p) +{ +unsigned long x = (unsigned long )p; + +if (x >CKSEG0 -1 ) { +__print_symbol ("*** __pa: symbol in CKSEG0 found: %s\n" , x); +BUG (); + } + +return x -PAGE_OFFSET +PHYS_OFFSET ; +}#endif #define __va (x) ((void *)((unsigned long)(x) + PAGE_OFFSET - PHYS_OFFSET))#define __pa_symbol (x) __pa(RELOC_HIDE((unsigned long)(x),0))
Quoted 3 lines · Franck Bui-Huu
To verify this, could you apply the following patch _without_ Ralf's commit and report back the trace. You may need to enable early printk to see something and be sure
CONFIG_KALLSYMS_ALLis set.
5152902+253674 entry: 0x804ac000
Linux version 2.6.22-2-r5k-ip32 (2.6.22-5) (tbm@em64t) (gcc version 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)) #3 Wed Sep 26 09:10:31 UTC 2007
ARCH: SGI-IP32
PROMLIB: ARC firmware Version 1 Revision 10
CRIME id a rev 1 at 0x0000000014000000
CRIME MC: bank 0 base 0x0000000000000000 size 128MiB
CRIME MC: bank 1 base 0x0000000008000000 size 128MiB
CRIME MC: bank 2 base 0x0000000050000000 size 32MiB
CRIME MC: bank 3 base 0x0000000052000000 size 32MiB
CPU revision is: 00002321
FPU revision is: 00002310
Determined physical RAM map:
memory: 0000000010000000 @ 0000000000000000 (usable)
memory: 0000000004000000 @ 0000000050000000 (usable)
*** __pa: symbol in CKSEG0 found: wireless_nlevent_queue+0x20/0x20
Exception: <vector=Normal>
Status register: 0x34010082<CU1,CU0,FR,DE,IPL=8,KX,MODE=KERNEL> Cause register: 0x8024<CE=0,IP8,EXC=BREAK>
Exception PC: 0x804bbc2c, Exception RA: 0x804bbc2c
Breakpoint exception at address 0xbffffff7
Saved user regs in hex (&gpda 0x810617b8, &_regs 0x810619b8):
arg: 81070000 2f1 0 1
tmp: 81070000 8052bf70 a13fb518 81077d40 8052bf70 a13fba0c 810723b0 81054090
sve: 81070000 4015fa0c 0 4618fbd8 0 4047cfc7 0 3ebf5e51
t8 81070000 t9 0 at 0 v0 402003f7 v1 0 k1 46
gp 81070000 fp 0 sp 0 ra 0
PANIC: Unexpected exception
Signature · 2 lines
Martin Michlmayr http://www.cyrius.com/
Quoted 8 lines · Atsushi Nemoto
Quoted 6 lines · Martin Michlmayr
IP32 kernels that are built with
CONFIG_BUILD_ELF64=yonly produce an exception when booted. This worked with 2.6.19 and before. I haven't had a chance to dig deep yet but it seems both Franck Bui-Huu and Atsushi Nemoto had patches in 2.6.20 that might have caused this. This still happens with 2.6.22. I cannot boot current git for other reasons.
Quoted 4 lines
I think this is solved on current git a few weeks ago by this commit (not mainlined yet):
Quoted 1 line
Subject: [MIPS] Fix
CONFIG_BUILD_ELF64kernels with symbols in CKSEG0.
ISTR we kept 2 versions of __pa() for 64 bits kernels for micro-optimization reason. And I think it was a mistake...
Quoted 7 lines
Quoted 5 lines
Date: Tue, 11 Sep 2007 11:12:03 +0100
Author: Ralf Baechle <[email protected]> Tue Sep 11 08:50:40 2007 +0100
Commit:db423f6e86c3c4c70edf3eaf504e22c467b9f97c
Gitweb: http://www.linux-mips.org/g/linux/db423f6e
Branch: masterIt is just one liner and can be backported easily.
Hmm I didn't know about this change but I think it's a good one. It basically removes one CONFIG_BUILD_ELF64 dependency in the _code_ which is good. CONFIG_BUILD_ELF64=y makes the kernel code weak since the kernel will crash as soon as a CKSEG0 symbol will be encountered. And ISTR that the bootloader/firmware on some platforms doens't work with 64 bits symbols and objcopy is used after compiling the kernel for these reasons. But I'm really not sure...
So IMHO, we should just forget the 4 micro-optimizations associated with CONFIG_BUILD_ELF64 because it doesn't worth the pain it brings.
Quoted 3 lines
And The Franck's patchset is already in linux-queue tree of lmo so should be in 2.6.24.
Ah but as I suggested I think we should get rid of KBUILD_64BIT_SYM32 in the code. This patchset won't work if the kernel symbols are modified latter through objcopy or whatever...
What do you think ?
Franck
Quoted 5 lines · Martin Michlmayr
Quoted 3 lines · Franck Bui-Huu
To verify this, could you apply the following patch _without_ Ralf's commit and report back the trace. You may need to enable early printk to see something and be sure
CONFIG_KALLSYMS_ALLis set.
Quoted 16 lines
5152902+253674 entry:
0x804ac000
Linux version 2.6.22-2-r5k-ip32 (2.6.22-5) (tbm@em64t) (gcc version 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)) #3 Wed Sep 26 09:10:31 UTC 2007
ARCH: SGI-IP32
PROMLIB: ARC firmware Version 1 Revision 10
CRIME id a rev 1 at0x0000000014000000
CRIME MC: bank 0 base0x0000000000000000size 128MiB
CRIME MC: bank 1 base0x0000000008000000size 128MiB
CRIME MC: bank 2 base0x0000000050000000size 32MiB
CRIME MC: bank 3 base0x0000000052000000size 32MiB
CPU revision is: 00002321
FPU revision is: 00002310
Determined physical RAM map:
memory: 0000000010000000 @ 0000000000000000 (usable)
memory: 0000000004000000 @ 0000000050000000 (usable)
***__pa: symbol in CKSEG0 found:wireless_nlevent_queue+0x20/0x20
hmm it doesn't really help here. Could you print out the address value instead ?
Quoted 12 lines
Exception: <vector=Normal>
Status register: 0x34010082<CU1,CU0,FR,DE,IPL=8,KX,MODE=KERNEL> Cause register: 0x8024<CE=0,IP8,EXC=BREAK>
Exception PC:0x804bbc2c, Exception RA:0x804bbc2c
Breakpoint exception at address0xbffffff7
Saved user regs in hex (&gpda0x810617b8,&_regs0x810619b8):
arg: 81070000 2f1 0 1
tmp: 810700008052bf70a13fb51881077d408052bf70a13fba0c810723b081054090
sve: 810700004015fa0c04618fbd804047cfc703ebf5e51
t8 81070000 t9 0 at 0 v0402003f7v1 0 k1 46
gp 81070000 fp 0 sp 0 ra 0
Weird, all these symbols seem to be 32 bits ones...
Could you put somewhere your vmlinux you're actually running ?
thanks,
Franck
Quoted 6 lines · Franck Bui-Huu
Quoted 3 lines
memory: 0000000004000000 @ 0000000050000000 (usable)
***__pa: symbol in CKSEG0 found:wireless_nlevent_queue+0x20/0x20hmm it doesn't really help here. Could you print out the address value instead ?
*** __pa: symbol in CKSEG0 found: wireless_nlevent_queue+0x20/0x20 ffffffff8052bf70
Quoted 3 lines
Weird, all these symbols seem to be 32 bits ones...
Could you put somewhere your vmlinux you're actually running ?
http://merkel.debian.org/~tbm/tmp/vmlinux.32
Note that I'm using "make vmlinux.32"
Signature · 2 lines
Martin Michlmayr http://www.cyrius.com/
Quoted 6 lines · Martin Michlmayr
Quoted 3 lines
Weird, all these symbols seem to be 32 bits ones...
Could you put somewhere your vmlinux you're actually running ?
http://merkel.debian.org/~tbm/tmp/vmlinux.32
Note that I'm using "make vmlinux.32"
It should not matter here -- the build is done using the ELF32 or ELF64
file format according to CONFIG_BUILD_ELF64 and if you request a target like "vmlinux.32" or "vmlinux.64" the resulting "vmlinux" binary is converted to ELF32 or ELF64 respectively with objcopy' (which is equivalent to cp', barring oddities of `objcopy', if "vmlinux" is already of the "right" type).
Maciej
Quoted 10 lines · Maciej W. Rozycki
Quoted 5 lines · Martin Michlmayr
Quoted 3 lines
Weird, all these symbols seem to be 32 bits ones...
Could you put somewhere your vmlinux you're actually running ?
http://merkel.debian.org/~tbm/tmp/vmlinux.32
Note that I'm using "make vmlinux.32"It should not matter here -- the build is done using the ELF32 or ELF64
file format according toCONFIG_BUILD_ELF64and if you request a target
Except that if CONFIG_BUILD_ELF64 is set then we assume that the kernel is linked in XKPHYS which results in Martin's crash since his kernel is linked in CKSEG0.
If you can recall that was done for a micro-optimization in __pa() but it was a huge mistake because it relies on the configuration of BUILD_ELF64 to be setup correctly by the user... So in this case there's no point to set CONFIG_BUILD_ELF64='y' since it makes the kernel bigger and slower. But it used to work until my change, so my own fault.
Now it's going to be fixed in v2.6.23 by Ralf's commit.
Martin, can you live with CONFIG_BUILD_ELF64='n' for now ?
Franck
Quoted 1 line · Franck Bui-Huu
Martin, can you live with
CONFIG_BUILD_ELF64='n' for now ?
Yeah.
Signature · 2 lines
Martin Michlmayr http://www.cyrius.com/
Quoted 5 lines · Franck Bui-Huu
Ah but as I suggested I think we should get rid of
KBUILD_64BIT_SYM32in the code. This patchset won't work if the kernel symbols are modified latter through objcopy or whatever...What do you think ?
Well, KBUILD_64BIT_SYM32 in stackframe.h is in critical path.
And for KBUILD_64BIT_SYM32 in pgtable-64, I'm not sure non-sym32 module can work on CKSSEG. It might work but it seems XKSEG is more natural for non-sym32 module.
So now I'm happy with your patchset as is in linux-queue tree ;)
---
Atsushi Nemoto
Quoted 9 lines · Franck Bui-Huu
Except that if
CONFIG_BUILD_ELF64is set then we assume that the kernel is linked in XKPHYS which results in Martin's crash since his kernel is linked in CKSEG0.If you can recall that was done for a micro-optimization in
__pa()but it was a huge mistake because it relies on the configuration ofBUILD_ELF64to be setup correctly by the user... So in this case there's no point to setCONFIG_BUILD_ELF64='y' since it makes the kernel bigger and slower. But it used to work until my change, so my own fault.
While, as expressed previously, the assumption of CONFIG_BUILD_ELF64
meaning XKPHYS mapping is questionable, a requirement for the user to somehow magically know that the two became related somehow is unreasonable. Especially as in many cases people just copy an old .config over to a new version of the kernel and run `make oldconfig'; I have certainly not done anything else for years.
Given the dependency is quite straightforward it could have been sorted
out with a reverse dependency in Kconfig based on the load addresses specified in Makefile -- boring, but easily done. That assuming the failure of -msym32 resulting from the use of an older unsupported toolchain would be reported as fatal to the user, together with information of which versions are the minimum.
Of course requiring a different version of the toolchain based on whether
XKPHYS or KSEG0 mapping is used (i.e. newer for the latter!) is questionable too, but that is a different matter.
Maciej
Quoted 6 lines · Maciej W. Rozycki
Given the dependency is quite straightforward it could have been sorted
out with a reverse dependency inKconfigbased on the load addresses specified inMakefile-- boring, but easily done. That assuming the failure of -msym32 resulting from the use of an older unsupported toolchain would be reported as fatal to the user, together with information of which versions are the minimum.
Current linux-queue code adds -msym32 if the load address was CKSEG0, so it can not be compiled with gcc 3.x. I think this patch fixes the problem:
http://www.linux-mips.org/archives/linux-mips/2007-03/msg00404.html
---
Atsushi Nemoto
Quoted 5 lines · Atsushi Nemoto
Current linux-queue code adds -msym32 if the load address was CKSEG0, so it can not be compiled with gcc 3.x. I think this patch fixes the problem:
http://www.linux-mips.org/archives/linux-mips/2007-03/msg00404.html
It looks like it should -- why hasn't it been pushed?
Everybody please note that officially GCC 3.2 is the oldest version of
the compiler supported and based on recent activity we do care about it.
Maciej
Quoted 9 lines · Martin Michlmayr
Quoted 5 lines · Atsushi Nemoto
I think this is solved on current git a few weeks ago by this commit (not mainlined yet):
Quoted 2 lines
Subject: [MIPS] Fix
CONFIG_BUILD_ELF64kernels with symbols in CKSEG0.
Gitweb: http://www.linux-mips.org/g/linux/db423f6eIt is just one liner and can be backported easily.
I put this into 2.6.22 and it works. Thanks a lot for the link.
Quoted 7 lines
Quoted 3 lines
I still think
CONFIG_BUILD_ELF64=nis best choice. You can get smaller and faster kernel with this. Are there any reason to useCONFIG_BUILD_ELF64=yfor IP32?I don't know. All I know is that it's enabled in the Debian kernel for IP22 and IP32 and has broken the kernel. Thiemo, do you remember why this option is enabled in our kernels?
ISTR we needed this for older toolchains, it should be obsolete now (for ip32).
Thiemo
Quoted 10 lines · Maciej W. Rozycki
Quoted 5 lines · Atsushi Nemoto
Current linux-queue code adds -msym32 if the load address was CKSEG0, so it can not be compiled with gcc 3.x. I think this patch fixes the problem:
http://www.linux-mips.org/archives/linux-mips/2007-03/msg00404.html
It looks like it should -- why hasn't it been pushed?
I don't remember. I thought the last patchset had the fix.
Just to be sure I understand both of you correctly, could you confirm that in case of '-msym32' switch isn't supported, we should _silently_ drop this option ? That's what Atsushi was suggesting. But reading what Maciej wrote, it seems that we should notify the user...
Franck
Quoted 5 lines · Franck Bui-Huu
Just to be sure I understand both of you correctly, could you confirm that in case of '-msym32' switch isn't supported, we should _silently_ drop this option ? That's what Atsushi was suggesting. But reading what Maciej wrote, it seems that we should notify the user...
Wrong assumption. I have thought the "-msym32" option was wired straight
to CONFIG_BUILD_ELF64, which would be reasonable given what the configuration option is meant to be doing. From the code generation's point of view the "-msym32" option can be safely dropped silently, but that questions the CONFIG_BUILD_ELF64 option itself and I think we have agreed, not necessarily enthusiastically, but still, that CONFIG_BUILD_ELF64 will be dropped altogether.
Maciej
Quoted 20 lines · Franck Bui-Huu
From: Franck Bui-Huu <[email protected]>
Date: Thu, 27 Sep 2007 10:11:49 +0200
To: "Maciej W. Rozycki" <[email protected]>
CC: Atsushi Nemoto <[email protected]>, [email protected],
[email protected]
Subject: Re:CONFIG_BUILD_ELF64broken on IP32 since 2.6.20
Content-Type: text/plain; charset=ISO-8859-1Quoted 10 lines · Maciej W. Rozycki
Quoted 5 lines · Atsushi Nemoto
Current linux-queue code adds -msym32 if the load address was CKSEG0, so it can not be compiled with gcc 3.x. I think this patch fixes the problem:
http://www.linux-mips.org/archives/linux-mips/2007-03/msg00404.html
It looks like it should -- why hasn't it been pushed?
Quoted 7 lines
I don't remember. I thought the last patchset had the fix.
Just to be sure I understand both of you correctly, could you confirm that in case of '-msym32' switch isn't supported, we should _silently_ drop this option ? That's what Atsushi was suggesting. But reading what Maciej wrote, it seems that we should notify the user...
-msym32 and previously the strategy to tell the compiler to generate 64-bit code but the assembler to put it into 32-bit ELF was initially a hack to get around the lack of proper 64-bit binutils support and later turned into a neat optimization with significant code size savings. But it's really just an optimization so there is nothing wrong with just dropping the option (and whatever else goes along with it, I forgot all the nasty details) on the floor if due to a vintage compiler it can't be suported.
Ralf
Quoted 9 lines · Ralf Baechle
-msym32 and previously the strategy to tell the compiler to generate 64-bit code but the assembler to put it into 32-bit ELF was initially a hack to get around the lack of proper 64-bit binutils support and later turned into a neat optimization with significant code size savings. But it's really just an optimization so there is nothing wrong with just dropping the option (and whatever else goes along with it, I forgot all the nasty details) on the floor if due to a vintage compiler it can't be suported.
ok, I'll send a patch to reflect that.
Franck