public inbox for prelink@sourceware.org
 help / color / mirror / Atom feed
From: Mark Hatle <mark.hatle@windriver.com>
To: <prelink@sourceware.org>
Subject: MIPS prelinking issue
Date: Wed, 31 Aug 2011 15:01:00 -0000	[thread overview]
Message-ID: <4E5E4CA1.2000207@windriver.com> (raw)

When using the prelinker on a mips target using the latest compiler/linker from
OpenEmbedded-Core, gcc-4.6.1 and binutils-2.21.1a, I get the following message:

prelink: [binary]: NOBITS section followed by non-NOBITS section in the same segment

Most, if not all of the executables, on the system return that message.  Using
READELF:

Section Headers:
  [Nr] Name              Type            Addr     Off    Size   ES Flg Lk Inf Al
  [ 0]                   NULL            00000000 000000 000000 00      0   0  0
  [ 1] .interp           PROGBITS        00400134 000134 00000d 00   A  0   0  1
  [ 2] .note.ABI-tag     NOTE            00400144 000144 000020 00   A  0   0  4
  [ 3] .dynamic          DYNAMIC         00400164 000164 0000d8 08   A  6   0  4
  [ 4] .hash             HASH            0040023c 00023c 000f94 04   A  5   0  4
  [ 5] .dynsym           DYNSYM          004011d0 0011d0 001540 10   A  6   1  4
  [ 6] .dynstr           STRTAB          00402710 002710 000b75 00   A  0   0  1
  [ 7] .gnu.version      VERSYM          00403286 003286 0002a8 02   A  5   0  2
  [ 8] .gnu.version_r    VERNEED         00403530 003530 000080 00   A  6   1  4
  [ 9] .init             PROGBITS        004035b0 0035b0 000078 00  AX  0   0  4
  [10] .text             PROGBITS        00403630 003630 090450 00  AX  0   0 16
  [11] .MIPS.stubs       PROGBITS        00493a80 093a80 001280 00  AX  0   0  4
  [12] .fini             PROGBITS        00494d00 094d00 000044 00  AX  0   0  4
  [13] .rodata           PROGBITS        00494d50 094d50 010631 00   A  0   0 16
  [14] .eh_frame_hdr     PROGBITS        004a5384 0a5384 00002c 00   A  0   0  4
  [15] .eh_frame         PROGBITS        004a53b0 0a53b0 000068 00   A  0   0  4
  [16] .ctors            PROGBITS        004b5418 0a5418 000008 00  WA  0   0  4
  [17] .dtors            PROGBITS        004b5420 0a5420 000008 00  WA  0   0  4
  [18] .jcr              PROGBITS        004b5428 0a5428 000004 00  WA  0   0  4
  [19] .data.rel.ro      PROGBITS        004b542c 0a542c 000c48 00  WA  0   0  4
  [20] .data             PROGBITS        004b6074 0a6074 00013a 00  WA  0   0  4
  [21] .rld_map          PROGBITS        004b61b0 0a61b0 000004 00  WA  0   0  4
  [22] .got              PROGBITS        004b61c0 0a61c0 000568 04 WAp  0   0 16
  [23] .sdata            PROGBITS        004b6728 0a6728 000004 00 WAp  0   0  4
  [24] .sbss             NOBITS          004b672c 0a672c 00003d 00 WAp  0   0  4
  [25] .bss              NOBITS          004b6770 0a672c 0021cc 00  WA  0   0 16
  [26] .gnu.attributes   LOOS+ffffff5    00000000 0a672c 000010 00      0   0  1
  [27] .mdebug.abi32     PROGBITS        004b893c 0a673c 000000 00      0   0  1
  [28] .gnu_debuglink    PROGBITS        00000000 0a673c 00000c 00      0   0  1
  [29] .shstrtab         STRTAB          00000000 0a6748 00010d 00      0   0  1

So it's correct that there are two NOBITS before the next PROGBITS.  .sbss and
.bss, however I thought that the prelinker would ignore the bss sections and/or
change them into PROGBITS.

Any suggestions on how to resolve this issue?  Is this a toolchain issue,
prelinker bug or?

Thanks,
Mark

                 reply	other threads:[~2011-08-31 15:01 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=4E5E4CA1.2000207@windriver.com \
    --to=mark.hatle@windriver.com \
    --cc=prelink@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).