diff options
author | Michael Brown | 2009-02-15 11:54:52 +0100 |
---|---|---|
committer | Michael Brown | 2009-02-15 11:59:53 +0100 |
commit | c9e5b12473b6d1cfffb78c500b3cd91416d47f84 (patch) | |
tree | 9908faa9367e7189974cd4cf1d5db57815830fbf /src/tests | |
parent | [i386] Add explicit ""aw", @nobits" declarations to stack sections (diff) | |
download | ipxe-c9e5b12473b6d1cfffb78c500b3cd91416d47f84.tar.gz ipxe-c9e5b12473b6d1cfffb78c500b3cd91416d47f84.tar.xz ipxe-c9e5b12473b6d1cfffb78c500b3cd91416d47f84.zip |
[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'`
Diffstat (limited to 'src/tests')
-rw-r--r-- | src/tests/gdbstub_test.S | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tests/gdbstub_test.S b/src/tests/gdbstub_test.S index bd293836..739b0527 100644 --- a/src/tests/gdbstub_test.S +++ b/src/tests/gdbstub_test.S @@ -1,10 +1,10 @@ .arch i386 - .section ".data" + .section ".data", "aw", @progbits watch_me: .long 0xfeedbeef - .section ".text" + .section ".text", "ax", @progbits .code32 gdbstub_test: /* 1. Read registers test */ |