diff options
author | Jennifer Averett <Jennifer.Averett@OARcorp.com> | 2005-04-28 14:05:14 +0000 |
---|---|---|
committer | Jennifer Averett <Jennifer.Averett@OARcorp.com> | 2005-04-28 14:05:14 +0000 |
commit | 0329aae1b2cd18215ac8d19cbb1a69f502eddd71 (patch) | |
tree | 84188ee210ca807c9af4393c93684ff491a789ee /c/src/lib/libbsp/powerpc/ep1a/startup | |
parent | 2005-04-27 Ralf Corsepius <ralf.corsepius@rtems.org> (diff) | |
download | rtems-0329aae1b2cd18215ac8d19cbb1a69f502eddd71.tar.bz2 |
2005-04-28 Jennifer Averett <jennifer.averett@oarcorp.com>
* acinclude.m4: Initial release of ep1a bsp
* ep1a/Makefile.am, ep1a/bsp_specs, ep1a/configure.ac,
ep1a/console/alloc360.c, ep1a/console/console.c,
ep1a/console/console.h, ep1a/console/init68360.c,
ep1a/console/m68360.h, ep1a/console/mc68360_scc.c,
ep1a/console/ns16550cfg.c, ep1a/console/ns16550cfg.h,
ep1a/console/rsPMCQ1.c, ep1a/console/rsPMCQ1.h, ep1a/include/bsp.h,
ep1a/irq/irq.c, ep1a/irq/irq_init.c, ep1a/pci/no_host_bridge.c,
ep1a/start/start.S, ep1a/startup/bspstart.c, ep1a/startup/linkcmds,
ep1a/vme/vmeconfig.c: New files.
Diffstat (limited to 'c/src/lib/libbsp/powerpc/ep1a/startup')
-rw-r--r-- | c/src/lib/libbsp/powerpc/ep1a/startup/bspstart.c | 523 | ||||
-rw-r--r-- | c/src/lib/libbsp/powerpc/ep1a/startup/linkcmds | 191 |
2 files changed, 714 insertions, 0 deletions
diff --git a/c/src/lib/libbsp/powerpc/ep1a/startup/bspstart.c b/c/src/lib/libbsp/powerpc/ep1a/startup/bspstart.c new file mode 100644 index 0000000000..7a786b0c68 --- /dev/null +++ b/c/src/lib/libbsp/powerpc/ep1a/startup/bspstart.c @@ -0,0 +1,523 @@ +/* + * This routine starts the application. It includes application, + * board, and monitor specific initialization and configuration. + * The generic CPU dependent initialization has been performed + * before this routine is invoked. + * + * COPYRIGHT (c) 1989-1999. + * On-Line Applications Research Corporation (OAR). + * + * The license and distribution terms for this file may be + * found in the file LICENSE in this distribution or at + * http://www.rtems.com/license/LICENSE. + * + * $Id$ + */ + +#include <string.h> + +#include <rtems/libio.h> +#include <rtems/libcsupport.h> +#include <bsp/consoleIo.h> +#include <libcpu/spr.h> +#include <bsp/residual.h> +#include <bsp/pci.h> +#include <bsp/openpic.h> +#include <bsp/irq.h> +#include <bsp/VME.h> +#include <bsp.h> +#include <libcpu/bat.h> +#include <libcpu/pte121.h> +#include <libcpu/cpuIdent.h> +#include <bsp/vectors.h> +#include <rtems/powerpc/powerpc.h> + +extern unsigned long __rtems_end[]; +extern void L1_caches_enables(); +extern unsigned get_L2CR(); +extern void set_L2CR(unsigned); +extern void bsp_cleanup(void); +extern Triv121PgTbl BSP_pgtbl_setup(); +extern void BSP_pgtbl_activate(); +extern void BSP_vme_config(); +unsigned int rsPMCQ1Init(); + +SPR_RW(SPRG0) +SPR_RW(SPRG1) + +void ShowBATS(){ + unsigned32 lower; + unsigned32 upper; + + __MFSPR(536, upper); + __MFSPR(537, lower); + printk("BAT0 %08x %08x\n", upper, lower ); + + __MFSPR(538, upper); + __MFSPR(539, lower); + printk("BAT1 %08x %08x\n", upper, lower ); + + __MFSPR(540, upper); + __MFSPR(541, lower); + printk("BAT2 %08x %08x\n", upper, lower ); + + __MFSPR(542, upper); + __MFSPR(543, lower); + printk("BAT3 %08x %08x\n", upper, lower ); + +} + +uint8_t LightIdx = 0; +void BSP_Increment_Light(){ + uint8_t data; + data = *GENERAL_REGISTER1; + data &= 0xf0; + data |= LightIdx++; + *GENERAL_REGISTER1 = data; +} + +void BSP_Fatal_Fault_Light() { + uint8_t data; + data = *GENERAL_REGISTER1; + data &= 0xf0; + data |= 0x7; + while(1) + *GENERAL_REGISTER1 = data; +} + +void write_to_Q2ram(int offset, unsigned int data ) +{ +printk("0x%x ==> %d\n", offset, data ); +#if 0 + unsigned int *ptr = 0x82000000; + ptr += offset; + *ptr = data; +#endif +} + +/* + * Vital Board data Start using DATA RESIDUAL + */ + +unsigned32 VME_Slot1 = FALSE; + +/* + * Total memory. + * Note: RAM_END is defined in linkcmds. We want to verify that the application + * is only using 10M of memory, and we do this by only accounting for this + * much memory. + */ +extern int RAM_END; +unsigned int BSP_mem_size = (unsigned int)&RAM_END; + +/* + * PCI Bus Frequency + */ +unsigned int BSP_bus_frequency; + +/* + * processor clock frequency + */ +unsigned int BSP_processor_frequency; + +/* + * Time base divisior (how many tick for 1 second). + */ +unsigned int BSP_time_base_divisor = 1000; /* XXX - Just a guess */ + +/* + * system init stack and soft ir stack size + */ +#define INIT_STACK_SIZE 0x1000 +#define INTR_STACK_SIZE CONFIGURE_INTERRUPT_STACK_MEMORY + +void BSP_panic(char *s) +{ + printk("%s PANIC %s\n",_RTEMS_version, s); + __asm__ __volatile ("sc"); +} + +void _BSP_Fatal_error(unsigned int v) +{ + printk("%s PANIC ERROR %x\n",_RTEMS_version, v); + __asm__ __volatile ("sc"); +} + +/* + * The original table from the application and our copy of it with + * some changes. + */ + +extern rtems_configuration_table Configuration; + +rtems_configuration_table BSP_Configuration; + +rtems_cpu_table Cpu_table; + +char *rtems_progname; + +int BSP_FLASH_Disable_writes( + rtems_unsigned32 area +) +{ + unsigned char data; + + data = *GENERAL_REGISTER1; + data |= DISABLE_USER_FLASH; + *GENERAL_REGISTER1 = data; + + return RTEMS_SUCCESSFUL; +} + +int BSP_FLASH_Enable_writes( + rtems_unsigned32 area /* IN */ +) +{ + unsigned char data; + + data = *GENERAL_REGISTER1; + data &= (~DISABLE_USER_FLASH); + *GENERAL_REGISTER1 = data; + + return RTEMS_SUCCESSFUL; +} + +void BSP_FLASH_set_page( + rtems_unsigned8 page +) +{ + unsigned char data; + + /* Set the flash page register. */ + data = *GENERAL_REGISTER2; + data &= ~(BSP_FLASH_PAGE_MASK); + data |= 0x80 | (page << BSP_FLASH_PAGE_SHIFT); + *GENERAL_REGISTER2 = data; +} + +/* + * Use the shared implementations of the following routines + */ + +void bsp_postdriver_hook(void); +void bsp_libc_init( void *, unsigned32, int ); + +/* + * Function: bsp_pretasking_hook + * Created: 95/03/10 + * + * Description: + * BSP pretasking hook. Called just before drivers are initialized. + * Used to setup libc and install any BSP extensions. + * + * NOTES: + * Must not use libc (to do io) from here, since drivers are + * not yet initialized. + * + */ + +void bsp_pretasking_hook(void) +{ + rtems_unsigned32 heap_start; + rtems_unsigned32 heap_size; + rtems_unsigned32 heap_sbrk_spared; + extern rtems_unsigned32 _bsp_sbrk_init(rtems_unsigned32, rtems_unsigned32*); + heap_start = ((rtems_unsigned32) __rtems_end) +INIT_STACK_SIZE + INTR_STACK_SIZE; + if (heap_start & (CPU_ALIGNMENT-1)) + heap_start = (heap_start + CPU_ALIGNMENT) & ~(CPU_ALIGNMENT-1); + + heap_size = (BSP_mem_size - heap_start) - BSP_Configuration.work_space_size; + + heap_sbrk_spared=_bsp_sbrk_init(heap_start, &heap_size); + +#ifdef SHOW_MORE_INIT_SETTINGS + printk(" HEAP start %x size %x (%x bytes spared for sbrk)\n", heap_start, heap_size, heap_sbrk_spared); +#endif + + bsp_libc_init((void *) 0, heap_size, heap_sbrk_spared); + rsPMCQ1Init(); + +#ifdef RTEMS_DEBUG + rtems_debug_enable( RTEMS_DEBUG_ALL_MASK ); +#endif +} + +void zero_bss() +{ + /* prevent these from being accessed in the short data areas */ + extern unsigned long __bss_start[], __SBSS_START__[], __SBSS_END__[]; + extern unsigned long __SBSS2_START__[], __SBSS2_END__[]; + memset(__SBSS_START__, 0, ((unsigned) __SBSS_END__) - ((unsigned)__SBSS_START__)); + memset(__SBSS2_START__, 0, ((unsigned) __SBSS2_END__) - ((unsigned)__SBSS2_START__)); + memset(__bss_start, 0, ((unsigned) __rtems_end) - ((unsigned)__bss_start)); +} + +void save_boot_params(RESIDUAL* r3, void *r4, void* r5, char *additional_boot_options) +{ +#if 0 + residualCopy = *r3; + strncpy(loaderParam, additional_boot_options, MAX_LOADER_ADD_PARM); + loaderParam[MAX_LOADER_ADD_PARM - 1] ='\0'; +#endif +} + +unsigned int EUMBBAR; + +unsigned int get_eumbbar() { + register int a, e; + + asm volatile( "lis %0,0xfec0; ori %0,%0,0x0000": "=r" (a) ); + asm volatile("sync"); + + asm volatile("lis %0,0x8000; ori %0,%0,0x0078": "=r"(e) ); + asm volatile("stwbrx %0,0x0,%1": "=r"(e): "r"(a)); + asm volatile("sync"); + + asm volatile("lis %0,0xfee0; ori %0,%0,0x0000": "=r" (a) ); + asm volatile("sync"); + + asm volatile("lwbrx %0,0x0,%1": "=r" (e): "r" (a)); + asm volatile("isync"); + return e; +} + +void Read_ep1a_config_registers( ppc_cpu_id_t myCpu ) { + unsigned char value; + + /* + * Print out the board and revision. + */ + + printk("Board: "); + printk( get_ppc_cpu_type_name(myCpu) ); + + value = *BOARD_REVISION_REGISTER2 & HARDWARE_ID_MASK; + if ( value == HARDWARE_ID_PPC5_EP1A ) + printk(" EP1A "); + else if ( value == HARDWARE_ID_EP1B ) + printk(" EP1B "); + else + printk(" Unknown "); + + value = *BOARD_REVISION_REGISTER2&0x1; + printk("Board ID %08x", value); + if(value == 0x0){ + VME_Slot1 = TRUE; + printk("VME Slot 1\n"); + } + else{ + VME_Slot1 = FALSE; + printk("\n"); + } + + printk("Revision: "); + value = *BOARD_REVISION_REGISTER1; + printk("%d%c\n\n", value>>4, 'A'+(value&BUILD_REVISION_MASK) ); + + /* + * Get the CPU, XXX frequency + */ + value = *EQUIPMENT_PRESENT_REGISTER2 & PLL_CFG_MASK; + switch( value ) { + case MHZ_33_66_200: /* PCI, MEM, & CPU Frequency */ + BSP_processor_frequency = 200000000; + BSP_bus_frequency = 33000000; + break; + case MHZ_33_100_200: /* PCI, MEM, & CPU Frequency */ + BSP_processor_frequency = 200000000; + BSP_bus_frequency = 33000000; + break; + case MHZ_33_66_266: /* PCI, MEM, & CPU Frequency */ + BSP_processor_frequency = 266000000; + BSP_bus_frequency = 33000000; + break; + case MHZ_33_66_333: /* PCI, MEM, & CPU Frequency */ + BSP_processor_frequency = 333000000; + BSP_bus_frequency = 33000000; + break; + case MHZ_33_100_333: /* PCI, MEM, & CPU Frequency */ + BSP_processor_frequency = 333000000; + BSP_bus_frequency = 33000000; + break; + case MHZ_33_100_350: /* PCI, MEM, & CPU Frequency */ + BSP_processor_frequency = 350000000; + BSP_bus_frequency = 33000000; + break; + default: + printk("ERROR: Unknown Processor frequency 0x%02x please fill in bspstart.c\n",value); + BSP_processor_frequency = 350000000; + BSP_bus_frequency = 33000000; + break; + } +} + +/* + * bsp_start + * + * This routine does the bulk of the system initialization. + */ + +void bsp_start( void ) +{ + unsigned char *stack; + register uint32_t intrStack; + register uint32_t *intrStackPtr; + unsigned char *work_space_start; + ppc_cpu_id_t myCpu; + ppc_cpu_revision_t myCpuRevision; + Triv121PgTbl pt=0; /* R = e; */ + + /* + * Get CPU identification dynamically. Note that the get_ppc_cpu_type() function + * store the result in global variables so that it can be used latter... + */ + BSP_Increment_Light(); + myCpu = get_ppc_cpu_type(); + myCpuRevision = get_ppc_cpu_revision(); + + EUMBBAR = get_eumbbar(); + printk("EUMBBAR 0x%08x\n", EUMBBAR ); + + /* + * Note this sets BSP_processor_frequency based upon register settings. + * It must be done prior to setting up hooks. + */ + Read_ep1a_config_registers( myCpu ); + + /* + * Set up our hooks + * Make sure libc_init is done before drivers initialized so that + * they can use atexit() + */ + + Cpu_table.pretasking_hook = bsp_pretasking_hook; /* init libc, etc. */ + Cpu_table.postdriver_hook = bsp_postdriver_hook; + Cpu_table.do_zero_of_workspace = TRUE; + Cpu_table.interrupt_stack_size = CONFIGURE_INTERRUPT_STACK_MEMORY; + Cpu_table.clicks_per_usec = BSP_processor_frequency/(BSP_time_base_divisor * 1000); + Cpu_table.exceptions_in_RAM = TRUE; + +ShowBATS(); +#if 0 /* XXX - Add back in cache enable when we get this up and running!! */ + /* + * enables L1 Cache. Note that the L1_caches_enables() codes checks for + * relevant CPU type so that the reason why there is no use of myCpu... + */ + L1_caches_enables(); +#endif + + /* + * the initial stack has aready been set to this value in start.S + * so there is no need to set it in r1 again... It is just for info + * so that It can be printed without accessing R1. + */ + stack = ((unsigned char*) __rtems_end) + INIT_STACK_SIZE - PPC_MINIMUM_STACK_FRAME_SIZE; + + /* tag the bottom (T. Straumann 6/36/2001 <strauman@slac.stanford.edu>) */ + *((unsigned32 *)stack) = 0; + + /* + * Initialize the interrupt related settings + * SPRG1 = software managed IRQ stack + * + * This could be done latter (e.g in IRQ_INIT) but it helps to understand + * some settings below... + */ + intrStack = ((uint32_t) __rtems_end) + + INIT_STACK_SIZE + INTR_STACK_SIZE - PPC_MINIMUM_STACK_FRAME_SIZE; + + /* make sure it's properly aligned */ + intrStack &= ~(CPU_STACK_ALIGNMENT-1); + + /* tag the bottom (T. Straumann 6/36/2001 <strauman@slac.stanford.edu>) */ + intrStackPtr = (uint32_t*) intrStack; + *intrStackPtr = 0; + + _write_SPRG1((unsigned int)intrStack); + + /* signal them that we have fixed PR288 - eventually, this should go away */ + _write_SPRG0(PPC_BSP_HAS_FIXED_PR288); + + /* + * Initialize default raw exception hanlders. See vectors/vectors_init.c + */ + initialize_exceptions(); + + /* + * Init MMU block address translation to enable hardware + * access + */ + setdbat(1, 0xf0000000, 0xf0000000, 0x10000000, IO_PAGE); + setdbat(3, 0x90000000, 0x90000000, 0x10000000, IO_PAGE); + + +#ifdef SHOW_MORE_INIT_SETTINGS + printk("Going to start PCI buses scanning and initialization\n"); +#endif + pci_initialize(); + +#ifdef SHOW_MORE_INIT_SETTINGS + printk("Number of PCI buses found is : %d\n", BusCountPCI()); +#endif +#ifdef TEST_RAW_EXCEPTION_CODE + printk("Testing exception handling Part 1\n"); + + /* + * Cause a software exception + */ + __asm__ __volatile ("sc"); + + /* + * Check we can still catch exceptions and returned coorectly. + */ + printk("Testing exception handling Part 2\n"); + __asm__ __volatile ("sc"); +#endif + +#ifdef SHOW_MORE_INIT_SETTINGS + printk("BSP_Configuration.work_space_size = %x\n", BSP_Configuration.work_space_size); +#endif + work_space_start = + (unsigned char *)BSP_mem_size - BSP_Configuration.work_space_size; + + if ( work_space_start <= ((unsigned char *)__rtems_end) + INIT_STACK_SIZE + INTR_STACK_SIZE) { + printk( "bspstart: Not enough RAM!!!\n" ); + bsp_cleanup(); + } + + BSP_Configuration.work_space_start = work_space_start; + + /* + * Initalize RTEMS IRQ system + */ + BSP_rtems_irq_mng_init(0); + + /* Activate the page table mappings only after + * initializing interrupts because the irq_mng_init() + * routine needs to modify the text + */ + if (pt) { +#ifdef SHOW_MORE_INIT_SETTINGS + printk("Page table setup finished; will activate it NOW...\n"); +#endif + BSP_pgtbl_activate(pt); + } + + /* + * Initialize VME bridge - needs working PCI + * and IRQ subsystems... + */ +#ifdef SHOW_MORE_INIT_SETTINGS + printk("Going to initialize VME bridge\n"); +#endif + /* VME initialization is in a separate file so apps which don't use + * VME or want a different configuration may link against a customized + * routine. + */ + BSP_vme_config(); + +#ifdef SHOW_MORE_INIT_SETTINGS + ShowBATS(); + printk("Exit from bspstart\n"); +#endif +} diff --git a/c/src/lib/libbsp/powerpc/ep1a/startup/linkcmds b/c/src/lib/libbsp/powerpc/ep1a/startup/linkcmds new file mode 100644 index 0000000000..f1f6db5726 --- /dev/null +++ b/c/src/lib/libbsp/powerpc/ep1a/startup/linkcmds @@ -0,0 +1,191 @@ +OUTPUT_FORMAT("elf32-powerpc", "elf32-powerpc", + "elf32-powerpc") + +OUTPUT_ARCH(powerpc) +ENTRY(_start) + +/* + * Number of Decrementer countdowns per millisecond + * + * Calculated by: (66.67 Mhz * 1000) / 4 cycles per click + */ + +SECTIONS +{ + .vectors 0x00100 : + { + *(.vectors) + } + + /* Read-only sections, merged into text segment: */ + /* SDS ROM worked at 0x30000 */ + . = 0x30000; + .interp : { *(.interp) } + .hash : { *(.hash) } + .dynsym : { *(.dynsym) } + .dynstr : { *(.dynstr) } + .rela.text : { *(.rela.text) } + .rela.data : { *(.rela.data) } + .rela.rodata : { *(.rela.rodata) } + .rela.got : { *(.rela.got) } + .rela.got1 : { *(.rela.got1) } + .rela.got2 : { *(.rela.got2) } + .rela.ctors : { *(.rela.ctors) } + .rela.dtors : { *(.rela.dtors) } + .rela.init : { *(.rela.init) } + .rela.fini : { *(.rela.fini) } + .rela.bss : { *(.rela.bss) } + .rela.plt : { *(.rela.plt) } + .rela.sdata : { *(.rela.sdata2) } + .rela.sbss : { *(.rela.sbss2) } + .rela.sdata2 : { *(.rela.sdata2) } + .rela.sbss2 : { *(.rela.sbss2) } + .plt : { *(.plt) } + .text : + { + _start = .; + *(.text) + /* + * Special FreeBSD sysctl sections. + */ + . = ALIGN (16); + __start_set_sysctl_set = .; + *(set_sysctl_*); + __stop_set_sysctl_set = ABSOLUTE(.); + *(set_domain_*); + *(set_pseudo_*); + + *(.gnu.linkonce.t.*) + *(.descriptors) + /* .gnu.warning sections are handled specially by elf32.em. */ + *(.gnu.warning) + } =0 + .init : { _init = .; *(.init) } + .fini : { _fini = .; *(.fini) } + .rodata : { *(.rodata*) *(.gnu.linkonce.r*) } + .rodata1 : { *(.rodata1) } + .eh_frame : { *.(eh_frame) } + _etext = .; + PROVIDE (etext = .); + PROVIDE (__SDATA2_START__ = .); + .sdata2 : { *(.sdata2) *(.gnu.linkonce.s2.*) } + .sbss2 : { *(.sbss2) *(.gnu.linkonce.sb2.*) } + PROVIDE (__SBSS2_START__ = .); + .sbss2 : { *(.sbss2) } + PROVIDE (__SBSS2_END__ = .); + /* Adjust the address for the data segment. We want to adjust up to + the same address within the page on the next page up. It would + be more correct to do this: + . = ALIGN(0x40000) + (ALIGN(8) & (0x40000 - 1)); + The current expression does not correctly handle the case of a + text segment ending precisely at the end of a page; it causes the + data segment to skip a page. The above expression does not have + this problem, but it will currently (2/95) cause BFD to allocate + a single segment, combining both text and data, for this case. + This will prevent the text segment from being shared among + multiple executions of the program; I think that is more + important than losing a page of the virtual address space (note + that no actual memory is lost; the page which is skipped can not + be referenced). */ + . = ALIGN(8) + 0x40000; + PROVIDE (sdata = .); + .data : + { + PROVIDE(__DATA_START__ = ABSOLUTE(.) ); + *(.data) + *(.gnu.linkonce.d.*) + CONSTRUCTORS + } + PROVIDE (__EXCEPT_START__ = .); + .gcc_except_table : { *(.gcc_except_table) } + PROVIDE (__EXCEPT_END__ = .); + + .data1 : { *(.data1) } + .got1 : { *(.got1) } + .dynamic : { *(.dynamic) } + /* Put .ctors and .dtors next to the .got2 section, so that the pointers + get relocated with -mrelocatable. Also put in the .fixup pointers. + The current compiler no longer needs this, but keep it around for 2.7.2 */ + PROVIDE (_GOT2_START_ = .); + .got2 : { *(.got2) } + PROVIDE (__GOT2_END__ = .); + PROVIDE (__CTOR_LIST__ = .); + .ctors : { *(.ctors) } + PROVIDE (__CTOR_END__ = .); + PROVIDE (__DTOR_LIST__ = .); + .dtors : { *(.dtors) } + PROVIDE (__DTOR_END__ = .); + PROVIDE (_FIXUP_START_ = .); + .fixup : { *(.fixup) } + PROVIDE (_FIXUP_END_ = .); + PROVIDE (__FIXUP_END__ = .); + PROVIDE (_GOT2_END_ = .); + PROVIDE (_GOT_START_ = .); + s.got = .; + .got : { *(.got) } + .got.plt : { *(.got.plt) } + PROVIDE (_GOT_END_ = .); + PROVIDE (__GOT_END__ = .); + /* We want the small data sections together, so single-instruction offsets + can access them all, and initialized data all before uninitialized, so + we can shorten the on-disk segment size. */ + PROVIDE (__SDATA_START__ = .); + .sdata : { *(.sdata) *(.gnu.linkonce.s.*) } + _edata = .; + PROVIDE (edata = .); + PROVIDE (RAM_END = ADDR(.text) + 10M); + . = ALIGN(8) + 0x1000; + PROVIDE (__SBSS_START__ = .); + .sbss : + { + PROVIDE (__sbss_start = .); + *(.sbss) + *(.scommon) + PROVIDE (__sbss_end = .); + } + PROVIDE (__SBSS_END__ = .); + .bss : + { + PROVIDE (__bss_start = .); + *(.dynbss) + *(.bss) + *(COMMON) + PROVIDE (__bss_end = .); + } + . = ALIGN(8) + 0x8000; + PROVIDE (__stack = .); + _end = . ; + __rtems_end = . ; + PROVIDE (end = .); + + /* These are needed for ELF backends which have not yet been + converted to the new style linker. */ + .stab 0 : { *(.stab) } + .stabstr 0 : { *(.stabstr) } + /* DWARF debug sections. + Symbols in the DWARF debugging sections are relative to the beginning + of the section so we begin them at 0. */ + /* DWARF 1 */ + .debug 0 : { *(.debug) } + .line 0 : { *(.line) } + /* GNU DWARF 1 extensions */ + .debug_srcinfo 0 : { *(.debug_srcinfo) } + .debug_sfnames 0 : { *(.debug_sfnames) } + /* DWARF 1.1 and DWARF 2 */ + .debug_aranges 0 : { *(.debug_aranges) } + .debug_pubnames 0 : { *(.debug_pubnames) } + /* DWARF 2 */ + .debug_info 0 : { *(.debug_info) } + .debug_abbrev 0 : { *(.debug_abbrev) } + .debug_line 0 : { *(.debug_line) } + .debug_frame 0 : { *(.debug_frame) } + .debug_str 0 : { *(.debug_str) } + .debug_loc 0 : { *(.debug_loc) } + .debug_macinfo 0 : { *(.debug_macinfo) } + /* SGI/MIPS DWARF 2 extensions */ + .debug_weaknames 0 : { *(.debug_weaknames) } + .debug_funcnames 0 : { *(.debug_funcnames) } + .debug_typenames 0 : { *(.debug_typenames) } + .debug_varnames 0 : { *(.debug_varnames) } + /* These must appear regardless of . */ +} |