public inbox for cygwin-apps@cygwin.com
 help / color / mirror / Atom feed
From: Achim Gratz <Stromeko@nexgo.de>
To: cygwin-apps@cygwin.com
Subject: Re: perl-5.14.4
Date: Mon, 16 Feb 2015 09:46:00 -0000	[thread overview]
Message-ID: <871tlq194r.fsf@Rainer.invalid> (raw)
In-Reply-To: <20150216091720.GW7225@calimero.vinschen.de> (Corinna Vinschen's	message of "Mon, 16 Feb 2015 10:17:20 +0100")

Corinna Vinschen writes:
>> Back to the drawing board…  The section names in rebase are completely
>> different,
>
> "completely different"?  -v, please?

I gave up in disgust… anyway, instead of the .debug_* section names,
rebase finds something like "/19".  I can't find a way to have objdump
use the same format.  Objcopy does have an option that hints at some
"long section names" that can be present and I surmise that the debug
sections use such names.

>> not sure how I should get objdump to display them.
>
> objdump -h?

Nope.  That tells you:

Sections:
Idx Name          Size      VMA               LMA               File off  Algn
  0 .text         00000b98  00000003e5411000  00000003e5411000  00000600  2**4
                  CONTENTS, ALLOC, LOAD, READONLY, CODE, DATA
  1 .data         00000068  00000003e5412000  00000003e5412000  00001200  2**5
                  CONTENTS, ALLOC, LOAD, DATA
  2 .rdata        00003800  00000003e5413000  00000003e5413000  00001400  2**6
                  CONTENTS, ALLOC, LOAD, READONLY, DATA
  3 .buildid      00000035  00000003e5417000  00000003e5417000  00004c00  2**2
                  CONTENTS, ALLOC, LOAD, READONLY, DATA
  4 .pdata        000000cc  00000003e5418000  00000003e5418000  00004e00  2**2
                  CONTENTS, ALLOC, LOAD, READONLY, DATA
  5 .xdata        0000008c  00000003e5419000  00000003e5419000  00005000  2**2
                  CONTENTS, ALLOC, LOAD, READONLY, DATA
  6 .bss          000001d0  00000003e541a000  00000003e541a000  00000000  2**5
                  ALLOC
  7 .edata        0000012b  00000003e541b000  00000003e541b000  00005200  2**2
                  CONTENTS, ALLOC, LOAD, READONLY, DATA
  8 .idata        000004fc  00000003e541c000  00000003e541c000  00005400  2**2
                  CONTENTS, ALLOC, LOAD, DATA
  9 .reloc        000006b4  00000003e541d000  00000003e541d000  00005a00  2**2
                  CONTENTS, ALLOC, LOAD, READONLY, DATA
 10 .debug_aranges 00000220  00000003e541e000  00000003e541e000  00006200  2**0
                  CONTENTS, READONLY, DEBUGGING
 11 .debug_info   0000cc86  00000003e541f000  00000003e541f000  00006600  2**0
                  CONTENTS, READONLY, DEBUGGING
 12 .debug_abbrev 00000e74  00000003e542c000  00000003e542c000  00013400  2**0
                  CONTENTS, READONLY, DEBUGGING
 13 .debug_line   00000e93  00000003e542d000  00000003e542d000  00014400  2**0
                  CONTENTS, READONLY, DEBUGGING
 14 .debug_frame  00000350  00000003e542e000  00000003e542e000  00015400  2**3
                  CONTENTS, READONLY, DEBUGGING
 15 .debug_loc    00000b22  00000003e5430000  00000003e5430000  00015800  2**0
                  CONTENTS, READONLY, DEBUGGING
 16 .debug_ranges 000000c0  00000003e5431000  00000003e5431000  00016400  2**0
                  CONTENTS, READONLY, DEBUGGING
 17 .debug_str    000001a8  0000000400000000  0000000400000000  00016600  2**0
                  CONTENTS, READONLY, DEBUGGING

While rebase thinks:

Base:       0x0x2f0000
ImageBase:  0x3e2660000
ImageBase: 0x3e2660000 ImageSize: 0x22000
   section name:    .text base: 0x00001000 size: 0x00000c00 file offset: 0x00000600 offset: 0x002ef600
   section name:    .data base: 0x00002000 size: 0x00000200 file offset: 0x00001200 offset: 0x002ef200
   section name:   .rdata base: 0x00003000 size: 0x00003800 file offset: 0x00001400 offset: 0x002ee400
   section name: .buildid base: 0x00007000 size: 0x00000200 file offset: 0x00004c00 offset: 0x002edc00
   section name:   .pdata base: 0x00008000 size: 0x00000200 file offset: 0x00004e00 offset: 0x002ece00
   section name:   .xdata base: 0x00009000 size: 0x00000200 file offset: 0x00005000 offset: 0x002ec000
   section name:     .bss base: 0x0000a000 size: 0x00000000 file offset: 0x00000000 offset: 0x002e6000
   section name:   .edata base: 0x0000b000 size: 0x00000200 file offset: 0x00005200 offset: 0x002ea200
   section name:   .idata base: 0x0000c000 size: 0x00000600 file offset: 0x00005400 offset: 0x002e9400
   section name:   .reloc base: 0x0000d000 size: 0x00000800 file offset: 0x00005a00 offset: 0x002e8a00
   section name:       /4 base: 0x0000e000 size: 0x00000400 file offset: 0x00006200 offset: 0x002e8200
   section name:      /19 base: 0x0000f000 size: 0x0000ce00 file offset: 0x00006600 offset: 0x002e7600
   section name:      /31 base: 0x0001c000 size: 0x00001000 file offset: 0x00013400 offset: 0x002e7400
   section name:      /45 base: 0x0001d000 size: 0x00001000 file offset: 0x00014400 offset: 0x002e7400
   section name:      /57 base: 0x0001e000 size: 0x00000400 file offset: 0x00015400 offset: 0x002e7400
   section name:      /70 base: 0x0001f000 size: 0x00000200 file offset: 0x00015800 offset: 0x002e6800
   section name:      /81 base: 0x00020000 size: 0x00000c00 file offset: 0x00015a00 offset: 0x002e5a00
   section name:      /92 base: 0x00021000 size: 0x00000200 file offset: 0x00016600 offset: 0x002e5600

>> Also,
>> rebase does not seem to touch the debug sections in any way (either it
>> does not recognize them or already ignores them).  The apparent changes
>> that I saw in objdump are purely the result of rebase changing the
>> ImageBase.  :-(
>
> So it's not about the debug sections, apparently.  It was just a guess
> anyway.

It still is about the debug sections…  They are still present in the
rebased object files, but nm and objdump don't associate the information
in them with the code anymore.  The same thing already happens when I
just change the ImageBase, so it seems that rebase would somehow also
have to change something in the debug records, albeit it's entirely
unclear what that might be.


Regards,
Achim.
-- 
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+

Factory and User Sound Singles for Waldorf rackAttack:
http://Synth.Stromeko.net/Downloads.html#WaldorfSounds

  reply	other threads:[~2015-02-16  9:46 UTC|newest]

Thread overview: 39+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-04 20:41 perl-5.14.4 Achim Gratz
2015-02-04 21:57 ` perl-5.14.4 David Stacey
2015-02-04 22:10   ` perl-5.14.4 Achim Gratz
2015-02-05 17:57     ` perl-5.14.4 Reini Urban
2015-02-05 19:16       ` perl-5.14.4 Achim Gratz
2015-02-05  8:49 ` perl-5.14.4 Corinna Vinschen
2015-02-05 16:13 ` perl-5.14.4 Achim Gratz
2015-02-05 17:53   ` perl-5.14.4 Reini Urban
2015-02-05 19:13     ` perl-5.14.4 Achim Gratz
2015-02-06 19:22 ` perl-5.14.4 Achim Gratz
2015-02-08 20:19   ` perl-5.14.4 Achim Gratz
2015-02-09 10:25     ` perl-5.14.4 Corinna Vinschen
2015-02-09 17:16       ` perl-5.14.4 Achim Gratz
2015-02-09 18:49         ` perl-5.14.4 Corinna Vinschen
2015-02-09 19:06           ` perl-5.14.4 Corinna Vinschen
2015-02-09 19:41           ` perl-5.14.4 Achim Gratz
2015-02-09 20:20             ` perl-5.14.4 Corinna Vinschen
2015-02-14 20:04     ` perl-5.14.4 Achim Gratz
2015-02-14 21:12       ` perl-5.14.4 Achim Gratz
2015-02-15 10:32         ` perl-5.14.4 Corinna Vinschen
2015-02-15 13:18           ` perl-5.14.4 Achim Gratz
2015-02-15 14:31             ` perl-5.14.4 Corinna Vinschen
2015-02-15 16:22               ` perl-5.14.4 Achim Gratz
2015-02-15 19:14               ` perl-5.14.4 Achim Gratz
2015-02-16  9:17                 ` perl-5.14.4 Corinna Vinschen
2015-02-16  9:46                   ` Achim Gratz [this message]
2015-02-16 10:25                     ` perl-5.14.4 Corinna Vinschen
2015-02-16 12:25                       ` perl-5.14.4 Corinna Vinschen
2015-02-16 14:29                         ` perl-5.14.4 Achim Gratz
2015-02-16 15:32                           ` perl-5.14.4 Corinna Vinschen
2015-02-16 15:42                             ` perl-5.14.4 Achim Gratz
2015-03-05 13:21                               ` perl-5.14.4 Corinna Vinschen
2015-03-05 16:45                                 ` perl-5.14.4 Achim Gratz
2015-03-10  9:10                                 ` perl-5.14.4 Corinna Vinschen
2015-03-14 20:30                                   ` perl-5.14.4 Achim Gratz
2015-03-16  9:06                                     ` perl-5.14.4 Corinna Vinschen
2015-02-10 19:55 ` perl-5.14.4 Achim Gratz
2015-02-11 20:01 ` perl-5.14.4 David Stacey
2015-02-13 18:36   ` perl-5.14.4 Achim Gratz

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=871tlq194r.fsf@Rainer.invalid \
    --to=stromeko@nexgo.de \
    --cc=cygwin-apps@cygwin.com \
    /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).