[lld] r247487 - Start adding support for creating shared libraries.
Rafael EspĂndola via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 14 12:04:14 PDT 2015
Should be fixed in r247599.
On 14 September 2015 at 14:28, Davide Italiano <davide at freebsd.org> wrote:
> On Fri, Sep 11, 2015 at 3:42 PM, Rafael Espindola via llvm-commits
> <llvm-commits at lists.llvm.org> wrote:
>> Author: rafael
>> Date: Fri Sep 11 17:42:45 2015
>> New Revision: 247487
>>
>> URL: http://llvm.org/viewvc/llvm-project?rev=247487&view=rev
>> Log:
>> Start adding support for creating shared libraries.
>>
>
> Hi,
> shared.s segfaults on my machine (FreeBSD). The buildbot didn't
> complain tho, so it may just be a local problem. Anyway, maybe more
> careful investigation is due.
>
> % /exps/llvm-lld/build/bin/lld -flavor gnu2 -shared
> /exps/llvm-lld/build/tools/lld/test/elf2/Output/shared.s.tmp2.o -o
> /exps/llvm-lld/build/tools/lld/test/elf2/Output/shared.s.tmp2.so
> Segmentation fault (core dumped)
>
> Program received signal SIGSEGV, Segmentation fault.
> [Switching to Thread 805c06400 (LWP 101406)]
> 0x000000000271e916 in void llvm::support::endian::write<unsigned int,
> (llvm::support::endianness)1, 2ul>(void*, unsigned int) ()
> (gdb) bt
> #0 0x000000000271e916 in void llvm::support::endian::write<unsigned
> int, (llvm::support::endianness)1, 2ul>(void*, unsigned int) ()
> #1 0x000000000271e63b in
> llvm::support::detail::packed_endian_specific_integral<unsigned int,
> (llvm::support::endianness)1, 2ul>::operator=(unsigned int) ()
> #2 0x00000000027143aa in (anonymous
> namespace)::SymbolTableSection<llvm::object::ELFType<(llvm::support::endianness)1,
> false> >::writeTo(unsigned char*) ()
> #3 0x0000000002711737 in (anonymous
> namespace)::Writer<llvm::object::ELFType<(llvm::support::endianness)1,
> false> >::writeSections() ()
> #4 0x00000000026ec16e in (anonymous
> namespace)::Writer<llvm::object::ELFType<(llvm::support::endianness)1,
> false> >::run() ()
> #5 0x0000000002714bce in void
> lld::elf2::writeResult<llvm::object::ELFType<(llvm::support::endianness)1,
> false> >(lld::elf2::SymbolTable*) ()
> #6 0x00000000026c01a9 in
> lld::elf2::LinkerDriver::link(llvm::ArrayRef<char const*>) ()
> #7 0x00000000026be945 in lld::elf2::link(llvm::ArrayRef<char const*>) ()
> #8 0x0000000000408626 in
> lld::UniversalDriver::link(llvm::MutableArrayRef<char const*>,
> llvm::raw_ostream&) ()
> #9 0x00000000004080d1 in main ()
More information about the llvm-commits
mailing list