Skip to content

Commit a0a3428

Browse files
committed
Do not discard .gnu.note, GNU ld complains when we link object files
1 parent 06682ae commit a0a3428

File tree

6 files changed

+0
-42
lines changed

6 files changed

+0
-42
lines changed

bindings/solo5_hvt.lds

-7
Original file line numberDiff line numberDiff line change
@@ -149,13 +149,6 @@ SECTIONS {
149149
. = ALIGN(CONSTANT(MAXPAGESIZE));
150150
_ebss = .;
151151
_end = .;
152-
153-
/* We are not building a GNU executable, so discard any default NOTEs the
154-
toolchain might generate to prevent any surprises in the final layout. */
155-
/DISCARD/ : {
156-
*(.note.gnu.*)
157-
}
158-
159152
_ltdata = _edata - _stdata;
160153
_ltbss = SIZEOF(.tbss);
161154
}

bindings/solo5_muen.lds

-7
Original file line numberDiff line numberDiff line change
@@ -148,13 +148,6 @@ SECTIONS {
148148
. = ALIGN(CONSTANT(MAXPAGESIZE));
149149
_ebss = .;
150150
_end = .;
151-
152-
/* We are not building a GNU executable, so discard any default NOTEs the
153-
toolchain might generate to prevent any surprises in the final layout. */
154-
/DISCARD/ : {
155-
*(.note.gnu.*)
156-
}
157-
158151
_ltdata = SIZEOF(.tdata);
159152
_ltbss = SIZEOF(.tbss);
160153
}

bindings/solo5_spt.lds

-7
Original file line numberDiff line numberDiff line change
@@ -147,13 +147,6 @@ SECTIONS {
147147
. = ALIGN(CONSTANT(MAXPAGESIZE));
148148
_ebss = .;
149149
_end = .;
150-
151-
/* We are not building a GNU executable, so discard any default NOTEs the
152-
toolchain might generate to prevent any surprises in the final layout. */
153-
/DISCARD/ : {
154-
*(.note.gnu.*)
155-
}
156-
157150
_ltdata = _edata - _stdata;
158151
_ltbss = SIZEOF(.tbss);
159152
}

bindings/solo5_stub.lds

-7
Original file line numberDiff line numberDiff line change
@@ -147,13 +147,6 @@ SECTIONS {
147147
. = ALIGN(CONSTANT(MAXPAGESIZE));
148148
_ebss = .;
149149
_end = .;
150-
151-
/* We are not building a GNU executable, so discard any default NOTEs the
152-
toolchain might generate to prevent any surprises in the final layout. */
153-
/DISCARD/ : {
154-
*(.note.gnu.*)
155-
}
156-
157150
_ltdata = SIZEOF(.tdata);
158151
_ltbss = SIZEOF(.tbss);
159152
}

bindings/solo5_virtio.lds

-7
Original file line numberDiff line numberDiff line change
@@ -148,13 +148,6 @@ SECTIONS {
148148
. = ALIGN(CONSTANT(MAXPAGESIZE));
149149
_ebss = .;
150150
_end = .;
151-
152-
/* We are not building a GNU executable, so discard any default NOTEs the
153-
toolchain might generate to prevent any surprises in the final layout. */
154-
/DISCARD/ : {
155-
*(.note.gnu.*)
156-
}
157-
158151
_ltdata = _edata - _stdata;
159152
_ltbss = SIZEOF(.tbss);
160153
}

bindings/solo5_xen.lds

-7
Original file line numberDiff line numberDiff line change
@@ -153,13 +153,6 @@ SECTIONS {
153153
. = ALIGN(CONSTANT(MAXPAGESIZE));
154154
_ebss = .;
155155
_end = .;
156-
157-
/* We are not building a GNU executable, so discard any default NOTEs the
158-
toolchain might generate to prevent any surprises in the final layout. */
159-
/DISCARD/ : {
160-
*(.note.gnu.*)
161-
}
162-
163156
_ltdata = _edata - _stdata;
164157
_ltbss = SIZEOF(.tbss);
165158
}

0 commit comments

Comments
 (0)