Re: [RFC-v5] Fix .text section offset for windows DLL (was Calling __stdcall functions in the inferior)

Pedro Alves
2012-12-07T17:10:03Z

I haven't tried to grok the patch, but Kai tells me that a section name in PE headers
are stored in 8 character arrays, and are not necessarily zero-terminated.
He was wondering, and now I am too, if it wouldn't be possible to make use
of bfd routines to get at the necessary info, like the .text section offset.
E.g., bfd handles the long section name PE extension to coff (see coffcode.h in
bfd), though I'm not sure that needs to apply here.

--
Pedro Alves