Mathieu Desnoyers wrote:
nitpicking :.section __discard,"a",@progbitscould we simply declare a.section __discard,"",@progbits instead ? I think this should remove the need to tweak the linker script, since the section would not be allocated.
The allocation flag is a loader property, not a linker property. It would still be manifest in the vmlinux file; I think this is undesirable. Perhaps not a big deal, but neither is adding a /DISCARD/ statement to the linker script:
/DISCARD/ : { *(__discard) } -hpa - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
- Follow-Ups:
- [PATCH] Add __discard section to x86
- From: Mathieu Desnoyers <[email protected]>
- [PATCH] Add __discard section to x86
- References:
- Re: [patch 5/8] Immediate Values - x86 Optimization
- From: Mathieu Desnoyers <[email protected]>
- Re: [patch 5/8] Immediate Values - x86 Optimization
- From: "H. Peter Anvin" <[email protected]>
- Re: [patch 5/8] Immediate Values - x86 Optimization (update)
- From: Mathieu Desnoyers <[email protected]>
- Re: [patch 5/8] Immediate Values - x86 Optimization (update)
- From: "H. Peter Anvin" <[email protected]>
- Re: [patch 5/8] Immediate Values - x86 Optimization (update)
- From: Mathieu Desnoyers <[email protected]>
- Re: [patch 5/8] Immediate Values - x86 Optimization (update)
- From: "H. Peter Anvin" <[email protected]>
- Re: [patch 5/8] Immediate Values - x86 Optimization (update)
- From: Mathieu Desnoyers <[email protected]>
- Re: [patch 5/8] Immediate Values - x86 Optimization (update)
- From: "H. Peter Anvin" <[email protected]>
- Re: [patch 5/8] Immediate Values - x86 Optimization (update 2)
- From: Mathieu Desnoyers <[email protected]>
- Re: [patch 5/8] Immediate Values - x86 Optimization (update 2)
- From: "H. Peter Anvin" <[email protected]>
- [PATCH] Immediate Values x86 Optimization Declare Discarded Instruction
- From: Mathieu Desnoyers <[email protected]>
- Re: [patch 5/8] Immediate Values - x86 Optimization
- Prev by Date: Re: User Mode Linux still broken in 2.6.23.1
- Next by Date: Re: [bug] SLOB crash, 2.6.24-rc2
- Previous by thread: [PATCH] Immediate Values x86 Optimization Declare Discarded Instruction
- Next by thread: [PATCH] Add __discard section to x86
- Index(es):