public inbox for dwz@sourceware.org
 help / color / mirror / Atom feed
From: "vries at gcc dot gnu.org" <sourceware-bugzilla@sourceware.org>
To: dwz@sourceware.org
Subject: [Bug default/27603] New: [dwz, clang-11] FAIL: testsuite/dwz.tests/pr24747.sh
Date: Thu, 18 Mar 2021 11:23:26 +0000	[thread overview]
Message-ID: <bug-27603-11298@http.sourceware.org/bugzilla/> (raw)

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

            Bug ID: 27603
           Summary: [dwz, clang-11] FAIL: testsuite/dwz.tests/pr24747.sh
           Product: dwz
           Version: unspecified
            Status: NEW
          Severity: minor
          Priority: P2
         Component: default
          Assignee: nobody at sourceware dot org
          Reporter: vries at gcc dot gnu.org
                CC: dwz at sourceware dot org
  Target Milestone: ---

With clang-11, I run into:
...
Running testsuite/dwz.tests/dwz-tests.exp ...
+ exec=start-gold
+ cp start-gold 1
+ dwz 1
+ smaller-than.sh 1 start-gold
FAIL: testsuite/dwz.tests/pr24747.sh
...

The files are the same size:
...
$ ls -l start-gold tmp.pr24747.sh/1
-rwxr-xr-x 1 vries users 2024 Mar 18 11:58 start-gold
-rwxr-xr-x 1 vries users 2024 Mar 18 11:58 tmp.pr24747.sh/1
...

However:
...
$ readelf -S -W start-gold tmp.pr24747.sh/1
File: start-gold

Section Headers:
  [Nr] Name              Type            Address          Off    Size   ES Flg
Lk Inf Al
  [ 0]                   NULL            0000000000000000 000000 000000 00     
0   0  0
  [ 1] .note.gnu.build-id NOTE            0000000000400120 000120 000024 00   A
 0   0  4
  [ 2] .text             PROGBITS        0000000000400150 000150 000006 00  AX 
0   0 16
  [ 3] .eh_frame         X86_64_UNWIND   0000000000400158 000158 000038 00   A 
0   0  8
  [ 4] .eh_frame_hdr     X86_64_UNWIND   0000000000400190 000190 000014 00   A 
0   0  4
  [ 5] .debug_abbrev     PROGBITS        0000000000000000 0001a4 000029 00     
0   0  1
  [ 6] .debug_info       PROGBITS        0000000000000000 0001cd 000040 00     
0   0  1
  [ 7] .debug_str        PROGBITS        0000000000000000 00020d 000066 01  MS 
0   0  1
  [ 8] .comment          PROGBITS        0000000000000000 000273 000016 01  MS 
0   0  1
  [ 9] .debug_line       PROGBITS        0000000000000000 000289 00006a 00     
0   0  1
  [10] .note.gnu.gold-version NOTE            0000000000000000 0002f4 00001c 00
     0   0  4
  [11] .symtab           SYMTAB          0000000000000000 000310 000090 18    
12   2  8
  [12] .strtab           STRTAB          0000000000000000 0003a0 000028 00     
0   0  1
  [13] .shstrtab         STRTAB          0000000000000000 0003c8 00009d 00     
0   0  1

File: tmp.pr24747.sh/1

Section Headers:
  [Nr] Name              Type            Address          Off    Size   ES Flg
Lk Inf Al
  [ 0]                   NULL            0000000000000000 000000 000000 00     
0   0  0
  [ 1] .note.gnu.build-id NOTE            0000000000400120 000120 000024 00   A
 0   0  4
  [ 2] .text             PROGBITS        0000000000400150 000150 000006 00  AX 
0   0 16
  [ 3] .eh_frame         X86_64_UNWIND   0000000000400158 000158 000038 00   A 
0   0  8
  [ 4] .eh_frame_hdr     X86_64_UNWIND   0000000000400190 000190 000014 00   A 
0   0  4
  [ 5] .debug_abbrev     PROGBITS        0000000000000000 0001a4 000029 00     
0   0  1
  [ 6] .debug_info       PROGBITS        0000000000000000 0001cd 00003a 00     
0   0  1
  [ 7] .debug_str        PROGBITS        0000000000000000 000207 000066 01  MS 
0   0  1
  [ 8] .comment          PROGBITS        0000000000000000 00026d 000016 01  MS 
0   0  1
  [ 9] .debug_line       PROGBITS        0000000000000000 000283 00006a 00     
0   0  1
  [10] .note.gnu.gold-version NOTE            0000000000000000 0002f0 00001c 00
     0   0  4
  [11] .symtab           SYMTAB          0000000000000000 000310 000090 18    
12   2  8
  [12] .strtab           STRTAB          0000000000000000 0003a0 000028 00     
0   0  1
  [13] .shstrtab         STRTAB          0000000000000000 0003c8 00009d 00     
0   0  1
...

The sizes of the sections are either the same, or smaller (.debug_info 0x40 ->
0x3a, reduction of 6 bytes).

However, AFAIU due to the alignment requirement of 8 bytes of the .symtab
section, that doesn't actually result in a smaller file.

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

             reply	other threads:[~2021-03-18 11:23 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-18 11:23 vries at gcc dot gnu.org [this message]
2021-03-22  5:14 ` [Bug default/27603] " vries at gcc dot gnu.org

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-27603-11298@http.sourceware.org/bugzilla/ \
    --to=sourceware-bugzilla@sourceware.org \
    --cc=dwz@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).