bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug gas/29451] gas-2.39 started adding 0-sized DIEs to functions withou


From: mliska at suse dot cz
Subject: [Bug gas/29451] gas-2.39 started adding 0-sized DIEs to functions without .size
Date: Tue, 09 Aug 2022 09:03:56 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=29451

--- Comment #10 from Martin Liska <mliska at suse dot cz> ---
(In reply to Jan Beulich from comment #9)
> The commit in question actually tries to avoid emitting zero-sized regions,
> so the question is why
> 
>         if (S_GET_SIZE (symp) == 0)
>           {
>             if (!IS_ELF || symbol_get_obj (symp)->size == NULL)
>               continue;
>           }

>From the debugging session, I can confirm the continue branch is taken for:

(gdb) p *symp
$2 = {
  flags = {
    local_symbol = 0,
    written = 0,
    resolved = 0,
    resolving = 0,
    used_in_reloc = 0,
    used = 0,
    volatil = 0,
    forward_ref = 0,
    forward_resolved = 0,
    mri_common = 0,
    weakrefr = 0,
    weakrefd = 0,
    removed = 0,
    multibyte_warned = 0
  },
  hash = 3929827014,
  name = 0x609c50 "_init",
  frag = 0x60b6f8,
  bsym = 0x5daed8,
  x = 0x609c88
}

(gdb) p symbol_get_obj (symp)->size
$3 = (expressionS *) 0x0

> 
> doesn't have the intended effect in the case at hand. With no .size
> directive I don't see why / how ->size could be non-NULL.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]