https://sourceware.org/bugzilla/show_bug.cgi?id=27688
Bug ID: 27688
Summary: gas does not support .secidx pseudo-directive
Product: binutils
Version: unspecified
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: gas
Assignee: unassigned at sourceware dot org
Reporter: mark at harmstone dot com
Target Milestone: ---
Created attachment 13345
--> https://sourceware.org/bugzilla/attachment.cgi?id=13345&action=edit
secidx patch
llvm-mc has a pseudo-directive .secidx for COFF files, which maps to a
IMAGE_REL_I386_SECTION / IMAGE_REL_AMD64_SECTION relocation entry. This is a
two-byte field which gets set to the section index of a label when it's linked.
This is necessary for support for CodeView / PDB debugging, as addresses are
represented by a two-byte section index and a four-byte offset (i.e. a .secidx
and a .secrel32). See also my CodeView patches to the gcc mailing list, which
rely on this to work.
I've attached a patch, which implements this for x86 and amd64.
--
You are receiving this mail because:
You are on the CC list for the bug.