Commit 43a84310 authored by Tom Rini's avatar Tom Rini

PPC32: Update section names to .foo.text/.foo.data form.

parent 60db5f20
...@@ -87,9 +87,9 @@ SECTIONS ...@@ -87,9 +87,9 @@ SECTIONS
. = ALIGN(4096); . = ALIGN(4096);
__init_begin = .; __init_begin = .;
.text.init : { *(.text.init) } .init.text : { *(.init.text) }
.data.init : { .init.data : {
*(.data.init); *(.init.data);
__vtop_table_begin = .; __vtop_table_begin = .;
*(.vtop_fixup); *(.vtop_fixup);
__vtop_table_end = .; __vtop_table_end = .;
...@@ -99,7 +99,7 @@ SECTIONS ...@@ -99,7 +99,7 @@ SECTIONS
} }
. = ALIGN(16); . = ALIGN(16);
__setup_start = .; __setup_start = .;
.setup.init : { *(.setup.init) } .init.setup : { *(.init.setup) }
__setup_end = .; __setup_end = .;
__initcall_start = .; __initcall_start = .;
.initcall.init : { .initcall.init : {
...@@ -121,29 +121,29 @@ SECTIONS ...@@ -121,29 +121,29 @@ SECTIONS
. = ALIGN(4096); . = ALIGN(4096);
__pmac_begin = .; __pmac_begin = .;
.text.pmac : { *(.text.pmac) } .pmac.text : { *(.pmac.text) }
.data.pmac : { *(.data.pmac) } .pmac.data : { *(.pmac.data) }
. = ALIGN(4096); . = ALIGN(4096);
__pmac_end = .; __pmac_end = .;
. = ALIGN(4096); . = ALIGN(4096);
__prep_begin = .; __prep_begin = .;
.text.prep : { *(.text.prep) } .prep.text : { *(.prep.text) }
.data.prep : { *(.data.prep) } .prep.data : { *(.prep.data) }
. = ALIGN(4096); . = ALIGN(4096);
__prep_end = .; __prep_end = .;
. = ALIGN(4096); . = ALIGN(4096);
__chrp_begin = .; __chrp_begin = .;
.text.chrp : { *(.text.chrp) } .chrp.text : { *(.chrp.text) }
.data.chrp : { *(.data.chrp) } .chrp.data : { *(.chrp.data) }
. = ALIGN(4096); . = ALIGN(4096);
__chrp_end = .; __chrp_end = .;
. = ALIGN(4096); . = ALIGN(4096);
__openfirmware_begin = .; __openfirmware_begin = .;
.text.openfirmware : { *(.text.openfirmware) } .openfirmware.text : { *(.openfirmware.text) }
.data.openfirmware : { *(.data.openfirmware) } .openfirmware.data : { *(.openfirmware.data) }
. = ALIGN(4096); . = ALIGN(4096);
__openfirmware_end = .; __openfirmware_end = .;
......
...@@ -2,27 +2,27 @@ ...@@ -2,27 +2,27 @@
#ifndef _PPC_SECTIONS_H #ifndef _PPC_SECTIONS_H
#define _PPC_SECTIONS_H #define _PPC_SECTIONS_H
#define __pmac __attribute__ ((__section__ (".text.pmac"))) #define __pmac __attribute__ ((__section__ (".pmac.text")))
#define __pmacdata __attribute__ ((__section__ (".data.pmac"))) #define __pmacdata __attribute__ ((__section__ (".pmac.data")))
#define __pmacfunc(__argpmac) \ #define __pmacfunc(__argpmac) \
__argpmac __pmac; \ __argpmac __pmac; \
__argpmac __argpmac
#define __prep __attribute__ ((__section__ (".text.prep"))) #define __prep __attribute__ ((__section__ (".prep.text")))
#define __prepdata __attribute__ ((__section__ (".data.prep"))) #define __prepdata __attribute__ ((__section__ (".prep.data")))
#define __prepfunc(__argprep) \ #define __prepfunc(__argprep) \
__argprep __prep; \ __argprep __prep; \
__argprep __argprep
#define __chrp __attribute__ ((__section__ (".text.chrp"))) #define __chrp __attribute__ ((__section__ (".chrp.text")))
#define __chrpdata __attribute__ ((__section__ (".data.chrp"))) #define __chrpdata __attribute__ ((__section__ (".chrp.data")))
#define __chrpfunc(__argchrp) \ #define __chrpfunc(__argchrp) \
__argchrp __chrp; \ __argchrp __chrp; \
__argchrp __argchrp
/* this is actually just common chrp/pmac code, not OF code -- Cort */ /* this is actually just common chrp/pmac code, not OF code -- Cort */
#define __openfirmware __attribute__ ((__section__ (".text.openfirmware"))) #define __openfirmware __attribute__ ((__section__ (".openfirmware.text")))
#define __openfirmwaredata __attribute__ ((__section__ (".data.openfirmware"))) #define __openfirmwaredata __attribute__ ((__section__ (".openfirmware.data")))
#define __openfirmwarefunc(__argopenfirmware) \ #define __openfirmwarefunc(__argopenfirmware) \
__argopenfirmware __openfirmware; \ __argopenfirmware __openfirmware; \
__argopenfirmware __argopenfirmware
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment