[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug gas/27688] gas does not support .secidx pseudo-directive
From: |
hjl.tools at gmail dot com |
Subject: |
[Bug gas/27688] gas does not support .secidx pseudo-directive |
Date: |
Fri, 02 Apr 2021 13:42:18 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=27688
H.J. Lu <hjl.tools at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |hjl.tools at gmail dot com
--- Comment #1 from H.J. Lu <hjl.tools at gmail dot com> ---
(In reply to Mark Harmstone from comment #0)
> Created attachment 13345 [details]
> 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.
Such patch needs both assembler and linker tests. Do you have copyright
paper with the FSF?
--
You are receiving this mail because:
You are on the CC list for the bug.