[PATCH] D32991: [ELF] Initial migration of AVR target
Rui Ueyama via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 8 20:56:25 PDT 2017
On Thu, Jun 8, 2017 at 8:52 PM, Leslie Zhai via Phabricator <
reviews at reviews.llvm.org> wrote:
> xiangzhai added a comment.
>
> Dear Rui,
>
> What about avr-objdump?
>
> $ avr-objdump -v
> GNU objdump (GNU Binutils) 2.27
> Copyright (C) 2016 Free Software Foundation, Inc.
> This program is free software; you may redistribute it under the terms of
> the GNU General Public License version 3 or (at your option) any later
> version.
> This program has absolutely no warranty.
>
> $ avr-objdump -d basic-avr
>
> basic-avr: file format elf32-avr
>
>
> Disassembly of section .text:
>
> 00011000 <main>:
> 11000: 02 88 ldd r0, Z+18 ; 0x12
> ...
>
> 00011004 <foo>:
> 11004: 02 88 ldd r0, Z+18 ; 0x12
> ...
>
I'm not familiar with AVR nor its calling convention. Is this disassembly
correct?
> basic-avr was **generated** by:
>
> $ llvm/build/bin/llvm-mc -filetype=obj -triple=avr-unknown-linux
> -mcpu=atmega328p llvm/tools/lld/test/ELF/basic-avr.s -o /tmp/basic-avr.o
> $ llvm/build/bin/lld /tmp/basic-avr.o -o /tmp/basic-avr
>
> Regards,
> Leslie Zhai
>
>
> Repository:
> rL LLVM
>
> https://reviews.llvm.org/D32991
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170608/41d6eed2/attachment.html>
More information about the llvm-commits
mailing list