lkml.org 
[lkml]   [2021]   [Jan]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    Date
    SubjectRe: [PATCH v2 00/20] objtool: vmlinux.o and CLANG LTO support
    On Sat, Jan 23, 2021 at 3:26 AM Josh Poimboeuf <jpoimboe@redhat.com> wrote:
    >
    > On Fri, Jan 22, 2021 at 05:32:43PM -0800, Nick Desaulniers wrote:
    > > > In this specific case, find_func_by_offset returns NULL for
    > > > .text..L.cfi.jumptable.43 at addend 0x8, because Clang doesn't emit
    > > > jump table symbols for static functions:
    > > >
    > > > 0000000000000000 <__typeid__ZTSFjmiE_global_addr>:
    > > > 0: e9 00 00 00 00 jmpq 5 <__typeid__ZTSFjmiE_global_addr+0x5>
    > > > 1: R_X86_64_PLT32 io_serial_in-0x4
    > > > 5: cc int3
    > > > 6: cc int3
    > > > 7: cc int3
    > > > 8: e9 00 00 00 00 jmpq d <__typeid__ZTSFjmiE_global_addr+0xd>
    > > > 9: R_X86_64_PLT32 mem32_serial_in-0x4
    > > > d: cc int3
    > > > e: cc int3
    > > > f: cc int3
    > > >
    > > > Nick, do you remember if there were plans to change this?
    > >
    > > Do you have a link to any previous discussion to help jog my mind; I
    > > don't really remember this one.
    > >
    > > Is it that `__typeid__ZTSFjmiE_global_addr` is the synthesized jump
    > > table, and yet there is no `__typeid__ZTSFjmiE_global_addr` entry in
    > > the symbol table?
    >
    > I think he means there's not a 'mem32_serial_in.cfi_jt' symbol at
    > '__typeid__ZTSFjmiE_global_addr+8'. Probably more aggressive symbol
    > pruning from the assembler.
    >
    > It's fine though. I just need to rewrite the CFI support a bit.
    >
    > But that can come later. For now I'll just drop the two CFI-related
    > patches from this set so I can merge the others next week.
    >

    Two CFI-related patches?

    What's the other than "objtool: Add CONFIG_CFI_CLANG support"?

    Do you plan (or offer) a v3 of objtool-vmlinux?

    Thanks.

    - Sedat -

    [1] https://git.kernel.org/pub/scm/linux/kernel/git/jpoimboe/linux.git/commit/?h=objtool-vmlinux-v2&id=d743f4b36e120c06506567a9f87a062ae03da47f

    \
     
     \ /
      Last update: 2021-01-23 03:34    [W:3.267 / U:0.036 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site