Skip to content

Commit

Permalink
Use portable comments
Browse files Browse the repository at this point in the history
Issue: #113
  • Loading branch information
dspinellis committed Sep 23, 2020
1 parent 719e2d7 commit 9e695a5
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions core-tools/src/dgsh-elf.s
Original file line number Diff line number Diff line change
@@ -1,15 +1,20 @@
# ELF note header to mark dgsh-compatible programs
# See http://www.netbsd.org/docs/kernel/elf-notes.html
/*
* ELF note header to mark dgsh-compatible programs
* See http://www.netbsd.org/docs/kernel/elf-notes.html
* Don't use line comments as these are not portable between
* different CPU architectures.
* https://en.wikipedia.org/wiki/GNU_Assembler#Single-Line_comments
*/

.comm dgsh_force_include,4,4
.section ".note.ident", "a"
.p2align 2
.long 1f - 0f # name size (not including padding)
.long 3f - 2f # desc size (not including padding)
.long 1 # type
0: .asciz "DSpinellis/dgsh" # name
.long 1f - 0f /* name size (not including padding) */
.long 3f - 2f /* desc size (not including padding) */
.long 1 /* type */
0: .asciz "DSpinellis/dgsh" /* name */
1: .p2align 2
2: .long 0x00000001 # desc
2: .long 0x00000001 /* desc */
.long 0x00000000
3: .p2align 2

0 comments on commit 9e695a5

Please sign in to comment.