public inbox for libabigail@sourceware.org
 help / color / mirror / Atom feed
From: "gprocida+abigail at google dot com" <sourceware-bugzilla@sourceware.org>
To: libabigail@sourceware.org
Subject: [Bug default/27162] New: libabigail appears to lose declarations for common symbols
Date: Fri, 08 Jan 2021 14:33:35 +0000	[thread overview]
Message-ID: <bug-27162-9487@http.sourceware.org/bugzilla/> (raw)

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

            Bug ID: 27162
           Summary: libabigail appears to lose declarations for common
                    symbols
           Product: libabigail
           Version: unspecified
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: default
          Assignee: dodji at redhat dot com
          Reporter: gprocida+abigail at google dot com
                CC: libabigail at sourceware dot org
  Target Milestone: ---

libabigail appears to lose declarations for common symbols.

$ cat bar.c
int arg[2];
$ gcc -fno-common -g -Wall -Wextra -c bar.c
$ ~/android/libabigail/build/tools/abidw bar.o
<abi-corpus path='bar.o' architecture='elf-amd-x86_64'>
  <elf-variable-symbols>
    <elf-symbol name='arg' size='8' type='object-type' binding='global-binding'
visibility='default-visibility' is-defined='yes'/>
  </elf-variable-symbols>
  <abi-instr version='1.0' address-size='64' path='bar.c' comp-dir-path='/tmp'
language='LANG_C99'>
    <type-decl name='int' size-in-bits='32' id='type-id-1'/>
    <array-type-def dimensions='1' type-id='type-id-1' size-in-bits='64'
id='type-id-2'>
      <subrange length='2' type-id='type-id-3' id='type-id-4'/>
    </array-type-def>
    <type-decl name='unsigned long int' size-in-bits='64' id='type-id-3'/>
    <var-decl name='arg' type-id='type-id-2' mangled-name='arg'
visibility='default' filepath='/tmp/bar.c' line='1' column='1'
elf-symbol-id='arg'/>
  </abi-instr>
</abi-corpus>
$ gcc -fcommon -g -Wall -Wextra -c bar.c
$ ~/android/libabigail/build/tools/abidw bar.o
<abi-corpus path='bar.o' architecture='elf-amd-x86_64'>
  <elf-variable-symbols>
    <elf-symbol name='arg' size='8' type='object-type' binding='global-binding'
visibility='default-visibility' is-defined='yes' is-common='yes'/>
  </elf-variable-symbols>
</abi-corpus>

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

             reply	other threads:[~2021-01-08 14:33 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-08 14:33 gprocida+abigail at google dot com [this message]
2021-01-08 14:34 ` [Bug default/27162] " gprocida+abigail at google dot com
2021-07-26 20:30 ` gprocida at google dot com

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-27162-9487@http.sourceware.org/bugzilla/ \
    --to=sourceware-bugzilla@sourceware.org \
    --cc=libabigail@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).