Message ID | 20230413185922.ufmollqlnlghwyvy@treble (mailing list archive) |
---|---|
State | Superseded |
Headers | show |
Series | vmlinux.lds.h: Discard .note.gnu.property section | expand |
Context | Check | Description |
---|---|---|
netdev/tree_selection | success | Not a local patch |
Two small nitpicks: > Link: https://lkml.kernel.org/lkml/57830c30-cd77-40cf-9cd1-3bb608aa602e@app.fastmail.com This link is "semi-broken", it should go to /bpf/ instead of /lkml/. > /DISCARD/ : { *(.note.GNU-stack) } \ > + /DISCARD/ : { *(.note.gnu.property) } \ Both discards can go in the same DISCARD block. (just style; it's how it's most often done in other linker scripts)
On Sun, Apr 16, 2023 at 07:02:19PM +0000, Joan Bruguera Micó wrote: > Two small nitpicks: > > > Link: https://lkml.kernel.org/lkml/57830c30-cd77-40cf-9cd1-3bb608aa602e@app.fastmail.com > > This link is "semi-broken", it should go to /bpf/ instead of /lkml/. > > > /DISCARD/ : { *(.note.GNU-stack) } \ > > + /DISCARD/ : { *(.note.gnu.property) } \ > > Both discards can go in the same DISCARD block. > (just style; it's how it's most often done in other linker scripts) Thanks. I also noticed the comment above the change needs an update. Posting v2 shortly.
diff --git a/include/asm-generic/vmlinux.lds.h b/include/asm-generic/vmlinux.lds.h index d1f57e4868ed..1770b7d87a80 100644 --- a/include/asm-generic/vmlinux.lds.h +++ b/include/asm-generic/vmlinux.lds.h @@ -894,6 +894,7 @@ */ #define NOTES \ /DISCARD/ : { *(.note.GNU-stack) } \ + /DISCARD/ : { *(.note.gnu.property) } \ .notes : AT(ADDR(.notes) - LOAD_OFFSET) { \ BOUNDED_SECTION_BY(.note.*, _notes) \ } NOTES_HEADERS \