Displaying 20 results from an estimated 29 matches for "libhello".
2017 Apr 27
2
ld.lld on MacOS question
..., stub runtime: dyld_stub_binder, _main, etc. Using the flag
-undefined dynamic_lookup
I get no errors or warnings but then when I try to link the shared library to a main program I get the error:
ld: malformed dylib has MH_NO_REEXPORTED_DYLIBS flag
but no LC_REEXPORT_DYLIB load commands: ./libhello.dylib file './libhello.dylib'
I’ve included the shell file that makes the hello shared lib and the command that I use to link the file.
Thanks for any help, this looks like an amazing solution if it can get to work on all supported platforms.
Kind regards,
Peter Kriens
$ /usr/local/Ce...
2017 Apr 27
1
ld.lld on MacOS question
..., _main, etc. Using the flag
>
> -undefined dynamic_lookup
>
> I get no errors or warnings but then when I try to link the shared library
> to a main program I get the error:
>
> ld: malformed dylib has MH_NO_REEXPORTED_DYLIBS flag
> but no LC_REEXPORT_DYLIB load commands: ./libhello.dylib file
> './libhello.dylib'
>
> I’ve included the shell file that makes the hello shared lib and the
> command that I use to link the file.
>
> Thanks for any help, this looks like an amazing solution if it can get to
> work on all supported platforms.
>
> Kin...
2017 May 11
2
ld.lld on MacOS question
...main, etc. Using the flag
>
> -undefined dynamic_lookup
>
> I get no errors or warnings but then when I try to link the shared library to a main program I get the error:
>
> ld: malformed dylib has MH_NO_REEXPORTED_DYLIBS flag
> but no LC_REEXPORT_DYLIB load commands: ./libhello.dylib file './libhello.dylib'
>
> I’ve included the shell file that makes the hello shared lib and the command that I use to link the file.
>
> Thanks for any help, this looks like an amazing solution if it can get to work on all supported platforms.
>
> Kind regards,
&...
2017 May 06
0
ld.lld on MacOS question
...;>
>> -undefined dynamic_lookup
>>
>> I get no errors or warnings but then when I try to link the shared
>> library to a main program I get the error:
>>
>> ld: malformed dylib has MH_NO_REEXPORTED_DYLIBS flag
>> but no LC_REEXPORT_DYLIB load commands: ./libhello.dylib file
>> './libhello.dylib'
>>
>> I’ve included the shell file that makes the hello shared lib and the
>> command that I use to link the file.
>>
>> Thanks for any help, this looks like an amazing solution if it can get to
>> work on all suppor...
2003 Jul 09
2
[LLVMdev] writing a pass
...'? You may have specified './configure --enable-optimized'
> or the like, with the save effects as in #2.
Yes, that's it. I should probably disable optimized builds for now
anyway.
> I'm assuming that the file `hello.so' does in fact exist.
Not that I saw. 'libhello.so' does exist though. It's a link to
'libhello.so.0.0.0' in the same directory. Also, 'libhello.so.0' in the
same directory is a link to 'libhello.so.0.0.0'. There is also
'libhello.a', 'libhello.la', and 'hello.o'.
> Did you register...
2017 May 12
2
ld.lld on MacOS question
...gt;>
>> -undefined dynamic_lookup
>>
>> I get no errors or warnings but then when I try to link the shared library to a main program I get the error:
>>
>> ld: malformed dylib has MH_NO_REEXPORTED_DYLIBS flag
>> but no LC_REEXPORT_DYLIB load commands: ./libhello.dylib file './libhello.dylib'
>>
>> I’ve included the shell file that makes the hello shared lib and the command that I use to link the file.
>>
>> Thanks for any help, this looks like an amazing solution if it can get to work on all supported platforms.
>>...
2003 Jul 09
2
[LLVMdev] writing a pass
Hi,
I'm having a problem with opt. According to the "Writing an LLVM Pass"
tutorial, all I have to do to get the Hello pass to work is:
cd ${LLVM_HOME}/llvm/lib/Transforms/Hello
gmake
cd $MYTEST
opt -load ${OBJ_ROOT}/lib/Release/libhello.so -hello < something.bc > /dev/null
First (just as a friendly reminder), someone may want to go back and
double check a bunch of the command lines given in these tutorials. It
looks like the opt tool, for instance, doesn't take its input from STDIN.
Also, I don't have a Debug subdi...
2017 May 16
1
ld.lld on MacOS question
...t;>> I get no errors or warnings but then when I try to link the shared
>>>>> library to a main program I get the error:
>>>>>
>>>>> ld: malformed dylib has MH_NO_REEXPORTED_DYLIBS flag
>>>>> but no LC_REEXPORT_DYLIB load commands: ./libhello.dylib file
>>>>> './libhello.dylib'
>>>>>
>>>>> I’ve included the shell file that makes the hello shared lib and the
>>>>> command that I use to link the file.
>>>>>
>>>>> Thanks for any help, this loo...
2007 Apr 13
3
[LLVMdev] [llvm-commits] CVS: llvm/lib/Transforms/Hello/Makefile
...Devang Patel wrote:
>> And this brings back CommandLine Error: Arugment blah defined more
>> than once!
>>
>> And without this, opt -load .../LLVMHello.dylib -hello does not work
>> on Darwin because dyld is not able to find SlowerOperationInformer ;)
>
> I think libhello should drop its use of SlowOperationInformer.
That'll fix Hello example. However, anyone trying to load their custom
pass will likely to run into this again.
-
Devang
2007 Apr 13
0
[LLVMdev] [llvm-commits] CVS: llvm/lib/Transforms/Hello/Makefile
On Fri, 13 Apr 2007, Devang Patel wrote:
>> I think libhello should drop its use of SlowOperationInformer.
>
> That'll fix Hello example. However, anyone trying to load their custom
> pass will likely to run into this again.
It is a long-standing issue. The deal is that libsupport (and many
others) are .a files. If one of the .o files in the...
2018 Jan 04
0
FunctionPass failing with undefined symbol
I am trying sample Hello.cpp FunctionPass but while executing observing
following error:
Error opening './libHello.so': ./libHello.so: undefined symbol:
_ZNK4llvm12FunctionPass17createPrinterPassERNS_11raw_ostreamERKNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEE
Steps:
1. clang++ -fPIC -shared -o libHello.so -o libHello.so Hello.o
2. clang++ -emit-llvm test.cpp -c -o test.bc
3. opt -lo...
2017 Feb 04
2
Wrong relocation emitted when building shared libraries with Control Flow Integrity
...tr)(void*);
int getval(freeptr fp) {
void *m = malloc(sizeof(int));
if(m) {
fp(m);
}
return 42;
}
int export() {
printf("Test: %d\n", getval(free));
return 0;
}
---
--- command line ---
clang-3.9 -shared -fuse-ld=gold -flto -fsanitize=cfi-icall -fPIC -o libhello.so hello.c
---
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3970 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20170204/f942d372/attachment.bin>
2002 Sep 12
1
[LLVMdev] trouble using hello transformation
I must be doing something dumb, but I'm having trouble running the
example hello transformation. It is printing "pure virtual method
called." All I am doing is checking out a new llvm, compiling it with
gmake -k, compiling Hello with gmake, and running:
opt -load ../../../lib/Debug/libhello.so -hello < hello.bc > /dev/null
where hello.bc is the hello world program.
From gdb, it seems to be breaking in VMCore/PassManagerT.h:217
where it invokes runPass(P, M). Any help whatsoever would be much
appreciated. Thank you in advance.
________________________________________________...
2003 Jul 09
0
[LLVMdev] writing a pass
...Rizzolo wrote:
> I'm having a problem with opt. According to the "Writing an LLVM Pass"
> tutorial, all I have to do to get the Hello pass to work is:
>
> cd ${LLVM_HOME}/llvm/lib/Transforms/Hello
> gmake
> cd $MYTEST
> opt -load ${OBJ_ROOT}/lib/Release/libhello.so -hello < something.bc > /dev/null
That's pretty much it, assuming a couple of prerequisites, see below.
> First (just as a friendly reminder), someone may want to go back and
> double check a bunch of the command lines given in these tutorials. It
> looks like the opt tool,...
2003 Jul 09
0
[LLVMdev] writing a pass
...or x86? I'd like to know in order to try to
reproduce your error.
Also, can you send us a copy of the bytecode file that you are using as
input to opt?
One thing that I found odd is that opt cannot use a library name unless
it is an absolute or relative path. For example,
opt -load ./libhello.so
works, but
opt -load libhello.so
does not (although it seems to give an error message instead of failing
quietly).
If you could send us the above information, that'd be great.
Thanks.
-- John T.
--
*********************************************************************
* John T....
2007 Apr 13
0
[LLVMdev] [llvm-commits] CVS: llvm/lib/Transforms/Hello/Makefile
On Fri, 13 Apr 2007, Devang Patel wrote:
> And this brings back CommandLine Error: Arugment blah defined more
> than once!
>
> And without this, opt -load .../LLVMHello.dylib -hello does not work
> on Darwin because dyld is not able to find SlowerOperationInformer ;)
I think libhello should drop its use of SlowOperationInformer.
-Chris
> On Apr 13, 2007, at 11:28 AM, Devang Patel wrote:
>
>>
>>
>> Changes in directory llvm/lib/Transforms/Hello:
>>
>> Makefile updated: 1.7 -> 1.8
>> ---
>> Log message:
>>
>> Hello...
2004 Aug 06
1
[LLVMdev] Why I cannot use PgmDependenceGraph?
...Transforms/Hello.cpp:
1.insert #include "llvm/Analysis/PgmDependenceGraph.h" in Hello.cpp.
2.insert AU.addRequired<PgmDependenceGraph>() in the getAnalysisUsage(AnalysisUsage &AU) of Hello2.
3.made the hello pass, it passed.
4.do "opt -load /llvm/lib/Debug/libhello.so -hello2 helloTheWorld.bc", and opt gives me:
opt[0x85aaab8]
opt[0x85aacc4]
/lib/tls/libc.so.6[0x420275c8]
opt(std::vector<__gnu_cxx::_Hashtable_node<std::pair<llvm::Value* const, llvm::]
opt(__gnu_cxx::hashtable<std::pair<llvm::Value* const, llvm::DSNodeHandle>, llv]
opt(...
2007 Apr 13
2
[LLVMdev] [llvm-commits] CVS: llvm/lib/Transforms/Hello/Makefile
Chris,
On Fri, 2007-04-13 at 12:39 -0700, Chris Lattner wrote:
> On Fri, 13 Apr 2007, Devang Patel wrote:
> >> I think libhello should drop its use of SlowOperationInformer.
> >
> > That'll fix Hello example. However, anyone trying to load their custom
> > pass will likely to run into this again.
>
> It is a long-standing issue. The deal is that libsupport (and many
> others) are .a files....
2007 Apr 13
2
[LLVMdev] [llvm-commits] CVS: llvm/lib/Transforms/Hello/Makefile
And this brings back CommandLine Error: Arugment blah defined more
than once!
And without this, opt -load .../LLVMHello.dylib -hello does not work
on Darwin because dyld is not able to find SlowerOperationInformer ;)
thoughts ?
-
Devang
On Apr 13, 2007, at 11:28 AM, Devang Patel wrote:
>
>
> Changes in directory llvm/lib/Transforms/Hello:
>
> Makefile updated: 1.7 ->
2004 Jun 19
2
[LLVMdev] Problems loading passes on Mac OS X
...any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
======= Finished building hello dynamic debug library =======
Linking hello.o
% opt -load ../../Debug/libhello.dylib -hello
Unknown command line argument '-hello'. Try: 'opt --help'
% g++ -v
Reading specs from /usr/libexec/gcc/darwin/ppc/3.3/specs
Thread model: posix
gcc version 3.3 20030304 (Apple Computer, Inc. build 1495)
% glibtool --version
ltmain.sh (GNU libtool) 1.5 (1.1220 2003/04...