This is an archive of the discontinued LLVM Phabricator instance.

COFF generator correction: SECTION relocation size changed to 16 bit from 32
ClosedPublic

Authored by aguskov on Oct 7 2014, 9:14 AM.

Details

Reviewers
timurrrr

Diff Detail

Event Timeline

aguskov updated this revision to Diff 14515.Oct 7 2014, 9:14 AM
aguskov retitled this revision from to COFF generator correction: SECTION relocation size changed to 16 bit from 32.
aguskov updated this object.
aguskov edited the test plan for this revision. (Show Details)
aguskov added a reviewer: timurrrr.
aguskov changed the visibility from "Public (No Login Required)" to "All Users".
aguskov added a subscriber: Unknown Object (MLST).
timurrrr edited edge metadata.Oct 7 2014, 9:18 AM

Minor nits follow:

lib/CodeGen/AsmPrinter/WinCodeViewLineTables.cpp
169

nit: after a 16-bit section index

lib/MC/WinCOFFStreamer.cpp
165

Wording: please use just

// Unlike 32-bit SECREL, section index is just 16-bit.
test/MC/COFF/secidx.s
7

I suggest we add .short 0 between these as we've yet to see a .secidx directive which is not 4-byte aligned (right?).

timurrrr edited edge metadata.Oct 8 2014, 10:59 AM
timurrrr changed the visibility from "All Users" to "Public (No Login Required)".
timurrrr accepted this revision.Oct 8 2014, 11:12 AM
timurrrr edited edge metadata.

r219327!

This revision is now accepted and ready to land.Oct 8 2014, 11:12 AM
timurrrr closed this revision.Oct 8 2014, 11:12 AM