Skip to content

Commit

Permalink
Merge pull request #502 from renatoalencar/fix-lds-syntax
Browse files Browse the repository at this point in the history
Fix LD scripts syntax
  • Loading branch information
dinosaure authored Dec 13, 2021
2 parents 0eb8cb8 + d2e76fe commit 77432fe
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 21 deletions.
8 changes: 4 additions & 4 deletions bindings/hvt/solo5_hvt.lds
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ PHDRS {
text PT_LOAD FLAGS(5); /* No FILEHDR or PHDRS, force R/E only.
FLAGS values come from PF_x in elf.h */
data PT_LOAD;
note.not-openbsd PT_NOTE; /* Must come first. */
note.not_openbsd PT_NOTE; /* Must come first. */
note.abi PT_NOTE;
note.manifest PT_NOTE;
}
Expand Down Expand Up @@ -78,10 +78,10 @@ SECTIONS {
{
*(.note.solo5.abi*)
} :text :note.abi
.note.solo5.not-openbsd :
.note.solo5.not_openbsd :
{
*(.note.solo5.not-openbsd*)
} :text :note.not-openbsd
*(.note.solo5.not_openbsd*)
} :text :note.not_openbsd

.rodata :
{
Expand Down
8 changes: 4 additions & 4 deletions bindings/muen/solo5_muen.lds
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ PHDRS {
FLAGS values come from PF_x in elf.h */
rodata PT_LOAD;
data PT_LOAD;
note.not-openbsd PT_NOTE; /* Must come first. */
note.not_openbsd PT_NOTE; /* Must come first. */
note.abi PT_NOTE;
note.manifest PT_NOTE;
}
Expand Down Expand Up @@ -79,10 +79,10 @@ SECTIONS {
{
*(.note.solo5.abi*)
} :rodata :note.abi
.note.solo5.not-openbsd :
.note.solo5.not_openbsd :
{
*(.note.solo5.not-openbsd*)
} :rodata :note.not-openbsd
*(.note.solo5.not_openbsd*)
} :rodata :note.not_openbsd

.rodata :
{
Expand Down
8 changes: 4 additions & 4 deletions bindings/spt/solo5_spt.lds
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ PHDRS {
text PT_LOAD FLAGS(5); /* No FILEHDR or PHDRS, force R/E only.
FLAGS values come from PF_x in elf.h */
data PT_LOAD;
note.not-openbsd PT_NOTE; /* Must come first. */
note.not_openbsd PT_NOTE; /* Must come first. */
note.abi PT_NOTE;
note.manifest PT_NOTE;
}
Expand Down Expand Up @@ -78,10 +78,10 @@ SECTIONS {
{
*(.note.solo5.abi*)
} :text :note.abi
.note.solo5.not-openbsd :
.note.solo5.not_openbsd :
{
*(.note.solo5.not-openbsd*)
} :text :note.not-openbsd
*(.note.solo5.not_openbsd*)
} :text :note.not_openbsd

.rodata :
{
Expand Down
8 changes: 4 additions & 4 deletions bindings/virtio/solo5_virtio.lds
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ PHDRS {
text PT_LOAD FLAGS(5); /* No FILEHDR or PHDRS, force R/E only.
FLAGS values come from PF_x in elf.h */
data PT_LOAD;
note.not-openbsd PT_NOTE; /* Must come first. */
note.not_openbsd PT_NOTE; /* Must come first. */
note.abi PT_NOTE;
note.manifest PT_NOTE;
}
Expand Down Expand Up @@ -96,10 +96,10 @@ SECTIONS {
{
*(.note.solo5.abi*)
} :data :note.abi
.note.solo5.not-openbsd :
.note.solo5.not_openbsd :
{
*(.note.solo5.not-openbsd*)
} :data :note.not-openbsd
*(.note.solo5.not_openbsd*)
} :data :note.not_openbsd

/* Read-write data (initialized) */
.got :
Expand Down
8 changes: 4 additions & 4 deletions bindings/xen/solo5_xen.lds
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ PHDRS {
text PT_LOAD FLAGS(5); /* No FILEHDR or PHDRS, force R/E only.
FLAGS values come from PF_x in elf.h */
data PT_LOAD;
note.not-openbsd PT_NOTE; /* Must come first. */
note.not_openbsd PT_NOTE; /* Must come first. */
note.xen PT_NOTE;
note.abi PT_NOTE;
note.manifest PT_NOTE;
Expand Down Expand Up @@ -97,10 +97,10 @@ SECTIONS {
{
*(.note.solo5.abi*)
} :data :note.abi
.note.solo5.not-openbsd :
.note.solo5.not_openbsd :
{
*(.note.solo5.not-openbsd*)
} :data :note.not-openbsd
*(.note.solo5.not_openbsd*)
} :data :note.not_openbsd
.note.solo5.xen :
{
*(.note.solo5.xen*)
Expand Down
2 changes: 1 addition & 1 deletion include/solo5/elf_abi.h
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ struct openbsd_note {
*/
#define DECLARE_OPENBSD_NOTE \
const struct openbsd_note __solo5_openbsd_note \
__attribute__ ((section (".note.solo5.not-openbsd"), aligned(4))) \
__attribute__ ((section (".note.solo5.not_openbsd"), aligned(4))) \
= { \
.n_namesz = 8, \
.n_descsz = 4, \
Expand Down

0 comments on commit 77432fe

Please sign in to comment.