[PATCH] D82536: [AVR] Use correct relocation for function pointers in globals

Eli Friedman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 30 17:55:57 PDT 2020


efriedma added a comment.

In D82536#2124326 <https://reviews.llvm.org/D82536#2124326>, @aykevl wrote:

> Do you have any idea how it is possible to get the object type (function or data) when determining the relocation type, when the referenced symbol is external?


The way avr-gcc works, the compiler is responsible for figuring this out, not the assembler.  A code pointer should be emitted as `.word gs(func)` i.e. VK_AVR_GS.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D82536/new/

https://reviews.llvm.org/D82536





More information about the llvm-commits mailing list