mirror of
https://github.com/mikpe/pdp10-tools.git
synced 2026-04-29 21:17:36 +00:00
as: add test case exercising relocations
This commit is contained in:
30
erlang/apps/as/priv/test8.s
Normal file
30
erlang/apps/as/priv/test8.s
Normal file
@@ -0,0 +1,30 @@
|
||||
/*
|
||||
* test8.s
|
||||
* Copyright (C) 2020 Mikael Pettersson
|
||||
*
|
||||
* This file is part of pdp10-tools.
|
||||
*
|
||||
* pdp10-tools 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 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* pdp10-tools is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with pdp10-tools. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
.section .text,"ax",@progbits
|
||||
.globl foo
|
||||
.type foo,@function
|
||||
foo:
|
||||
move 1,bar
|
||||
popj 017,
|
||||
.size foo,.-foo
|
||||
|
||||
.section .rodata,"a",@progbits
|
||||
bar: .long foo
|
||||
Reference in New Issue
Block a user