| .. | .. |
|---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-or-later */ |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * OpenRISC vmlinux.lds.S |
|---|
| 3 | 4 | * |
|---|
| .. | .. |
|---|
| 8 | 9 | * Modifications for the OpenRISC architecture: |
|---|
| 9 | 10 | * Copyright (C) 2003 Matjaz Breskvar <phoenix@bsemi.com> |
|---|
| 10 | 11 | * Copyright (C) 2010-2011 Jonas Bonn <jonas@southpole.se> |
|---|
| 11 | | - * |
|---|
| 12 | | - * This program is free software; you can redistribute it and/or |
|---|
| 13 | | - * modify it under the terms of the GNU General Public License |
|---|
| 14 | | - * as published by the Free Software Foundation; either version |
|---|
| 15 | | - * 2 of the License, or (at your option) any later version. |
|---|
| 16 | 12 | * |
|---|
| 17 | 13 | * ld script for OpenRISC architecture |
|---|
| 18 | 14 | */ |
|---|
| .. | .. |
|---|
| 71 | 67 | |
|---|
| 72 | 68 | _sdata = .; |
|---|
| 73 | 69 | |
|---|
| 74 | | - /* Page alignment required for RO_DATA_SECTION */ |
|---|
| 75 | | - RO_DATA_SECTION(PAGE_SIZE) |
|---|
| 70 | + /* Page alignment required for RO_DATA */ |
|---|
| 71 | + RO_DATA(PAGE_SIZE) |
|---|
| 76 | 72 | _e_kernel_ro = .; |
|---|
| 77 | 73 | |
|---|
| 78 | 74 | /* Whatever comes after _e_kernel_ro had better be page-aligend, too */ |
|---|
| 79 | 75 | |
|---|
| 80 | 76 | /* 32 here is cacheline size... recheck this */ |
|---|
| 81 | | - RW_DATA_SECTION(32, PAGE_SIZE, PAGE_SIZE) |
|---|
| 77 | + RW_DATA(32, PAGE_SIZE, PAGE_SIZE) |
|---|
| 82 | 78 | |
|---|
| 83 | 79 | _edata = .; |
|---|
| 84 | 80 | |
|---|
| 85 | 81 | EXCEPTION_TABLE(4) |
|---|
| 86 | | - NOTES |
|---|
| 87 | 82 | |
|---|
| 88 | 83 | /* Init code and data */ |
|---|
| 89 | 84 | . = ALIGN(PAGE_SIZE); |
|---|
| .. | .. |
|---|
| 101 | 96 | |
|---|
| 102 | 97 | __init_end = .; |
|---|
| 103 | 98 | |
|---|
| 104 | | - . = ALIGN(PAGE_SIZE); |
|---|
| 105 | | - .initrd : AT(ADDR(.initrd) - LOAD_OFFSET) |
|---|
| 106 | | - { |
|---|
| 107 | | - __initrd_start = .; |
|---|
| 108 | | - *(.initrd) |
|---|
| 109 | | - __initrd_end = .; |
|---|
| 110 | | - FILL (0); |
|---|
| 111 | | - . = ALIGN (PAGE_SIZE); |
|---|
| 112 | | - } |
|---|
| 113 | | - |
|---|
| 114 | | - __vmlinux_end = .; /* last address of the physical file */ |
|---|
| 115 | | - |
|---|
| 116 | 99 | BSS_SECTION(0, 0, 0x20) |
|---|
| 117 | 100 | |
|---|
| 118 | 101 | _end = .; |
|---|
| .. | .. |
|---|
| 120 | 103 | /* Throw in the debugging sections */ |
|---|
| 121 | 104 | STABS_DEBUG |
|---|
| 122 | 105 | DWARF_DEBUG |
|---|
| 106 | + ELF_DETAILS |
|---|
| 123 | 107 | |
|---|
| 124 | 108 | /* Sections to be discarded -- must be last */ |
|---|
| 125 | 109 | DISCARDS |
|---|