This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch] Enable long section names for --add-gnu-debuglink


Attached patch to enable usage of long section names
when

--add-gnu-debuglink=<file>
     Add section .gnu_debuglink linking to <file>

is requested.

Otherwise on cygwin some time the section name is cut from
".gnu_debuglink" to ".gnu_deb"


$ objdump -h /usr/bin/cygcrypto-1.0.0.dll


/usr/bin/cygcrypto-1.0.0.dll: file format pei-i386

Sections:
Idx Name          Size      VMA       LMA       File off  Algn
  0 .text         00116d0c  67331000  67331000  00000400  2**6
                  CONTENTS, ALLOC, LOAD, READONLY, CODE, DATA
  1 .data         0003c1c4  67448000  67448000  00117200  2**5
                  CONTENTS, ALLOC, LOAD, DATA
  2 .eh_fram      00000004  67485000  67485000  00153400  2**2
                  CONTENTS, ALLOC, LOAD, DATA
  3 .bss          00002508  67486000  67486000  00000000  2**5
                  ALLOC
  4 .edata        0001c649  67489000  67489000  00153600  2**2
                  CONTENTS, ALLOC, LOAD, READONLY, DATA
  5 .idata        00000adc  674a6000  674a6000  0016fe00  2**2
                  CONTENTS, ALLOC, LOAD, DATA
  6 .rsrc         00000450  674a7000  674a7000  00170a00  2**2
                  CONTENTS, ALLOC, LOAD, DATA
  7 .reloc        00009b2c  674a8000  674a8000  00171000  2**2
                  CONTENTS, ALLOC, LOAD, READONLY, DATA
  8 .gnu_deb      0000001c  674b2000  674b2000  0017ac00  2**2
                  CONTENTS, ALLOC, LOAD, READONLY, DATA


Regards Marco

Attachment: objcopy_debuglink.patch
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]