* Build error due to commit 8ab2ae655b ("default exported asm symbols to zero")
@ 2016-12-05 21:23 Guenter Roeck
2016-12-05 22:12 ` Linus Torvalds
0 siblings, 1 reply; 2+ messages in thread
From: Guenter Roeck @ 2016-12-05 21:23 UTC (permalink / raw)
To: linux-kernel, Arnd Bergmann; +Cc: Adam Borowski, Linus Torvalds
Hi Arnd,
commit 8ab2ae655bf ("default exported asm symbols to zero") results
in the following build error when building alpha:allmodconfig.
arch/alpha/lib/callback_srm.S: Assembler messages:
arch/alpha/lib/callback_srm.S:97: Warning:
Tried to .set unrecognized mode `__crc_callback_getenv'
arch/alpha/lib/callback_srm.S:97: Error:
junk at end of line, first unrecognized character is `,'
arch/alpha/lib/callback_srm.S:98: Warning:
Tried to .set unrecognized mode `__crc_callback_setenv'
arch/alpha/lib/callback_srm.S:98: Error:
junk at end of line, first unrecognized character is `,'
arch/alpha/lib/callback_srm.S:99: Warning:
Tried to .set unrecognized mode `__crc_callback_save_env'
arch/alpha/lib/callback_srm.S:99: Error:
junk at end of line, first unrecognized character is `,'
I tried with the 4.6.3 toolchain from kernel.org (binutils 2.22)
and with a self-built toolchain based on gcc 5.1.0 and binutils 2.24.
Guenter
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Build error due to commit 8ab2ae655b ("default exported asm symbols to zero")
2016-12-05 21:23 Build error due to commit 8ab2ae655b ("default exported asm symbols to zero") Guenter Roeck
@ 2016-12-05 22:12 ` Linus Torvalds
0 siblings, 0 replies; 2+ messages in thread
From: Linus Torvalds @ 2016-12-05 22:12 UTC (permalink / raw)
To: Guenter Roeck; +Cc: Linux Kernel Mailing List, Arnd Bergmann, Adam Borowski
On Mon, Dec 5, 2016 at 1:23 PM, Guenter Roeck <linux@roeck-us.net> wrote:
>
> commit 8ab2ae655bf ("default exported asm symbols to zero") results
> in the following build error when building alpha:allmodconfig.
>
> arch/alpha/lib/callback_srm.S: Assembler messages:
> arch/alpha/lib/callback_srm.S:97: Warning:
> Tried to .set unrecognized mode `__crc_callback_getenv'
> arch/alpha/lib/callback_srm.S:97: Error:
> junk at end of line, first unrecognized character is `,'
Christ on a stick!
This binutils modversion problem is just _incredibly_ annoying.
I think the problem is that on alpha, ".set" is used for various
random attributes, like "noat" and "noreorder".
Hmm. Looking at what the C __kcrctab_ output is, it looks like this
for me (picking one at random):
.section ___kcrctab+blk_set_runtime_active,"a",@progbits
.align 8
.type __kcrctab_blk_set_runtime_active, @object
.size __kcrctab_blk_set_runtime_active, 8
__kcrctab_blk_set_runtime_active:
.quad __crc_blk_set_runtime_active
and I wonder if we should just try to emulate that as closely as possible?
For example, why does the asm code use ".weak" for the kcrctab entry?
None of the other entries do that. Maybe just removing the .weak (and
the .set) would fix things?
Over to Arnd, who presumably knows more than he ever really wanted to
know about those nasty crc entries.. Ideas?
Linus
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-12-05 22:12 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-12-05 21:23 Build error due to commit 8ab2ae655b ("default exported asm symbols to zero") Guenter Roeck
2016-12-05 22:12 ` Linus Torvalds
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox