Displaying 20 results from an estimated 7000 matches similar to: "[LLVMdev] Making llvm-objdump more like GNU objdump"
2014 Dec 02
2
[LLVMdev] Making llvm-objdump more like GNU objdump
At least for now, I don’t expect it to become all that unwieldy. Any behavioral differences should be easily separable into different classes and source files. If as things progress it becomes obvious that there’s really not much of anything in common other than the general nature of the tools, it’s easy to split them apart.
-Jim
> On Dec 1, 2014, at 5:20 PM, Steve King <steve at
2014 Dec 03
3
[LLVMdev] Making llvm-objdump more like GNU objdump
OK. Let's try a specific example: At least for ELF files, GNU
objdump prints operand values in hex. AFAIK, hex is not just the
default, but the only choice. On the other hand, llvm-objdump prints
operand values in decimal and ignores the --print-imm-hex option for
ELF.
How about a patch to print operands in hex for ELF? Good place to start?
On Mon, Dec 1, 2014 at 5:49 PM, Kevin Enderby
2014 Dec 02
5
[LLVMdev] Making llvm-objdump more like GNU objdump
Hey folks,
This is great to see more interest on the supporting tools like objdump and such. I very much agree that bringing llvm-objdump up to feature parity (to start with) compared to both otool(1) and objdump(1) is a great goal. The default output formatting is easy enough to get right by having it be controlled by the container format (otool style for macho, objdump style for ELF). Kevin’s
2014 Aug 26
2
[LLVMdev] llvm-objdump
Hi Kev,
I'm glad to hear llvm-objdump is getting attention. I'm unclear on
how much output specialization one could (or should) do for ELF vs.
Mach-O. If you're game, let's compare an example:
$ cat labeltest.s
.text
foo:
nop
bar:
bum:
nop
jmp bar
jmp bum
jmp baz
nop
baz:
nop
Assembling for x86 and llvm-objdump'ing, i get
$ llvm-mc
2014 Aug 26
6
[LLVMdev] llvm-objdump
I would like to improve llvm-objdump. However, many unit tests depend
precisely on the current output, making the picture a little tricky.
My experience is limited to ELF format objects, so experts in other
formats please sanity check.
Suggested changes:
1) Symbolize conditional branch targets. Currently, llvm-objdump
prints branch targets numerically regardless of -symbolize.
2) Make
2014 Aug 06
4
[LLVMdev] Looking for ideas on how to make llvm-objdump handle both arm and thumb disassembly from the same object file
Hello Tim, Rafael, Renato and llvmdev,
I’m working to get llvm-objdump handle both arm and thumb disassembly from the same object file similarly to how darwin’s otool(1) works. And I’m looking for implementing direction. I spoke to Jim Grosbach about some ideas and he suggested I send out and email about some of the possibilities. Since none of the ones I could think of are pretty he thought
2011 Dec 19
3
[LLVMdev] Disassembly arbitrary machine-code byte arrays
Hi Aiden,
The 'C' based interface you could use in is llvm/include/llvm-c/Disassembler.h, which in there is:
/**
* Disassemble a single instruction using the disassembler context specified in
* the parameter DC. The bytes of the instruction are specified in the
* parameter Bytes, and contains at least BytesSize number of bytes. The
* instruction is at the address specified by the
2016 May 24
2
Undefined symbols in llvm-objdump linkage on x86_64-apple-darwin15
On Tue, May 24, 2016 at 1:35 PM, Kevin Enderby <enderby at apple.com> wrote:
> Hi Jack,
>
> Just a guess here, this may be the bug Chris helped me out with in the use of the include file xar/xar.h which is not C++ safe. I needed to wrap my include via:
>
> #ifdef HAVE_LIBXAR
> extern "C" {
> #include <xar/xar.h>
> }
> #endif
>
> I think we
2016 May 24
0
Undefined symbols in llvm-objdump linkage on x86_64-apple-darwin15
Jack,
What version of CMake are you using?
-Chris
> On May 24, 2016, at 11:00 AM, Jack Howarth <howarth.mailing.lists at gmail.com> wrote:
>
> On Tue, May 24, 2016 at 1:35 PM, Kevin Enderby <enderby at apple.com> wrote:
>> Hi Jack,
>>
>> Just a guess here, this may be the bug Chris helped me out with in the use of the include file xar/xar.h which is not
2016 May 24
0
Undefined symbols in llvm-objdump linkage on x86_64-apple-darwin15
Hi Jack,
Just a guess here, this may be the bug Chris helped me out with in the use of the include file xar/xar.h which is not C++ safe. I needed to wrap my include via:
#ifdef HAVE_LIBXAR
extern "C" {
#include <xar/xar.h>
}
#endif
I think we may need some help from Chris to track this down. I’ll bug him in a bit to see if he can help us on this.
Kev
> On May 24, 2016, at
2016 May 24
2
Undefined symbols in llvm-objdump linkage on x86_64-apple-darwin15
On Tue, May 24, 2016 at 1:24 PM, Jack Howarth
<howarth.mailing.lists at gmail.com> wrote:
> On Tue, May 24, 2016 at 1:22 PM, Jack Howarth
> <howarth.mailing.lists at gmail.com> wrote:
>> On Tue, May 24, 2016 at 12:08 PM, Reid Kleckner <rnk at google.com> wrote:
>>> Kevin Enderby added those symbol uses in r270491. It has a cmake
>>> feature test, and
2016 May 24
2
Undefined symbols in llvm-objdump linkage on x86_64-apple-darwin15
On Tue, May 24, 2016 at 2:28 PM, Chris Bieneman <beanz at apple.com> wrote:
> Jack,
>
> What version of CMake are you using?
>
> -Chris
Chris,
I am using cmake 3.5.2. My read of this problem is as follows.
While libLLVM.dylib is being linked against -lxar when
-DLLVM_LINK_LLVM_DYLIB:BOOL=ON is passed to cmake, the libLLVM.dylib
is created with -Wl,-dead_strip such that
2011 Oct 11
0
[LLVMdev] llvm-objdump related patch
On Tue, Oct 11, 2011 at 12:15 AM, Neo <smtian at ingenic.cn> wrote:
> Hi,
> I am new to llvm, not familiar with c++, after some use with
> llvm-objdump, and finding the broken output, I try to debug and fix the code
> so it can become usable. Please help review the patch, so that they can be
> merged.
> And there's still two major problem I have found about arm
2016 May 24
2
Undefined symbols in llvm-objdump linkage on x86_64-apple-darwin15
On Tue, May 24, 2016 at 12:08 PM, Reid Kleckner <rnk at google.com> wrote:
> Kevin Enderby added those symbol uses in r270491. It has a cmake
> feature test, and all the uses of those symbols appear bracketed in
> HAVE_LIBXAR, so I don't know what went wrong for you.
The trigger for this build failure is the usage of
-DLLVM_BUILD_EXTERNAL_COMPILER_RT:BOOL=ON. If I drop that
2016 May 24
2
Undefined symbols in llvm-objdump linkage on x86_64-apple-darwin15
Is anyone else seeing a bootstrap failure on x86_64-apple-darwin15 in
current trunk?
[ 95%] Linking CXX executable ../../bin/llvm-objdump
Undefined symbols for architecture x86_64:
"_xar_serialize", referenced from:
DumpBitcodeSection(llvm::object::MachOObjectFile*, char const*,
unsigned int, bool, bool, bool, std::__1::basic_string<char,
std::__1::char_traits<char>,
2011 Oct 11
5
[LLVMdev] llvm-objdump related patch
Hi,
I am new to llvm, not familiar with c++, after some use with
llvm-objdump, and finding the broken output, I try to debug and fix the
code so it can become usable. Please help review the patch, so that they
can be merged.
And there's still two major problem I have found about arm
disassembler:
1. arm instruction decoder cannot recognise bx series instructions.
2. As gcc will
2016 May 24
0
Undefined symbols in llvm-objdump linkage on x86_64-apple-darwin15
On Tue, May 24, 2016 at 2:37 PM, Jack Howarth
<howarth.mailing.lists at gmail.com> wrote:
> On Tue, May 24, 2016 at 2:28 PM, Chris Bieneman <beanz at apple.com> wrote:
>> Jack,
>>
>> What version of CMake are you using?
>>
>> -Chris
>
> Chris,
> I am using cmake 3.5.2. My read of this problem is as follows.
> While libLLVM.dylib is
2016 May 24
0
Undefined symbols in llvm-objdump linkage on x86_64-apple-darwin15
Kevin Enderby added those symbol uses in r270491. It has a cmake
feature test, and all the uses of those symbols appear bracketed in
HAVE_LIBXAR, so I don't know what went wrong for you.
On Tue, May 24, 2016 at 8:07 AM, Jack Howarth via llvm-dev
<llvm-dev at lists.llvm.org> wrote:
> Is anyone else seeing a bootstrap failure on x86_64-apple-darwin15 in
> current trunk?
>
> [
2016 May 24
0
Undefined symbols in llvm-objdump linkage on x86_64-apple-darwin15
On Tue, May 24, 2016 at 1:22 PM, Jack Howarth
<howarth.mailing.lists at gmail.com> wrote:
> On Tue, May 24, 2016 at 12:08 PM, Reid Kleckner <rnk at google.com> wrote:
>> Kevin Enderby added those symbol uses in r270491. It has a cmake
>> feature test, and all the uses of those symbols appear bracketed in
>> HAVE_LIBXAR, so I don't know what went wrong for you.
2016 May 24
1
Undefined symbols in llvm-objdump linkage on x86_64-apple-darwin15
On Tue, May 24, 2016 at 3:03 PM, Jack Howarth
<howarth.mailing.lists at gmail.com> wrote:
> On Tue, May 24, 2016 at 2:37 PM, Jack Howarth
> <howarth.mailing.lists at gmail.com> wrote:
>> On Tue, May 24, 2016 at 2:28 PM, Chris Bieneman <beanz at apple.com> wrote:
>>> Jack,
>>>
>>> What version of CMake are you using?
>>>
>>>