Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 161628
b: refs/heads/master
c: 405d967
h: refs/heads/master
v: v3
  • Loading branch information
Tejun Heo committed Jun 24, 2009
1 parent b3dbf21 commit ed7528d
Show file tree
Hide file tree
Showing 27 changed files with 45 additions and 2 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: e74e396204bfcb67570ba4517b08f5918e69afea
refs/heads/master: 405d967dc70002991f8fc35c20e0d3cbc7614f63
2 changes: 1 addition & 1 deletion trunk/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ CHECKFLAGS := -D__linux__ -Dlinux -D__STDC__ -Dunix -D__unix__ \
MODFLAGS = -DMODULE
CFLAGS_MODULE = $(MODFLAGS)
AFLAGS_MODULE = $(MODFLAGS)
LDFLAGS_MODULE =
LDFLAGS_MODULE = -T $(srctree)/scripts/module-common.lds
CFLAGS_KERNEL =
AFLAGS_KERNEL =
CFLAGS_GCOV = -fprofile-arcs -ftest-coverage
Expand Down
1 change: 1 addition & 0 deletions trunk/arch/alpha/kernel/vmlinux.lds.S
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ SECTIONS
EXIT_TEXT
EXIT_DATA
*(.exitcall.exit)
*(.discard)
}

.mdebug 0 : {
Expand Down
1 change: 1 addition & 0 deletions trunk/arch/arm/kernel/vmlinux.lds.S
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ SECTIONS
EXIT_TEXT
EXIT_DATA
*(.exitcall.exit)
*(.discard)
*(.ARM.exidx.exit.text)
*(.ARM.extab.exit.text)
#ifndef CONFIG_MMU
Expand Down
1 change: 1 addition & 0 deletions trunk/arch/avr32/kernel/vmlinux.lds.S
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ SECTIONS
/DISCARD/ : {
EXIT_DATA
*(.exitcall.exit)
*(.discard)
}

DWARF_DEBUG
Expand Down
1 change: 1 addition & 0 deletions trunk/arch/blackfin/kernel/vmlinux.lds.S
Original file line number Diff line number Diff line change
Expand Up @@ -280,5 +280,6 @@ SECTIONS
/DISCARD/ :
{
*(.exitcall.exit)
*(.discard)
}
}
1 change: 1 addition & 0 deletions trunk/arch/cris/kernel/vmlinux.lds.S
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ SECTIONS
EXIT_TEXT
EXIT_DATA
*(.exitcall.exit)
*(.discard)
}

dram_end = dram_start + (CONFIG_ETRAX_DRAM_SIZE - __CONFIG_ETRAX_VMEM_SIZE)*1024*1024;
Expand Down
2 changes: 2 additions & 0 deletions trunk/arch/frv/kernel/vmlinux.lds.S
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,8 @@ SECTIONS
.debug_ranges 0 : { *(.debug_ranges) }

.comment 0 : { *(.comment) }

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

__kernel_image_size_no_bss = __bss_start - __kernel_image_start;
1 change: 1 addition & 0 deletions trunk/arch/h8300/kernel/vmlinux.lds.S
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ SECTIONS
}
/DISCARD/ : {
*(.exitcall.exit)
*(.discard)
}
.romfs :
{
Expand Down
1 change: 1 addition & 0 deletions trunk/arch/ia64/kernel/vmlinux.lds.S
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ SECTIONS
EXIT_TEXT
EXIT_DATA
*(.exitcall.exit)
*(.discard)
*(.IA_64.unwind.exit.text)
*(.IA_64.unwind_info.exit.text)
}
Expand Down
1 change: 1 addition & 0 deletions trunk/arch/m32r/kernel/vmlinux.lds.S
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ SECTIONS
EXIT_TEXT
EXIT_DATA
*(.exitcall.exit)
*(.discard)
}

/* Stabs debugging sections. */
Expand Down
1 change: 1 addition & 0 deletions trunk/arch/m68k/kernel/vmlinux-std.lds
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ SECTIONS
EXIT_TEXT
EXIT_DATA
*(.exitcall.exit)
*(.discard)
}

/* Stabs debugging sections. */
Expand Down
1 change: 1 addition & 0 deletions trunk/arch/m68k/kernel/vmlinux-sun3.lds
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ __init_begin = .;
EXIT_TEXT
EXIT_DATA
*(.exitcall.exit)
*(.discard)
}

.crap : {
Expand Down
1 change: 1 addition & 0 deletions trunk/arch/m68knommu/kernel/vmlinux.lds.S
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@ SECTIONS {
EXIT_TEXT
EXIT_DATA
*(.exitcall.exit)
*(.discard)
}

.bss : {
Expand Down
2 changes: 2 additions & 0 deletions trunk/arch/microblaze/kernel/vmlinux.lds.S
Original file line number Diff line number Diff line change
Expand Up @@ -162,4 +162,6 @@ SECTIONS {
}
. = ALIGN(4096);
_end = .;

/DISCARD/ : { *(.discard) }
}
1 change: 1 addition & 0 deletions trunk/arch/mips/kernel/vmlinux.lds.S
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@ SECTIONS
/* Sections to be discarded */
/DISCARD/ : {
*(.exitcall.exit)
*(.discard)

/* ABI crap starts here */
*(.MIPS.options)
Expand Down
1 change: 1 addition & 0 deletions trunk/arch/mn10300/kernel/vmlinux.lds.S
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ SECTIONS
/* Sections to be discarded */
/DISCARD/ : {
*(.exitcall.exit)
*(.discard)
}

STABS_DEBUG
Expand Down
1 change: 1 addition & 0 deletions trunk/arch/parisc/kernel/vmlinux.lds.S
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,7 @@ SECTIONS
/* Sections to be discarded */
/DISCARD/ : {
*(.exitcall.exit)
*(.discard)
#ifdef CONFIG_64BIT
/* temporary hack until binutils is fixed to not emit these
* for static binaries
Expand Down
1 change: 1 addition & 0 deletions trunk/arch/powerpc/kernel/vmlinux.lds.S
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ SECTIONS
/* Sections to be discarded. */
/DISCARD/ : {
*(.exitcall.exit)
*(.discard)
EXIT_DATA
}

Expand Down
1 change: 1 addition & 0 deletions trunk/arch/s390/kernel/vmlinux.lds.S
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ SECTIONS
/DISCARD/ : {
EXIT_DATA
*(.exitcall.exit)
*(.discard)
}

/* Debugging sections. */
Expand Down
1 change: 1 addition & 0 deletions trunk/arch/sh/kernel/vmlinux.lds.S
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ SECTIONS
*/
/DISCARD/ : {
*(.exitcall.exit)
*(.discard)
}

STABS_DEBUG
Expand Down
1 change: 1 addition & 0 deletions trunk/arch/sparc/kernel/vmlinux.lds.S
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ SECTIONS
EXIT_TEXT
EXIT_DATA
*(.exitcall.exit)
*(.discard)
}

STABS_DEBUG
Expand Down
2 changes: 2 additions & 0 deletions trunk/arch/um/kernel/dyn.lds.S
Original file line number Diff line number Diff line change
Expand Up @@ -156,4 +156,6 @@ SECTIONS
STABS_DEBUG

DWARF_DEBUG

/DISCARD/ : { *(.discard) }
}
2 changes: 2 additions & 0 deletions trunk/arch/um/kernel/uml.lds.S
Original file line number Diff line number Diff line change
Expand Up @@ -100,4 +100,6 @@ SECTIONS
STABS_DEBUG

DWARF_DEBUG

/DISCARD/ : { *(.discard) }
}
1 change: 1 addition & 0 deletions trunk/arch/xtensa/kernel/vmlinux.lds.S
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,7 @@ SECTIONS
EXIT_TEXT
EXIT_DATA
*(.exitcall.exit)
*(.discard)
}

.xt.lit : { *(.xt.lit) }
Expand Down
8 changes: 8 additions & 0 deletions trunk/include/asm-generic/vmlinux.lds.h
Original file line number Diff line number Diff line change
Expand Up @@ -628,6 +628,14 @@
#define INITRAMFS
#endif

#define DISCARDS \
/DISCARD/ : { \
EXIT_TEXT \
EXIT_DATA \
*(.exitcall.exit) \
*(.discard) \
}

/**
* PERCPU_VADDR - define output section for percpu area
* @vaddr: explicit base address (optional)
Expand Down
8 changes: 8 additions & 0 deletions trunk/scripts/module-common.lds
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/*
* Common module linker script, always used when linking a module.
* Archs are free to supply their own linker scripts. ld will
* combine them automatically.
*/
SECTIONS {
/DISCARD/ : { *(.discard) }
}

0 comments on commit ed7528d

Please sign in to comment.