【问题标题】:Linux 2.6.24 kernel compilation error .size expression for copy_user_generic_c does not evaluate to a constantLinux 2.6.24 内核编译错误 copy_user_generic_c 的 .size 表达式不会计算为常量
【发布时间】:2014-04-21 09:47:13
【问题描述】:

在编译 Linux 2.6.24 内核时出现错误

  CHK     include/linux/version.h
  CHK     include/linux/utsrelease.h
  CALL    scripts/checksyscalls.sh
  CHK     include/linux/compile.h
  AS      arch/x86/lib/copy_user_64.o
  /tmp/ccAD8iYi.s: Assembler messages:
  /tmp/ccAD8iYi.s: Error: .size expression for copy_user_generic_c does not evaluate to a constant
make[1]: *** [arch/x86/lib/copy_user_64.o] Error 1
make: *** [arch/x86/lib] Error 2
make: *** Waiting for unfinished jobs....

我正在使用 gcc 版本:gcc (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3 我在编译 Linux 3.12 内核时没有遇到任何错误。

【问题讨论】:

标签: linux linux-kernel


【解决方案1】:

你应该找到 arch/x86/lib/copy_user_64.S ,将文件中的 END(copy_user_generic_c) 更改为 END(copy_user_generic_string) ,以在 ENTRY(copy_user_generic_string) 中保留相同的变量。

【讨论】:

    猜你喜欢
    • 2013-10-16
    • 2018-04-19
    • 2022-11-15
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-02-28
    • 1970-01-01
    相关资源
    最近更新 更多