bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug ld/13130] New: ld does not truncate section names in PE-COFF sectio


From: self at tinctorius dot net
Subject: [Bug ld/13130] New: ld does not truncate section names in PE-COFF sections
Date: Wed, 24 Aug 2011 20:21:37 +0000

http://sourceware.org/bugzilla/show_bug.cgi?id=13130

             Bug #: 13130
           Summary: ld does not truncate section names in PE-COFF sections
           Product: binutils
           Version: 2.20
            Status: NEW
          Severity: normal
          Priority: P2
         Component: ld
        AssignedTo: address@hidden
        ReportedBy: address@hidden
    Classification: Unclassified


Under circumstances unfortunately unknown to me, ld 2.20 can create a PE-COFF
image whose section table contains "long names" (a reference to an item in the
image's string table, instead of an 8-byte name). This is not allowed by the
PE-COFF specification. Quoting the 8th version:

    Executable images do not use a string table and do not support section
names longer than 8 characters. Long names in object files are truncated if
they are emitted to an executable file.

I found out about this behaviour while digging in
libcairo-script-interpreter-2.dll from a 64-bit prebuilt GTK+ bundle
(gtk+-bundle_2.22.1-20101229_win64).

I'm sorry I can't give a more precise bug report. I wouldn't know what linking
flags were used or what objects were fed to ld, because I didn't build the
code.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]