lkml.org 
[lkml]   [2022]   [Jul]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    SubjectRe: [PATCH 3/5] LoongArch: Support relocation against _GLOBAL_OFFSET_TABLE_
    From
    Date
    On Thu, 2022-07-28 at 17:14 +0800, Jinyang He wrote:
    > Not sure but maybe re-align is needed here.
    > Since '{BYTE(0)}' actually use 1byte. _GLOABL_OFFSET_TABLE_ may have
    > difference with really GOT table entry. Have no machine and without
    > test... :-(

    BYTE(0) is only for preventing the linker from removing the section.
    All we want from the linker is a slot for .got in the section table, and
    the actual property (including size) will be filled at runtime by
    module_frob_arch_sections. The first GOT entry won't be "appended"
    after one byte, it is wrote into the start of .got (at runtime).

    --
    Xi Ruoyao <xry111@xry111.site>
    School of Aerospace Science and Technology, Xidian University

    \
     
     \ /
      Last update: 2022-07-28 12:57    [W:3.193 / U:0.024 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site