[PATCH] D32991: [ELF] Initial migration of AVR target

Dylan McKay via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue May 9 16:27:34 PDT 2017


dylanmckay added a comment.

Duplicating my comment here as I posted via email accidentally

Hey Rui,

You are correct in that we never run ELF files directly on the AVR - we copy the text and data sections out of the linked ELF file and flash them directly to the chip.

> For example, do you want to support just bare-bone programs? Or ,do you want to eventually create a Unix-like OS on AVR which supports dynamic linking? Or something else?

We only want/need to support bare-bone programs. Obviously that means that there is no dynamic linker, which answers your question.

When I originally implemented AVR support from LLD, by far the biggest component that I needed to write was the AVR-specific relocation handling code. I was able to link program successfully, and I am fairly certain that we don't need anything more complex than that.

> Naturally you don't use dynamic linking, which means most ELF features, such as PLT/GOT, are not used for AVR. Is this my understanding correct?

No PLT/GOT stuff at all.


Repository:
  rL LLVM

https://reviews.llvm.org/D32991





More information about the llvm-commits mailing list