Skip to content

Commit

Permalink
Merge branch 'core/rodata' of git://git.kernel.org/pub/scm/linux/kern…
Browse files Browse the repository at this point in the history
…el/git/tip/linux-2.6-tip

* 'core/rodata' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
  move BUG_TABLE into RODATA
  • Loading branch information
torvalds committed Jul 14, 2008
2 parents 4bb0057 + 6d72b79 commit d18bb9a
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 19 deletions.
2 changes: 0 additions & 2 deletions arch/avr32/kernel/vmlinux.lds.S
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,6 @@ SECTIONS
__stop___ex_table = .;
}

BUG_TABLE

RODATA

. = ALIGN(THREAD_SIZE);
Expand Down
1 change: 0 additions & 1 deletion arch/parisc/kernel/vmlinux.lds.S
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ SECTIONS
_etext = .;

RODATA
BUG_TABLE

/* writeable */
/* Make sure this is page aligned so
Expand Down
2 changes: 0 additions & 2 deletions arch/powerpc/kernel/vmlinux.lds.S
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,6 @@ SECTIONS

NOTES

BUG_TABLE

/*
* Init sections discarded at runtime
*/
Expand Down
1 change: 0 additions & 1 deletion arch/s390/kernel/vmlinux.lds.S
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ SECTIONS
_etext = .; /* End of text section */

NOTES :text :note
BUG_TABLE :text

RODATA

Expand Down
1 change: 0 additions & 1 deletion arch/sh/kernel/vmlinux_32.lds.S
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ SECTIONS

_etext = .; /* End of text section */

BUG_TABLE
NOTES
RO_DATA(PAGE_SIZE)

Expand Down
1 change: 0 additions & 1 deletion arch/sh/kernel/vmlinux_64.lds.S
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ SECTIONS

_etext = .; /* End of text section */

BUG_TABLE
NOTES
RO_DATA(PAGE_SIZE)

Expand Down
8 changes: 3 additions & 5 deletions arch/x86/kernel/vmlinux_32.lds.S
Original file line number Diff line number Diff line change
Expand Up @@ -49,16 +49,14 @@ SECTIONS
_etext = .; /* End of text section */
} :text = 0x9090

NOTES :text :note

. = ALIGN(16); /* Exception table */
__ex_table : AT(ADDR(__ex_table) - LOAD_OFFSET) {
__start___ex_table = .;
*(__ex_table)
__stop___ex_table = .;
}

NOTES :text :note

BUG_TABLE :text
} :text = 0x9090

RODATA

Expand Down
10 changes: 4 additions & 6 deletions arch/x86/kernel/vmlinux_64.lds.S
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ PHDRS {
data PT_LOAD FLAGS(7); /* RWE */
user PT_LOAD FLAGS(7); /* RWE */
data.init PT_LOAD FLAGS(7); /* RWE */
note PT_NOTE FLAGS(4); /* R__ */
note PT_NOTE FLAGS(0); /* ___ */
}
SECTIONS
{
Expand All @@ -40,16 +40,14 @@ SECTIONS
_etext = .; /* End of text section */
} :text = 0x9090

NOTES :text :note

. = ALIGN(16); /* Exception table */
__ex_table : AT(ADDR(__ex_table) - LOAD_OFFSET) {
__start___ex_table = .;
*(__ex_table)
__stop___ex_table = .;
}

NOTES :text :note

BUG_TABLE :text
} :text = 0x9090

RODATA

Expand Down
6 changes: 6 additions & 0 deletions include/asm-generic/vmlinux.lds.h
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@
*(.rodata1) \
} \
\
BUG_TABLE \
\
/* PCI quirks */ \
.pci_fixup : AT(ADDR(.pci_fixup) - LOAD_OFFSET) { \
VMLINUX_SYMBOL(__start_pci_fixups_early) = .; \
Expand Down Expand Up @@ -312,13 +314,17 @@
.stab.indexstr 0 : { *(.stab.indexstr) } \
.comment 0 : { *(.comment) }

#ifdef CONFIG_GENERIC_BUG
#define BUG_TABLE \
. = ALIGN(8); \
__bug_table : AT(ADDR(__bug_table) - LOAD_OFFSET) { \
__start___bug_table = .; \
*(__bug_table) \
__stop___bug_table = .; \
}
#else
#define BUG_TABLE
#endif

#ifdef CONFIG_PM_TRACE
#define TRACEDATA \
Expand Down

0 comments on commit d18bb9a

Please sign in to comment.