| * Copyright (C) Paul Mackerras 1997. |
| * This program is free software; you can redistribute it and/or |
| * modify it under the terms of the GNU General Public License |
| * as published by the Free Software Foundation; either version |
| * 2 of the License, or (at your option) any later version. |
| * NOTE: this code runs in 32 bit mode and is packaged as ELF32. |
| /* a procedure descriptor used when booting this as a COFF file */ |
| .long _zimage_start, 0, 0, 0 |
| /* Work out the offset between the address we were linked at |
| and the address where we're running. */ |
| beq 3f /* if running at same address as linked */ |
| /* The .got2 section contains a list of addresses, so add |
| the address offset onto each entry. */ |
| addi r9,r9,__got2_start@l |
| /* Do a cache flush for our text, in case OF didn't */ |