From 89c3762a7ae5bf557fd64fb33d575e397f3db441 Mon Sep 17 00:00:00 2001 From: Rui Ueyama Date: Sat, 9 Jul 2016 23:16:00 +0000 Subject: [PATCH] Update comments. llvm-svn: 275003 --- lld/ELF/Thunks.cpp | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/lld/ELF/Thunks.cpp b/lld/ELF/Thunks.cpp index b5fe570c270e..0e0035131207 100644 --- a/lld/ELF/Thunks.cpp +++ b/lld/ELF/Thunks.cpp @@ -7,12 +7,18 @@ // //===---------------------------------------------------------------------===// // -// This file contains both the Target independent and Target specific Thunk -// classes +// This file contains Thunk subclasses. +// +// A thunk is a small piece of code written after an input section +// which is used to jump between "incompatible" functions +// such as MIPS PIC and non-PIC or ARM non-Thumb and Thumb functions. +// +// If a jump target is too far and its address doesn't fit to a +// short jump instruction, we need to create a thunk too, but we +// haven't supported it yet. +// +// i386 and x86-64 don't need thunks. // -// A Thunk Object represents a single Thunk that will be written to an -// InputSection when the InputSection contents are written. The InputSection -// maintains a list of Thunks that it owns. //===---------------------------------------------------------------------===// #include "Thunks.h"