Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 161651
b: refs/heads/master
c: 023bf6f
h: refs/heads/master
i:
  161649: 1ae0658
  161647: 3588836
v: v3
  • Loading branch information
Tejun Heo committed Jul 9, 2009
1 parent 54cb6b8 commit 44b60a9
Show file tree
Hide file tree
Showing 26 changed files with 81 additions and 156 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1dcdd0911b5553f0282ce8525773955b59a56919
refs/heads/master: 023bf6f1b8bf58dc4da7f0dc1cf4787b0d5297c1
10 changes: 2 additions & 8 deletions trunk/arch/alpha/kernel/vmlinux.lds.S
Original file line number Diff line number Diff line change
Expand Up @@ -134,14 +134,6 @@ SECTIONS
__bss_stop = .;
_end = .;

/* Sections to be discarded */
/DISCARD/ : {
EXIT_TEXT
EXIT_DATA
*(.exitcall.exit)
*(.discard)
}

.mdebug 0 : {
*(.mdebug)
}
Expand All @@ -151,4 +143,6 @@ SECTIONS

STABS_DEBUG
DWARF_DEBUG

DISCARDS
}
10 changes: 3 additions & 7 deletions trunk/arch/avr32/kernel/vmlinux.lds.S
Original file line number Diff line number Diff line change
Expand Up @@ -124,15 +124,11 @@ SECTIONS
_end = .;
}

DWARF_DEBUG

/* When something in the kernel is NOT compiled as a module, the module
* cleanup code and data are put into these segments. Both can then be
* thrown away, as cleanup code is never called unless it's a module.
*/
/DISCARD/ : {
EXIT_DATA
*(.exitcall.exit)
*(.discard)
}

DWARF_DEBUG
DISCARDS
}
6 changes: 1 addition & 5 deletions trunk/arch/blackfin/kernel/vmlinux.lds.S
Original file line number Diff line number Diff line change
Expand Up @@ -277,9 +277,5 @@ SECTIONS

DWARF_DEBUG

/DISCARD/ :
{
*(.exitcall.exit)
*(.discard)
}
DISCARDS
}
10 changes: 2 additions & 8 deletions trunk/arch/cris/kernel/vmlinux.lds.S
Original file line number Diff line number Diff line change
Expand Up @@ -140,13 +140,7 @@ SECTIONS
_end = .;
__end = .;

/* Sections to be discarded */
/DISCARD/ : {
EXIT_TEXT
EXIT_DATA
*(.exitcall.exit)
*(.discard)
}

dram_end = dram_start + (CONFIG_ETRAX_DRAM_SIZE - __CONFIG_ETRAX_VMEM_SIZE)*1024*1024;

DISCARDS
}
2 changes: 1 addition & 1 deletion trunk/arch/frv/kernel/vmlinux.lds.S
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ SECTIONS

.comment 0 : { *(.comment) }

/DISCARD/ : { *(.discard) }
DISCARDS
}

__kernel_image_size_no_bss = __bss_start - __kernel_image_start;
6 changes: 2 additions & 4 deletions trunk/arch/h8300/kernel/vmlinux.lds.S
Original file line number Diff line number Diff line change
Expand Up @@ -152,10 +152,6 @@ SECTIONS
__end = . ;
__ramstart = .;
}
/DISCARD/ : {
*(.exitcall.exit)
*(.discard)
}
.romfs :
{
*(.romfs*)
Expand All @@ -166,4 +162,6 @@ SECTIONS
COMMAND_START = . - 0x200 ;
__ramend = . ;
}

DISCARDS
}
17 changes: 8 additions & 9 deletions trunk/arch/ia64/kernel/vmlinux.lds.S
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,14 @@ PHDRS {
}
SECTIONS
{
/* Sections to be discarded */
/* unwind exit sections must be discarded before the rest of the
sections get included. */
/DISCARD/ : {
EXIT_TEXT
EXIT_DATA
*(.exitcall.exit)
*(.discard)
*(.IA_64.unwind.exit.text)
*(.IA_64.unwind_info.exit.text)
}
*(.comment)
*(.note)
}

v = PAGE_OFFSET; /* this symbol is here to make debugging easier... */
phys_start = _start - LOAD_OFFSET;
Expand Down Expand Up @@ -317,7 +316,7 @@ SECTIONS
.debug_funcnames 0 : { *(.debug_funcnames) }
.debug_typenames 0 : { *(.debug_typenames) }
.debug_varnames 0 : { *(.debug_varnames) }
/* These must appear regardless of . */
/DISCARD/ : { *(.comment) }
/DISCARD/ : { *(.note) }

/* Default discards */
DISCARDS
}
11 changes: 3 additions & 8 deletions trunk/arch/m32r/kernel/vmlinux.lds.S
Original file line number Diff line number Diff line change
Expand Up @@ -120,14 +120,6 @@ SECTIONS

_end = . ;

/* Sections to be discarded */
/DISCARD/ : {
EXIT_TEXT
EXIT_DATA
*(.exitcall.exit)
*(.discard)
}

/* Stabs debugging sections. */
.stab 0 : { *(.stab) }
.stabstr 0 : { *(.stabstr) }
Expand All @@ -136,4 +128,7 @@ SECTIONS
.stab.index 0 : { *(.stab.index) }
.stab.indexstr 0 : { *(.stab.indexstr) }
.comment 0 : { *(.comment) }

/* Sections to be discarded */
DISCARDS
}
11 changes: 3 additions & 8 deletions trunk/arch/m68k/kernel/vmlinux-std.lds
Original file line number Diff line number Diff line change
Expand Up @@ -82,14 +82,6 @@ SECTIONS

_end = . ;

/* Sections to be discarded */
/DISCARD/ : {
EXIT_TEXT
EXIT_DATA
*(.exitcall.exit)
*(.discard)
}

/* Stabs debugging sections. */
.stab 0 : { *(.stab) }
.stabstr 0 : { *(.stabstr) }
Expand All @@ -98,4 +90,7 @@ SECTIONS
.stab.index 0 : { *(.stab.index) }
.stab.indexstr 0 : { *(.stab.indexstr) }
.comment 0 : { *(.comment) }

/* Sections to be discarded */
DISCARDS
}
10 changes: 2 additions & 8 deletions trunk/arch/m68k/kernel/vmlinux-sun3.lds
Original file line number Diff line number Diff line change
Expand Up @@ -77,14 +77,6 @@ __init_begin = .;

_end = . ;

/* Sections to be discarded */
/DISCARD/ : {
EXIT_TEXT
EXIT_DATA
*(.exitcall.exit)
*(.discard)
}

.crap : {
/* Stabs debugging sections. */
*(.stab)
Expand All @@ -97,4 +89,6 @@ __init_begin = .;
*(.note)
}

/* Sections to be discarded */
DISCARDS
}
8 changes: 1 addition & 7 deletions trunk/arch/m68knommu/kernel/vmlinux.lds.S
Original file line number Diff line number Diff line change
Expand Up @@ -184,13 +184,6 @@ SECTIONS {
__init_end = .;
} > INIT

/DISCARD/ : {
EXIT_TEXT
EXIT_DATA
*(.exitcall.exit)
*(.discard)
}

.bss : {
. = ALIGN(4);
_sbss = . ;
Expand All @@ -201,5 +194,6 @@ SECTIONS {
_end = . ;
} > BSS

DISCARDS
}

2 changes: 1 addition & 1 deletion trunk/arch/microblaze/kernel/vmlinux.lds.S
Original file line number Diff line number Diff line change
Expand Up @@ -163,5 +163,5 @@ SECTIONS {
. = ALIGN(4096);
_end = .;

/DISCARD/ : { *(.discard) }
DISCARDS
}
22 changes: 10 additions & 12 deletions trunk/arch/mips/kernel/vmlinux.lds.S
Original file line number Diff line number Diff line change
Expand Up @@ -176,18 +176,6 @@ SECTIONS

_end = . ;

/* Sections to be discarded */
/DISCARD/ : {
*(.exitcall.exit)
*(.discard)

/* ABI crap starts here */
*(.MIPS.options)
*(.options)
*(.pdr)
*(.reginfo)
}

/* These mark the ABI of the kernel for debuggers. */
.mdebug.abi32 : {
KEEP(*(.mdebug.abi32))
Expand All @@ -213,4 +201,14 @@ SECTIONS
*(.gptab.bss)
*(.gptab.sbss)
}

/* Sections to be discarded */
DISCARDS
/DISCARD/ : {
/* ABI crap starts here */
*(.MIPS.options)
*(.options)
*(.pdr)
*(.reginfo)
}
}
9 changes: 3 additions & 6 deletions trunk/arch/mn10300/kernel/vmlinux.lds.S
Original file line number Diff line number Diff line change
Expand Up @@ -115,13 +115,10 @@ SECTIONS
. = ALIGN(PAGE_SIZE);
pg0 = .;

/* Sections to be discarded */
/DISCARD/ : {
EXIT_CALL
*(.discard)
}

STABS_DEBUG

DWARF_DEBUG

/* Sections to be discarded */
DISCARDS
}
9 changes: 4 additions & 5 deletions trunk/arch/parisc/kernel/vmlinux.lds.S
Original file line number Diff line number Diff line change
Expand Up @@ -237,10 +237,12 @@ SECTIONS
/* freed after init ends here */
_end = . ;

STABS_DEBUG
.note 0 : { *(.note) }

/* Sections to be discarded */
DISCARDS
/DISCARD/ : {
*(.exitcall.exit)
*(.discard)
#ifdef CONFIG_64BIT
/* temporary hack until binutils is fixed to not emit these
* for static binaries
Expand All @@ -253,7 +255,4 @@ SECTIONS
*(.gnu.hash)
#endif
}

STABS_DEBUG
.note 0 : { *(.note) }
}
10 changes: 3 additions & 7 deletions trunk/arch/powerpc/kernel/vmlinux.lds.S
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,6 @@ jiffies = jiffies_64 + 4;
#endif
SECTIONS
{
/* Sections to be discarded. */
/DISCARD/ : {
*(.exitcall.exit)
*(.discard)
EXIT_DATA
}

. = KERNELBASE;

/*
Expand Down Expand Up @@ -299,4 +292,7 @@ SECTIONS
. = ALIGN(PAGE_SIZE);
_end = . ;
PROVIDE32 (end = .);

/* Sections to be discarded. */
DISCARDS
}
10 changes: 3 additions & 7 deletions trunk/arch/s390/kernel/vmlinux.lds.S
Original file line number Diff line number Diff line change
Expand Up @@ -157,14 +157,10 @@ SECTIONS

_end = . ;

/* Sections to be discarded */
/DISCARD/ : {
EXIT_DATA
*(.exitcall.exit)
*(.discard)
}

/* Debugging sections. */
STABS_DEBUG
DWARF_DEBUG

/* Sections to be discarded */
DISCARDS
}
11 changes: 4 additions & 7 deletions trunk/arch/sh/kernel/vmlinux.lds.S
Original file line number Diff line number Diff line change
Expand Up @@ -163,17 +163,14 @@ SECTIONS
_end = . ;
}

STABS_DEBUG
DWARF_DEBUG

/*
* When something in the kernel is NOT compiled as a module, the
* module cleanup code and data are put into these segments. Both
* can then be thrown away, as cleanup code is never called unless
* it's a module.
*/
/DISCARD/ : {
*(.exitcall.exit)
*(.discard)
}

STABS_DEBUG
DWARF_DEBUG
DISCARDS
}
9 changes: 2 additions & 7 deletions trunk/arch/sparc/kernel/vmlinux.lds.S
Original file line number Diff line number Diff line change
Expand Up @@ -171,13 +171,8 @@ SECTIONS
}
_end = . ;

/DISCARD/ : {
EXIT_TEXT
EXIT_DATA
*(.exitcall.exit)
*(.discard)
}

STABS_DEBUG
DWARF_DEBUG

DISCARDS
}
5 changes: 0 additions & 5 deletions trunk/arch/um/include/asm/common.lds.S
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,3 @@
__initramfs_end = .;
}

/* Sections to be discarded */
/DISCARD/ : {
*(.exitcall.exit)
}

2 changes: 1 addition & 1 deletion trunk/arch/um/kernel/dyn.lds.S
Original file line number Diff line number Diff line change
Expand Up @@ -157,5 +157,5 @@ SECTIONS

DWARF_DEBUG

/DISCARD/ : { *(.discard) }
DISCARDS
}
Loading

0 comments on commit 44b60a9

Please sign in to comment.