HomePhabricator

ELFObjectWriter: Don't sort local symbols

Authored by MaskRay on Feb 7 2021, 3:47 PM.

Description

ELFObjectWriter: Don't sort local symbols

GNU as does not sort local symbols. This has several advantages:

  • The .symtab order is roughly the symbol occurrence order.
  • The closest preceding STT_SECTION symbol is the definition of a local symbol.
  • The closest preceding STT_FILE symbol is the defining file of a local symbol, if there are multiple default-version .file directives. (Not implemented in MC.)

Details

Committed
MaskRayFeb 7 2021, 3:47 PM
Parents
rGca268ed28520: [ConstraintElimination] Decompose zext for unsigned compares.
Branches
Unknown
Tags
Unknown