Skip to content

Commit

Permalink
Do not discard .gnu.note, GNU ld complains when we link object files
Browse files Browse the repository at this point in the history
  • Loading branch information
dinosaure committed Feb 28, 2024
1 parent 06682ae commit a0a3428
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 42 deletions.
7 changes: 0 additions & 7 deletions bindings/solo5_hvt.lds
Original file line number Diff line number Diff line change
Expand Up @@ -149,13 +149,6 @@ SECTIONS {
. = ALIGN(CONSTANT(MAXPAGESIZE));
_ebss = .;
_end = .;

/* We are not building a GNU executable, so discard any default NOTEs the
toolchain might generate to prevent any surprises in the final layout. */
/DISCARD/ : {
*(.note.gnu.*)
}

_ltdata = _edata - _stdata;
_ltbss = SIZEOF(.tbss);
}
7 changes: 0 additions & 7 deletions bindings/solo5_muen.lds
Original file line number Diff line number Diff line change
Expand Up @@ -148,13 +148,6 @@ SECTIONS {
. = ALIGN(CONSTANT(MAXPAGESIZE));
_ebss = .;
_end = .;

/* We are not building a GNU executable, so discard any default NOTEs the
toolchain might generate to prevent any surprises in the final layout. */
/DISCARD/ : {
*(.note.gnu.*)
}

_ltdata = SIZEOF(.tdata);
_ltbss = SIZEOF(.tbss);
}
7 changes: 0 additions & 7 deletions bindings/solo5_spt.lds
Original file line number Diff line number Diff line change
Expand Up @@ -147,13 +147,6 @@ SECTIONS {
. = ALIGN(CONSTANT(MAXPAGESIZE));
_ebss = .;
_end = .;

/* We are not building a GNU executable, so discard any default NOTEs the
toolchain might generate to prevent any surprises in the final layout. */
/DISCARD/ : {
*(.note.gnu.*)
}

_ltdata = _edata - _stdata;
_ltbss = SIZEOF(.tbss);
}
7 changes: 0 additions & 7 deletions bindings/solo5_stub.lds
Original file line number Diff line number Diff line change
Expand Up @@ -147,13 +147,6 @@ SECTIONS {
. = ALIGN(CONSTANT(MAXPAGESIZE));
_ebss = .;
_end = .;

/* We are not building a GNU executable, so discard any default NOTEs the
toolchain might generate to prevent any surprises in the final layout. */
/DISCARD/ : {
*(.note.gnu.*)
}

_ltdata = SIZEOF(.tdata);
_ltbss = SIZEOF(.tbss);
}
7 changes: 0 additions & 7 deletions bindings/solo5_virtio.lds
Original file line number Diff line number Diff line change
Expand Up @@ -148,13 +148,6 @@ SECTIONS {
. = ALIGN(CONSTANT(MAXPAGESIZE));
_ebss = .;
_end = .;

/* We are not building a GNU executable, so discard any default NOTEs the
toolchain might generate to prevent any surprises in the final layout. */
/DISCARD/ : {
*(.note.gnu.*)
}

_ltdata = _edata - _stdata;
_ltbss = SIZEOF(.tbss);
}
7 changes: 0 additions & 7 deletions bindings/solo5_xen.lds
Original file line number Diff line number Diff line change
Expand Up @@ -153,13 +153,6 @@ SECTIONS {
. = ALIGN(CONSTANT(MAXPAGESIZE));
_ebss = .;
_end = .;

/* We are not building a GNU executable, so discard any default NOTEs the
toolchain might generate to prevent any surprises in the final layout. */
/DISCARD/ : {
*(.note.gnu.*)
}

_ltdata = _edata - _stdata;
_ltbss = SIZEOF(.tbss);
}

0 comments on commit a0a3428

Please sign in to comment.