[Mono-bugs] [Bug 74822][Wis] New - prelink on /usr/bin/mono fails with "NOBITS section followed by non-NOBITS section in the same segment"

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Wed, 4 May 2005 10:18:03 -0400 (EDT)


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by christophe@saout.de.

http://bugzilla.ximian.com/show_bug.cgi?id=74822

--- shadow/74822	2005-05-04 10:18:03.000000000 -0400
+++ shadow/74822.tmp.14389	2005-05-04 10:18:03.000000000 -0400
@@ -0,0 +1,132 @@
+Bug#: 74822
+Product: Mono: Runtime
+Version: 1.1
+OS: GNU/Linux [Other]
+OS Details: Gentoo 2005.0 x86
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: christophe@saout.de               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: prelink on /usr/bin/mono fails with "NOBITS section followed by non-NOBITS section in the same segment"
+
+Description of Problem:
+
+The `prelink' utility fails to prelink /usr/bin/mono (1.1.6)
+
+Additional Information:
+
+prelink: /usr/bin/monodiet: NOBITS section followed by non-NOBITS section
+in the same segment
+prelink: /usr/bin/mono: NOBITS section followed by non-NOBITS section in
+the same segment
+prelink: /usr/bin/monodis: Cannot prelink against non-PIC shared library
+/usr/lib/libmono.so.0
+prelink: /usr/bin/pedump: NOBITS section followed by non-NOBITS section in
+the same segment
+
+prelink 0.3.4
+gcc-Version 3.4.3-20050110 (Gentoo Linux 3.4.3.20050110-r2,
+ssp-3.4.3.20050110-0, pie-8.7.7)
+GNU ld version 2.15.97 20050420
+
+CFLAGS: -O2 -march=pentium3
+
+leto:/home/chtephan > eu-readelf -S /usr/bin/mono
+There are 41 section headers, starting at offset 0x30aa18:
+
+Section Headers:
+[Nr] Name                 Type         Addr     Off    Size   ES Flags Lk
+Inf Al
+[ 0]                      NULL         00000000 000000 000000  0        0 
+ 0  0
+[ 1] .interp              PROGBITS     08048174 000174 000013  0 A      0 
+ 0  1
+[ 2] .note.ABI-tag        NOTE         08048188 000188 000020  0 A      0 
+ 0  4
+[ 3] .hash                HASH         080481a8 0001a8 0026f0  4 A      4 
+ 0  4
+[ 4] .dynsym              DYNSYM       0804a898 002898 005b30 16 A      5 
+ 1  4
+[ 5] .dynstr              STRTAB       080503c8 0083c8 007d3c  0 A      0 
+ 0  1
+[ 6] .gnu.version         GNU_versym   08058104 010104 000b66  2 A      4 
+ 0  2
+[ 7] .gnu.version_d       GNU_verdef   08058c6c 010c6c 000038  0 A      5 
+ 2  4
+[ 8] .gnu.version_r       GNU_verneed  08058ca4 010ca4 000150  0 A      5 
+ 5  4
+[ 9] .rel.dyn             REL          08058df4 010df4 0000c8  8 A      4 
+ 0  4
+[10] .rel.plt             REL          08058ebc 010ebc 000be8  8 A      4 
+12  4
+[11] .init                PROGBITS     08059ab0 011ab0 000017  0 AX     0 
+ 0 16
+[12] .plt                 PROGBITS     08059ac8 011ac8 0017e0  4 AX     0 
+ 0  4
+[13] .text                PROGBITS     0805b2b0 0132b0 0f8a94  0 AX     0 
+ 0 16
+[14] .fini                PROGBITS     08153d50 10bd50 00001b  0 AX     0 
+ 0 16
+[15] .rodata              PROGBITS     08153d80 10bd80 0560c4  0 A      0 
+ 0 32
+[16] .eh_frame_hdr        PROGBITS     081a9e44 161e44 00002c  0 A      0 
+ 0  4
+[17] .eh_frame            PROGBITS     081a9e70 161e70 00009c  0 A      0 
+ 0  4
+[18] .tbss                NOBITS       081aa000 162000 000014  0 WAT    0 
+ 0  4
+[19] .ctors               PROGBITS     081aa000 162000 000008  0 WA     0 
+ 0  4
+[20] .dtors               PROGBITS     081aa008 162008 000008  0 WA     0 
+ 0  4
+[21] .jcr                 PROGBITS     081aa010 162010 000004  0 WA     0 
+ 0  4
+[22] .data.rel.ro         PROGBITS     081aa020 162020 00018c  0 WA     0 
+ 0 32
+[23] .dynamic             DYNAMIC      081aa1ac 1621ac 000120  8 WA     5 
+ 0  4
+[24] .got                 PROGBITS     081aa2cc 1622cc 000050  4 WA     0 
+ 0  4
+[25] .got.plt             PROGBITS     081aa31c 16231c 000600  4 WA     0 
+ 0  4
+[26] .data                PROGBITS     081aa920 162920 00057c  0 WA     0 
+ 0 32
+[27] writetext            PROGBITS     081aae9c 162e9c 00001e  0 WAX    0 
+ 0  1
+[28] .bss                 NOBITS       081aaec0 162eba 011780  0 WA     0 
+ 0 32
+[29] .comment             PROGBITS     00000000 162eba 002ca0  0        0 
+ 0  1
+[30] .debug_aranges       PROGBITS     00000000 165b60 000c28  0        0 
+ 0  8
+[31] .debug_pubnames      PROGBITS     00000000 166788 00d9fa  0        0 
+ 0  1
+[32] .debug_info          PROGBITS     00000000 174182 1084c6  0        0 
+ 0  1
+[33] .debug_abbrev        PROGBITS     00000000 27c648 0101fa  0        0 
+ 0  1
+[34] .debug_line          PROGBITS     00000000 28c842 02e147  0        0 
+ 0  1
+[35] .debug_frame         PROGBITS     00000000 2ba98c 0140b0  0        0 
+ 0  4
+[36] .debug_str           PROGBITS     00000000 2cea3c 02761e  1 MS     0 
+ 0  1
+[37] .debug_ranges        PROGBITS     00000000 2f605a 014840  0        0 
+ 0  1
+[38] .shstrtab            STRTAB       00000000 30a89a 00017c  0        0 
+ 0  1
+[39] .symtab              SYMTAB       00000000 30b080 014970 16       40
+2765  4
+[40] .strtab              STRTAB       00000000 31f9f0 01a75b  0        0 
+ 0  1
+
+I don't know much about this, but I would guess that this has something to
+do with this .tbss section. Perhaps this could simply be fixed with a
+linking script?