[PATCH] D136125: [MC][COFF] Add COFF section flag "Info"

Martin Storsjö via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 18 22:09:33 PDT 2022


mstorsjo added inline comments.


================
Comment at: llvm/test/MC/COFF/section.s:40
 .section s_y,"y"; .long 1
+.section s_i,"i"; .long 1
 
----------------
efriedma wrote:
> MaskRay wrote:
> > mstorsjo wrote:
> > > Is this a section flag that GNU as also supports, or is this flag a new invention (which hopefully doesn’t collide with something elder in GNU as)?
> > How can I configure binutils for Windows to check this?
> Not sure what exactly you're asking, but possible answers:
> 
> - mingw gcc/binutils binary packages are widely available; you don't need to try to build it yourself.
> - binutils source code does not refer to IMAGE_SCN_LNK_INFO anywhere relevant, and none of the documented flags produce it.
> - binutils currently produces an error message if you try to use "i".
Debian/Ubuntu based linux distros provide binutils targeting mingw in packages named e.g. `binutils-mingw-w64-x86-64` (and full toolchains pulled in by e.g. `gcc-mingw-w64-x86-64`). And you can build binutils yourself with e.g. `../binutils-gdb/configure --target=x86_64-w64-mingw32 --disable-werror --disable-gdb`.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D136125/new/

https://reviews.llvm.org/D136125



More information about the llvm-commits mailing list