This is an archive of the discontinued LLVM Phabricator instance.

Handle section header flags redefinitions similar to GAS
AbandonedPublic

Authored by christof on Feb 23 2017, 2:23 AM.

Details

Summary

A .section directive defining an already existing section has now the following behavior:

  • target specific flags (that is OS or PROC specific) are added to the existing section
  • Any other flag is ignored and a warning is emitted

This makes the integrated assembler behave like GNU as version 2.27.

Diff Detail

Event Timeline

christof created this revision.Feb 23 2017, 2:23 AM
christof abandoned this revision.Feb 28 2017, 1:55 AM

Summary from email conversation:

  • GAS redefinitions is considered bad style
  • Removing the pre-constructed .text/.bss/.data/... sections from MC is a possible better way, although Rafael did not come back if he likes that approach.

I'm abandoning this patch, as this mimics GAS too closely. And the patch at https://reviews.llvm.org/rL296180 disables redefinitions.