[i386] Add explicit flags and type on all .section declarations
authorMichael Brown <mcb30@etherboot.org>
Sun, 15 Feb 2009 10:54:52 +0000 (10:54 +0000)
committerMichael Brown <mcb30@etherboot.org>
Sun, 15 Feb 2009 10:59:53 +0000 (10:59 +0000)
commitc9e5b12473b6d1cfffb78c500b3cd91416d47f84
tree9908faa9367e7189974cd4cf1d5db57815830fbf
parentce2aa66d39344fa5d6097607d6344ebaf5dabcf4
[i386] Add explicit flags and type on all .section declarations

Try to avoid future problems caused by implicit section flags and/or
type information by instituting a policy that all .section
declarations must explicitly state the flags and type.

Most of this change was achieved using

    perl -pi \
      -e 's/".text"$/".text", "ax", \@progbits/ ; ' \
      -e 's/".text16"$/".text16", "ax", \@progbits/ ; ' \
      -e 's/".text16.null"$/".text16.null", "ax", \@progbits/ ; ' \
      -e 's/".text16.data"$/".text16.data", "aw", \@progbits/ ; ' \
      -e 's/".data"$/".data", "aw", \@progbits/ ; ' \
      -e 's/".data16"$/".data16", "aw", \@progbits/ ; ' \
      -e 's/".bss"$/".bss", "aw", \@nobits/ ; ' \
      -e 's/".bss16"$/".bss16", "aw", \@nobits/ ; ' \
      -e 's/".prefix"$/".prefix", "ax", \@progbits/ ; ' \
      -e 's/".prefix.lib"$/".prefix.lib", "awx", \@progbits/ ; ' \
      -e 's/".prefix.data"$/".prefix.data", "aw", \@progbits/ ; ' \
      -e 's/".weak"$/".weak", "a", \@nobits/ ; ' \
      `git grep -l '\.section'`
src/arch/i386/core/gdbidt.S
src/arch/i386/drivers/net/undiisr.S
src/arch/i386/firmware/pcbios/e820mangler.S
src/arch/i386/interface/pxe/pxe_entry.S
src/arch/i386/prefix/libprefix.S
src/arch/i386/prefix/nbiprefix.S
src/arch/i386/prefix/pxeprefix.S
src/arch/i386/transitions/librm.S
src/image/embed.S
src/tests/gdbstub_test.S