1/* This file is part of GDB, the GNU debugger. 2 3 Copyright 2008-2019 Free Software Foundation, Inc. 4 5 This program is free software; you can redistribute it and/or modify 6 it under the terms of the GNU General Public License as published by 7 the Free Software Foundation; either version 3 of the License, or 8 (at your option) any later version. 9 10 This program is distributed in the hope that it will be useful, 11 but WITHOUT ANY WARRANTY; without even the implied warranty of 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 GNU General Public License for more details. 14 15 You should have received a copy of the GNU General Public License 16 along with this program. If not, see <http://www.gnu.org/licenses/>. */ 17 18 .align 2 19 .globl main 20#if _CALL_ELF == 2 21 .type main,@function 22main: 23#else 24 .section ".opd","aw" 25 .align 3 26main: 27 .quad .main,.TOC.@tocbase,0 28 .size main,.-main 29 .previous 30 .globl .main 31 .type .main,@function 32.main: 33#endif 34 35 li 0,0 36 addi 4,1,-8 37 38 stw 0,0(4) 391: lwarx 5,0,4 40 cmpwi 5,0 41 bne 2f 42 addi 5,5,1 43 stwcx. 5,0,4 44 bne 1b 45 46 std 0,0(4) 472: ldarx 5,0,4 48 cmpdi 5,0 49 bne 3f 50 addi 5,5,1 51 stdcx. 5,0,4 52 bne 1b 53 543: li 3,0 55 blr 56 57#if _CALL_ELF == 2 58 .size main,.-main 59#else 60 .size .main,.-.main 61#endif 62