[lld] [ELF] Merge copyLocalSymbols and demoteLocalSymbolsInDiscardedSections (PR #69425)

Paul Kirth via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 18 09:18:40 PDT 2023


ilovepi wrote:

hmm, seems like I copied a truncated log message from the bot diagnostic. This should be the full output.

```
FAILED: kernel_x64/zircon.elf kernel_x64/zircon.elf.map kernel_x64/zircon.elf.build-id.stamp 
../../prebuilt/third_party/clang/custom/bin/clang++ -o kernel_x64/zircon.elf -Wl,-T,../../zircon/kernel/kernel.ld -Wl,--emit-relocs -g3 -gdwarf-4 -gz=zstd -fdata-sections -ffunction-sections -Wl,--gc-sections -O2 -fno-exceptions -fno-rtti -ffile-compilation-dir=. -no-canonical-prefixes -fuse-ld=lld -Wl,-z,relro --target=x86_64-fuchsia -fcolor-diagnostics -Wl,--color-diagnostics -fcrash-diagnostics-dir=clang-crashreports -fcrash-diagnostics=all -gen-reproducer=error -Wl,--icf=all -nostdlib -static -Wl,--no-pie -fno-exceptions -fdata-sections -fno-omit-frame-pointer -fno-omit-frame-pointer -fdata-sections -ffunction-sections -Wl,--gc-sections -Wl,-defsym,KERNEL_BASE=0xffffffff80100000 -Wl,-defsym,SMP_MAX_CPUS=32 -Wl,-defsym,BOOT_HEADER_SIZE=0x50 -Wl,--dependency-file=kernel_x64/zircon.elf.d -Wl,-Map,kernel_x64/zircon.elf.map -Wl,--start-group '@kernel_x64/zircon.elf.rsp' ../../src/lib/elfldltl/self-base.ld -Wl,--end-group  && ../../prebuilt/tools/buildidtool/linux-x64/buildidtool -build-id-dir ".build-id" -stamp "kernel_x64/zircon.elf.build-id.stamp" -entry "=kernel_x64/zircon.elf" -entry ".debug=kernel_x64/zircon.elf"
ld.lld: lld/ELF/InputSection.cpp:438: void lld::elf::InputSection::copyRelocations(uint8_t *, llvm::iterator_range<RelIt>) [ELFT = llvm::object::ELFType<llvm::endianness::little, true>, RelTy = llvm::object::Elf_Rel_Impl<llvm::object::ELFType<llvm::endianness::little, true>, true>, RelIt = llvm::mapped_iterator<const llvm::object::Elf_Rel_Impl<llvm::object::ELFType<llvm::endianness::little, true>, true> *, MapRel>]: Assertion `section->isLive()' failed.
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace.
ld.lld: lld/ELF/InputSection.cpp:438: void lld::elf::InputSection::copyRelocations(uint8_t *, llvm::iterator_range<RelIt>) [ELFT = llvm::object::ELFType<llvm::endianness::little, true>, RelTy = llvm::object::Elf_Rel_Impl<llvm::object::ELFType<llvm::endianness::little, true>, true>, RelIt = llvm::mapped_iterator<const llvm::object::Elf_Rel_Impl<llvm::object::ELFType<llvm::endianness::little, true>, true> *, MapRel>]: Assertion `section->isLive()' failed.
clang++: error: unable to execute command: Aborted
clang++: error: ld.lld command failed due to signal (use -v to see invocation)
Fuchsia clang version 18.0.0 (https://llvm.googlesource.com/llvm-project 6971081cefdc498ed474182cc06aec68b007955c)
Target: x86_64-unknown-fuchsia
Thread model: posix
InstalledDir: ../../prebuilt/third_party/clang/custom/bin
clang++: note: diagnostic msg: 
```

https://github.com/llvm/llvm-project/pull/69425


More information about the llvm-commits mailing list