2 * Copyright (c) 2003-2012 Broadcom Corporation
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 * 2. Redistributions in binary form must reproduce the above copyright
12 * notice, this list of conditions and the following disclaimer in
13 * the documentation and/or other materials provided with the
16 * THIS SOFTWARE IS PROVIDED BY BROADCOM ``AS IS'' AND ANY EXPRESS OR
17 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
19 * ARE DISCLAIMED. IN NO EVENT SHALL BROADCOM OR CONTRIBUTORS BE LIABLE
20 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
21 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
22 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
23 * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
24 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
25 * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
26 * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 OUTPUT_FORMAT(elf32-tradbigmips)
40 /* ----------------------------------------- */
60 PROVIDE (__runtime_reloc_start = .);
62 PROVIDE (__runtime_reloc_stop = .);
67 KEEP (*crtbegin.o(.ctors))
68 KEEP (*(EXCLUDE_FILE (*crtend.o) .ctors))
69 KEEP (*(SORT(.ctors.*)))
74 KEEP (*crtbegin.o(.dtors))
75 KEEP (*(EXCLUDE_FILE (*crtend.o) .dtors))
76 KEEP (*(SORT(.dtors.*)))
86 . = . + (0x1000 - .) ;
88 /* ----------------------------------------- */
97 /* ----------------------------------------- */
106 /* ----------------------------------------- */
146 PROVIDE(__stackmarker = .) ;
150 /* 32 + 4(argc) + 4(argv), aligned to 64 */
151 PROVIDE(__stack = . - 64);
153 /* ----------------------------------------- */
159 . = . + (0x100000 - .) ;
161 PROVIDE(_endaddr = 0x0 + 0x100000);