Skip to contentSkip to conversation

aarch64-linux-gnu-ld: warning: orphan section `.eh_frame' from `security/keys/trusted-keys/tpm2key.asn1.o' being placed in section `.eh_frame'

DISCUSSION Nathan Chancellor 2 participants 2 messages Jan 29, 2021 – Jan 31, 2021 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): aa8e8553c1e94e2b2225aa66557f6a49886b0203.camel@HansenPartnership.com

#1 lore raw
Quoted 33 lines · James Bottomley
Quoted 32 lines · kernel test robot

tree:
https://github.com/0day-ci/linux/commits/UPDATE-20210129-183238/James-Bottomley/TPM-2-0-trusted-key-rework/20210129-175906

head:   d98ce41d6c32fa78e380385c6e146f752e4d3809
commit: af175fe469c6f0bdd1e14a14a3d107e7adb122bb security: keys:
trusted: use ASN.1 TPM2 key format for the blobs
date:   4 hours ago
config: arm64-randconfig-r023-20210129 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project

275c6af7d7f1ed63a03d05b4484413e447133269) reproduce (this is a W=1 build):
wget
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross
-O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install arm64 cross compiling tool for clang build # apt-get install binutils-aarch64-linux-gnu #
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=af175fe469c6f0bdd1e14a14a3d107e7adb122bb
git remote add linux-review
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git

        git fetch --no-tags linux-review UPDATE-20210129-

183238/James-Bottomley/TPM-2-0-trusted-key-rework/20210129-175906
git checkout af175fe469c6f0bdd1e14a14a3d107e7adb122bb # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross
ARCH=arm64

If you fix the issue, kindly add following tag as appropriate

All warnings (new ones prefixed by >>):

Quoted 8 lines
Quoted 2 lines

aarch64-linux-gnu-ld: warning: orphan section `.eh_frame' from
fs/dlm/rcom.o' being placed in section .eh_frame'

What's the problem here? the file you're complaining about is pure machine generated so I can't alter its .c anyway and this looks like some type of linker problem anyway.

Let's start with what does the error actually mean?

Unfortunately, this is a clang bug:
https://github.com/ClangBuiltLinux/linux/issues/1069

$ curl -LSs https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org/message/OWC2ZF3C6UTA6ND74UJVSJ4BRRKFGJKC/attachment/2/config.gz | gzip -d | rg "GCOV"
# GCOV-based kernel profiling
CONFIG_GCOV_KERNEL=y
CONFIG_ARCH_HAS_GCOV_PROFILE_ALL=y
CONFIG_GCOV_PROFILE_ALL=y
# end of GCOV-based kernel profiling

I will try to send out that workaround today so that we stop pinging developers about it (and it would be nice if the 0day folks could just send warnings of this nature to our mailing list only).

Cheers,
Nathan

#2 lore raw
Quoted 53 lines · Nathan Chancellor
Quoted 33 lines · James Bottomley
Quoted 32 lines · kernel test robot

tree:
https://github.com/0day-ci/linux/commits/UPDATE-20210129-183238/James-Bottomley/TPM-2-0-trusted-key-rework/20210129-175906

head:   d98ce41d6c32fa78e380385c6e146f752e4d3809
commit: af175fe469c6f0bdd1e14a14a3d107e7adb122bb security: keys:
trusted: use ASN.1 TPM2 key format for the blobs
date:   4 hours ago
config: arm64-randconfig-r023-20210129 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project

275c6af7d7f1ed63a03d05b4484413e447133269) reproduce (this is a W=1 build):
wget
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross
-O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install arm64 cross compiling tool for clang build # apt-get install binutils-aarch64-linux-gnu #
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=af175fe469c6f0bdd1e14a14a3d107e7adb122bb
git remote add linux-review
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git

        git fetch --no-tags linux-review UPDATE-20210129-

183238/James-Bottomley/TPM-2-0-trusted-key-rework/20210129-175906
git checkout af175fe469c6f0bdd1e14a14a3d107e7adb122bb # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross
ARCH=arm64

If you fix the issue, kindly add following tag as appropriate

All warnings (new ones prefixed by >>):

Quoted 8 lines
Quoted 2 lines

aarch64-linux-gnu-ld: warning: orphan section `.eh_frame' from
fs/dlm/rcom.o' being placed in section .eh_frame'

What's the problem here? the file you're complaining about is pure machine generated so I can't alter its .c anyway and this looks like some type of linker problem anyway.

Let's start with what does the error actually mean?

Unfortunately, this is a clang bug:
https://github.com/ClangBuiltLinux/linux/issues/1069

$ curl -LSs https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org/message/OWC2ZF3C6UTA6ND74UJVSJ4BRRKFGJKC/attachment/2/config.gz | gzip -d | rg "GCOV"
# GCOV-based kernel profiling
CONFIG_GCOV_KERNEL=y
CONFIG_ARCH_HAS_GCOV_PROFILE_ALL=y
CONFIG_GCOV_PROFILE_ALL=y
# end of GCOV-based kernel profiling
Quoted 3 lines

I will try to send out that workaround today so that we stop pinging developers about it (and it would be nice if the 0day folks could just send warnings of this nature to our mailing list only).

Got it Nathan, we will send this warning to clang mailing list only.

Quoted 6 lines

Cheers,
Nathan
_______________________________________________
kbuild-all mailing list -- kbuild-all(a)lists.01.org To unsubscribe send an email to kbuild-all-leave(a)lists.01.org