Quantcast
Channel: Intel® Software - Intel® C++ Compiler
Viewing all articles
Browse latest Browse all 1175

Wrong section alignments on linux ELF cause linking problems

$
0
0

We wanted to use the LLVM LLD linker, but it complains about an incorrect section alignment emitted by ICPC. Here is my corresponding bug report to LLVM: https://bugs.llvm.org/show_bug.cgi?id=35854 . It turns out the bug apparently is within the Intel Compiler. Quoting my bugreport:

 

"

I would like to raise this as a feature request for compatibility with GNU LD: LD supports unaligned sections in object files, which are created at least by the Intel ICC compiler and prevents us to adopt LLD in our build.

   ld: error: .../_moc_mainwindow.o: unaligned data

Further investigation shows

   ~/usr/bin/llvm-readelf -relocations _moc_mainwindow.o

    Relocation section '.rel.data' at offset 0x2546f contains 1 entries:
     Offset     Info    Type                Sym. Value  Symbol's Name

    Error reading file: unaligned data
    .

This works with GNU LD and GNU GOLD

"

 

ICC Version:

icpc (ICC) 15.0.3 20150407

Copyright (C) 1985-2015 Intel Corporation.  All rights reserved.


Viewing all articles
Browse latest Browse all 1175

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>