Displaying 20 results from an estimated 4000 matches similar to: "lld/x86_64 linux elf invalid link_map"
2017 Feb 21
3
[lld] elf linker creates undefined empty symbol
Hi,
When running my own lld generated library/executable I'm getting:
LD_LIBRARY_PATH=. ./ConsoleApplication347
./ConsoleApplication347: symbol lookup error: ./ConsoleApplication347:
undefined symbol:
(theres nothing after undefined symbol)
How can I figure out what's I'm doing wrong?
Full log:
https://gist.github.com/carlokok/1dd510a16e1922271b520f1c00b14656
readelf -s for
2010 Jan 05
2
[LLVMdev] LLVM C bindings and Boehm GC
Hi,
I want to use LLVM as replacement code generator for an existing self
hosting compiler. I hope to replace the existing BURS code generator with
LLVM in order to take advantage of LLVM's JIT, optimizations and wider range
of targets. I'm planning on ditching my existing IR completely and using my
language's native call mechanism to call the LLVM C bindings.
I've got a couple
2017 Feb 22
2
[lld] elf linker creates undefined empty symbol
On Tue, Feb 21, 2017 at 2:05 PM, Rafael Avila de Espindola via llvm-dev <
llvm-dev at lists.llvm.org> wrote:
> Carlo Kok <ck at remobjects.com> writes:
>
> > On 2017-02-21 20:33, Rafael Avila de Espindola wrote:
> >>> Input files:
> >>> https://www.dropbox.com/s/8yn3dggx05atn47/binLinux.zip?dl=0
> >>
> >> If you pass --reproduce
2010 Jan 31
2
[LLVMdev] Boehm GC + static variables?
Hi,
I'm running LLVM bitcode generated by my compiler under lli. The bitcode is
linked against Boehm GC (lli -load=/usr/lib/libgc.so).
It looks like Boehm GC isn't scanning global variables and as a result
objects referenced only through globals are being prematurely collected. I
understand that Boehm GC needs to see the data segment containing my global
variables as a root. For native
2017 Dec 09
2
Reducing code size of Position Independent Executables (PIE) by shrinking the size of dynamic relocations section
* Rahul Chaudhry via gnu-gabi:
> The encoding used is a simple combination of delta-encoding and a
> bitmap of offsets. The section consists of 64-bit entries: higher
> 8-bits contain delta since last offset, and lower 56-bits contain a
> bitmap for which words to apply the relocation to. This is best
> described by showing the code for decoding the section:
>
> typedef
2017 Feb 21
3
[lld] elf linker creates undefined empty symbol
On 2017-02-21 20:33, Rafael Avila de Espindola wrote:
>> Input files:
>> https://www.dropbox.com/s/8yn3dggx05atn47/binLinux.zip?dl=0
>
> If you pass --reproduce foo.tar to lld it will create a foo.tar file
> with all that is needed to reproduce the link.
>
> Can you also share how you created the various .o files? If so I might
> be able to try reducing the issue.
2017 Feb 22
2
[lld] elf linker creates undefined empty symbol
Rafael, here is a repro.tar to look at: https://reviews.llvm.org/F3100177
The attached foo.diff adds a print which shows the issue.
```
NAME: sleep SYMINDEX: 2
NAME: sched_yield SYMINDEX: 1
NAME: __libc_start_main SYMINDEX: 0
```
`readelf --relocs` Shows that we create :
...
000000255110 002900000007 R_X86_64_JUMP_SLO 0000000000254410
__xstat at GLIBC_2.2.5 + 0
000000255118 001e00000007
2010 Jan 31
0
[LLVMdev] Boehm GC + static variables?
I've implemented this by adding calls to GC_add_roots(<first global in
module>,<last global in module>+1) to the llvm.global_ctors before any other
static initialization code for the module.
This should be safe assuming that:
- global variables are laid out in memory in the order they appear in their
module (and ideally contiguously without being interleaved with any other
values)
2010 Jan 31
1
[LLVMdev] Boehm GC + static variables?
You should look at
http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ExecutionEngine/JITMemoryManager.h?view=markup
and see if inheriting from that and overriding allocateGlobal() will
do what you want.
I'm a little surprised the boehm gc doesn't already see the globals,
since there's a reference to their memory from the JMM, but maybe it
doesn't scan mmap regions by
2016 Nov 27
3
llvm optimizer turning musttail into tail
r287955 seems like it might be related.
-- Sean Silva
On Sat, Nov 26, 2016 at 4:06 PM, Sean Silva <chisophugis at gmail.com> wrote:
> This sounds buggy to me. What pass is doing this?
>
> -- Sean Silva
>
> On Thu, Nov 24, 2016 at 5:39 AM, Carlo Kok via llvm-dev <
> llvm-dev at lists.llvm.org> wrote:
>
>>
>> I've got some calls like:
>>
2017 May 30
2
Missing symbol __executable_start on Android when linking with LLD
When linking a project with lld, the android libc links to
__executable_start
which isn't defined when linking with lld (tried on x86), but is when
linking with gnu ld it seems.
I tried:
.globl __executable_start
__executable_start = __ehdr_start
as a workaround but seems to be ignored.
Anyone know a better workaround?
Thanks,
--
Carlo Kok
RemObjects Software
2016 Nov 24
3
llvm optimizer turning musttail into tail
I've got some calls like:
musttail call void bitcast (i32 (i32, i8*, %Type*)* @MyMethod to void
(i32, i8*)*)(i32 %0, i8* %1)
ret void
Into something like:
%8 = tail call i32 @MyMethod(i32 %0, i8* %1, %Type* null)
ret void
I realize I'm losing a parameter there, but this is an interface jump
trick I use and relies on the end code being a 'jmp' (x86). I realize i
can probably
2017 Sep 18
5
Interleaved debug info on arm
When compiling code with lld -O0 --lto-O0 --eh-frame-hdr I get strange interleaved line info all
over the place:
...
0x00000000000595ac 22 11 1 0 0 is_stmt
0x00000000000595bc 25 7 1 0 0 is_stmt <<<
0x00000000000595c0 22 11 1 0 0 is_stmt
0x00000000000595c4 25 7 1 0 0 is_stmt <<<
0x00000000000595c8 26 7 1 0 0 is_stmt
but the code only has 1 reference to line 25 and the
2017 May 30
2
Missing symbol __executable_start on Android when linking with LLD
Android libc casts its address to the elf header type. So I think start of text?
Rafael Avila de Espindola <rafael.espindola at gmail.com> schreef op 30 mei 2017 20:51:19 CEST:
>It is missing from lld.
>
>Do you know what it should point to? The first executable PT_LOAD?
>
>Thanks,
>Rafael
>
>Carlo Kok via llvm-dev <llvm-dev at lists.llvm.org> writes:
>
2014 Sep 15
2
[LLVMdev] codeview debug info in Visual Studio
Hi,
Is there any way to debug the codeview output of llvm from within Visual
Studio?
I want to use the codeview line info debug output of clang/llvm. I tried
with the
x86_64-pc-windows-msvc and i686-pc-windows-msvc triples and linking it
into an
existing project with VC++ from within the IDE and outside with link
/debug.
Neither option lets me debug with Visual Studio as debugger host.
2014 Sep 15
2
[LLVMdev] codeview debug info in Visual Studio
On Mon, 15 Sep 2014 19:33:42 +0200, Timur Iskhodzhanov
<timurrrr at google.com> wrote:
> Basically, see my patches to LLVM from early 2014 -- they include tests,
> a DI generator and a DI dumper. I'd be happy to review your patches too!
Thanks. Looks like it's likely that it's one of the 0xF1 sections, the
first one always has the object file name and what seems
2010 Sep 17
6
[LLVMdev] Accurate garbage collection
On 17/09/10 09:55, Pedro Ferreira wrote:
> As I understand it, LLVM simply gives you support for garbage collectors
> that you have to implement yourself and link into the final binary,
> similar to what C's malloc does (it's a library call). The issue with
> GC's is that they need to be provided info about the stack, thats where
> LLVM's support comes in.
Are there
2018 Mar 21
3
lld/lto/win32 crash on DIE code
Thanks!
Unfortunately this doesn't seem to cause it, because when I fix it to
match the other files (and pretty much how clang emits it:)
!0 = !DIGlobalVariableExpression(var: !1, expr: !DIExpression())
!1 = !DIGlobalVariable(name: "IDispatch_UID", linkageName:
"f_t2b_RemObjects_d_Elements_d_System_d_____Global.IDispatchUID", scope:
!2, file: !3, type: !622, isLocal:
2017 Apr 26
2
no-frame-pointer-elim & optimized
On 2017-04-26 19:56, Eric Christopher wrote:
> That's really weird. I'm quite surprised that the entry block was moved
> so much later in the function but haven't had a chance to look more at
> it. Probably want to take a look and find out where that's happening and
> why.
From irc, thegameg helped me find the -enable-shrink-wrap=false, which
"fixes" this,
2016 Jun 01
2
linkonce_odr & coff
I have @_rtti_a_a = linkonce_odr constant in two files that end up as
coff object files. Shoudln't the linkonce_odr prevent duplicate symbol:
__rtti_a_a \consoleapplication149.o and __rtti_a_a island.lib(island.o)
from happening in LLD?
If not what alternative can I use? THis is used for template like
generics, so having duplicate functions and globals is going to happen a
lot)
(Side