URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
Compare Revisions
- This comparison shows the changes necessary to convert path
/openrisc/trunk/gnu-old/binutils-2.18.50/ld/testsuite/ld-m68k
- from Rev 156 to Rev 816
- ↔ Reverse comparison
Rev 156 → Rev 816
/plt1-isac.d
0,0 → 1,44
|
.*: file format elf32-m68k |
|
Disassembly of section \.plt: |
|
00020800 <f.@plt-0x18>: |
# _GLOBAL_OFFSET_TABLE_ + 4 == 0x30404 == 0x20802 + 0xfc02 |
20800: 203c 0000 fc02 movel #64514,%d0 |
20806: 2ebb 08fa movel %pc@\(20802 <f.@plt-0x16>,%d0:l\),%sp@ |
# _GLOBAL_OFFSET_TABLE_ + 8 == 0x30408 == 0x2080c + 0xfbfc |
2080a: 203c 0000 fbfc movel #64508,%d0 |
20810: 207b 08fa moveal %pc@\(2080c <f.@plt-0xc>,%d0:l\),%a0 |
20814: 4ed0 jmp %a0@ |
20816: 4e71 nop |
|
00020818 <f.@plt>: |
# _GLOBAL_OFFSET_TABLE_ + 12 == 0x3040c == 0x2081a + 0xfbf2 |
20818: 203c 0000 fbf2 movel #64498,%d0 |
2081e: 207b 08fa moveal %pc@\(2081a <f.@plt\+0x2>,%d0:l\),%a0 |
20822: 4ed0 jmp %a0@ |
20824: 2f3c 0000 0000 movel #0,%sp@- |
2082a: 61ff ffff ffd4 bsrl 20800 <f.@plt-0x18> |
|
00020830 <f.@plt>: |
# _GLOBAL_OFFSET_TABLE_ + 16 == 0x30410 == 0x20832 + 0xfbde |
20830: 203c 0000 fbde movel #64478,%d0 |
20836: 207b 08fa moveal %pc@\(20832 <f.@plt\+0x2>,%d0:l\),%a0 |
2083a: 4ed0 jmp %a0@ |
2083c: 2f3c 0000 000c movel #12,%sp@- |
20842: 61ff ffff ffbc bsrl 20800 <f.@plt-0x18> |
|
00020848 <f.@plt>: |
# _GLOBAL_OFFSET_TABLE_ + 20 == 0x30414 == 0x2084a + 0xfbca |
20848: 203c 0000 fbca movel #64458,%d0 |
2084e: 207b 08fa moveal %pc@\(2084a <f.@plt\+0x2>,%d0:l\),%a0 |
20852: 4ed0 jmp %a0@ |
20854: 2f3c 0000 0018 movel #24,%sp@- |
2085a: 61ff ffff ffa4 bsrl 20800 <f.@plt-0x18> |
Disassembly of section \.text: |
|
00020c00 <.*>: |
20c00: 61ff ffff fc.. bsrl 208.. <f1@plt> |
20c06: 61ff ffff fc.. bsrl 208.. <f2@plt> |
20c0c: 61ff ffff fc.. bsrl 208.. <f3@plt> |
/plt1-68020.d
0,0 → 1,35
|
.*: file format elf32-m68k |
|
Disassembly of section \.plt: |
|
00020800 <f.@plt-0x14>: |
20800: 2f3b 0170 0000 movel %pc@\(30404 <_GLOBAL_OFFSET_TABLE_\+0x4>\),%sp@- |
20806: fc02 |
20808: 4efb 0171 0000 jmp %pc@\(30408 <_GLOBAL_OFFSET_TABLE_\+0x8>\)@\(0*\) |
2080e: fbfe |
20810: 0000 0000 orib #0,%d0 |
|
00020814 <f.@plt>: |
20814: 4efb 0171 0000 jmp %pc@\(3040c <_GLOBAL_OFFSET_TABLE_\+0xc>\)@\(0*\) |
2081a: fbf6 |
2081c: 2f3c 0000 0000 movel #0,%sp@- |
20822: 60ff ffff ffdc bral 20800 <f.@plt-0x14> |
|
00020828 <f.@plt>: |
20828: 4efb 0171 0000 jmp %pc@\(30410 <_GLOBAL_OFFSET_TABLE_\+0x10>\)@\(0*\) |
2082e: fbe6 |
20830: 2f3c 0000 000c movel #12,%sp@- |
20836: 60ff ffff ffc8 bral 20800 <f.@plt-0x14> |
|
0002083c <f.@plt>: |
2083c: 4efb 0171 0000 jmp %pc@\(30414 <_GLOBAL_OFFSET_TABLE_\+0x14>\)@\(0*\) |
20842: fbd6 |
20844: 2f3c 0000 0018 movel #24,%sp@- |
2084a: 60ff ffff ffb4 bral 20800 <f.@plt-0x14> |
Disassembly of section \.text: |
|
00020c00 <.*>: |
20c00: 61ff ffff fc.. bsrl 208.. <f1@plt> |
20c06: 61ff ffff fc.. bsrl 208.. <f2@plt> |
20c0c: 61ff ffff fc.. bsrl 208.. <f3@plt> |
/isab.s
0,0 → 1,3
.arch isab |
|
nop |
/m68k.exp
0,0 → 1,68
# Expect script for run_dump_test based ld-m68k tests. |
# Copyright 2006, 2007 Free Software Foundation, Inc. |
# |
# This file is part of the GNU Binutils. |
# |
# 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 3 of the License, or |
# (at your option) any later version. |
# |
# This program 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 this program; if not, write to the Free Software |
# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, |
# MA 02110-1301, USA. |
# |
# Test m68k object merging |
|
if { ![is_elf_format] || ![istarget m68k-*-*] } { |
return |
} |
|
# List contains test-items with 3 items followed by 2 lists: |
# 0:name 1:ld options 2:assembler options |
# 3:filenames of assembler files 4: action and options. 5: name of output file |
|
# Actions: |
# objdump: Apply objdump options on result. Compare with regex (last arg). |
# nm: Apply nm options on result. Compare with regex (last arg). |
# readelf: Apply readelf options on result. Compare with regex (last arg). |
|
set m68k_mergeok_tests { |
{"merge isa-a isa-a:nodiv" "-T merge.ld" "" |
{isaa.s isaa-nodiv.s} {{objdump -p isaa.d}} "isaa"} |
{"merge isa-a isa-b" "-T merge.ld" "" |
{isaa.s isab.s} {{objdump -p isab.d}} "isab"} |
{"merge isa-a isa-aplus" "-T merge.ld" "" |
{isaa.s isaaplus.s} {{objdump -p isaaplus.d}} "isaplus"} |
{"merge isa-b isa-b:nousp" "-T merge.ld" "" |
{isab.s isab-nousp.s} {{objdump -p isab.d}} "isab"} |
{"merge isa-a isa-a:mac" "-T merge.ld" "" |
{isaa.s isaa-mac.s} {{objdump -p isaa-mac.d}} "isaa-mac"} |
{"merge isa-b isa-b:float" "-T merge.ld" "" |
{isab.s isab-float.s} {{objdump -p isab-float.d}} "isab-float"}} |
|
run_ld_link_tests $m68k_mergeok_tests |
|
run_dump_test "merge-error-1a" |
run_dump_test "merge-error-1b" |
run_dump_test "merge-error-1c" |
run_dump_test "merge-error-1d" |
run_dump_test "merge-error-1e" |
run_dump_test "merge-ok-1a" |
run_dump_test "merge-ok-1b" |
run_dump_test "merge-ok-1c" |
|
foreach { id sources } { a { plt1.s } b { plt1-empty.s plt1.s } } { |
foreach arch { 68020 cpu32 isab isac } { |
run_ld_link_tests [list \ |
[list "PLT 1$id ($arch)" "-shared -T plt1.ld" "-m$arch" \ |
$sources [list [list objdump -dr plt1-$arch.d]] \ |
plt1-${id}-${arch}.so]] |
} |
} |
/plt1.s
0,0 → 1,3
bsr.l f1@PLTPC |
bsr.l f2@PLTPC |
bsr.l f3@PLTPC |
/isab-nousp.s
0,0 → 1,3
.arch isab,no-usp |
|
nop |
/isaaplus.s
0,0 → 1,3
.arch isaaplus |
|
nop |
/isab-float.s
0,0 → 1,3
.arch isab,float |
|
nop |
/merge-error-1a.s
0,0 → 1,3
rts |
/merge-ok-1a.d
0,0 → 1,6
#source: merge-error-1a.s -mcpu=5207 |
#source: merge-error-1b.s -mcpu=528x |
#ld: -r |
#objdump: -p |
#... |
private flags = 23: \[isa A\+\] \[emac\] |
/merge-error-1b.s
0,0 → 1,6
rts |
/merge-ok-1b.d
0,0 → 1,6
#source: merge-error-1a.s -march=isaa -mno-div -mmac |
#source: merge-error-1b.s -march=isaa -mno-div -mfloat |
#ld: -r |
#objdump: -p |
#... |
private flags = 8051: \[cfv4e\] \[isa A\] \[nodiv\] \[float\] \[mac\] |
/merge-ok-1c.d
0,0 → 1,6
#source: merge-error-1a.s -march=cpu32 |
#source: merge-error-1b.s -march=cpu32 |
#ld: -r |
#objdump: -p |
#... |
private flags = 810000: \[cpu32\] |
/isaa-nodiv.s
0,0 → 1,3
.arch isaa,no-div |
|
nop |
/plt1-cpu32.d
0,0 → 1,43
|
.*: file format elf32-m68k |
|
Disassembly of section \.plt: |
|
00020800 <f.@plt-0x18>: |
20800: 2f3b 0170 0000 movel %pc@\(30404 <_GLOBAL_OFFSET_TABLE_\+0x4>\),%sp@- |
20806: fc02 |
20808: 227b 0170 0000 moveal %pc@\(30408 <_GLOBAL_OFFSET_TABLE_\+0x8>\),%a1 |
2080e: fbfe |
20810: 4ed1 jmp %a1@ |
20812: 0000 0000 orib #0,%d0 |
\.\.\. |
|
00020818 <f.@plt>: |
20818: 227b 0170 0000 moveal %pc@\(3040c <_GLOBAL_OFFSET_TABLE_\+0xc>\),%a1 |
2081e: fbf2 |
20820: 4ed1 jmp %a1@ |
20822: 2f3c 0000 0000 movel #0,%sp@- |
20828: 60ff ffff ffd6 bral 20800 <f.@plt-0x18> |
\.\.\. |
|
00020830 <f.@plt>: |
20830: 227b 0170 0000 moveal %pc@\(30410 <_GLOBAL_OFFSET_TABLE_\+0x10>\),%a1 |
20836: fbde |
20838: 4ed1 jmp %a1@ |
2083a: 2f3c 0000 000c movel #12,%sp@- |
20840: 60ff ffff ffbe bral 20800 <f.@plt-0x18> |
\.\.\. |
|
00020848 <f.@plt>: |
20848: 227b 0170 0000 moveal %pc@\(30414 <_GLOBAL_OFFSET_TABLE_\+0x14>\),%a1 |
2084e: fbca |
20850: 4ed1 jmp %a1@ |
20852: 2f3c 0000 0018 movel #24,%sp@- |
20858: 60ff ffff ffa6 bral 20800 <f.@plt-0x18> |
\.\.\. |
Disassembly of section \.text: |
|
00020c00 <.*>: |
20c00: 61ff ffff fc.. bsrl 208.. <f1@plt> |
20c06: 61ff ffff fc.. bsrl 208.. <f2@plt> |
20c0c: 61ff ffff fc.. bsrl 208.. <f3@plt> |
/isaa-mac.d
0,0 → 1,7
|
.*: file format elf32-m68k |
|
Program Header: |
#... |
private flags = 12: \[isa A\] \[mac\] |
|
/merge.ld
0,0 → 1,9
OUTPUT_FORMAT("elf32-m68k", "elf32-m68k", |
"elf32-m68k") |
OUTPUT_ARCH(m68k) |
ENTRY(_start) |
|
SECTIONS { |
|
.text : {_start = .; *(.text)} |
} |
/isaa.d
0,0 → 1,7
|
.*: file format elf32-m68k |
|
Program Header: |
#... |
private flags = 2: \[isa A\] |
|
/isab.d
0,0 → 1,7
|
.*: file format elf32-m68k |
|
Program Header: |
#... |
private flags = 5: \[isa B\] |
|
/isab-float.d
0,0 → 1,7
|
.*: file format elf32-m68k |
|
Program Header: |
#... |
private flags = 8045: \[cfv4e\] \[isa B\] \[float\] |
|
/isaaplus.d
0,0 → 1,7
|
.*: file format elf32-m68k |
|
Program Header: |
#... |
private flags = 3: \[isa A\+\] |
|
/merge-error-1a.d
0,0 → 1,4
#source: merge-error-1a.s -mcpu=cpu32 |
#source: merge-error-1b.s -mcpu=68000 |
#ld: -r |
#error: ^[^\n]* m68k:68000 [^\n]* incompatible with m68k:cpu32 [^\n]*$ |
/merge-error-1b.d
0,0 → 1,4
#source: merge-error-1a.s -mcpu=cpu32 |
#source: merge-error-1b.s -mcpu=5207 |
#ld: -r |
#error: ^[^\n]* m68k:isa-aplus:emac [^\n]* incompatible with m68k:cpu32 [^\n]*$ |
/merge-error-1c.d
0,0 → 1,4
#source: merge-error-1a.s -march=isaaplus |
#source: merge-error-1b.s -march=isab |
#ld: -r |
#error: ^[^\n]* m68k:isa-b [^\n]* incompatible with m68k:isa-aplus [^\n]*$ |
/merge-error-1d.d
0,0 → 1,4
#source: merge-error-1a.s -march=isaa -mmac |
#source: merge-error-1b.s -march=isaa -memac |
#ld: -r |
#error: ^[^\n]* m68k:isa-a:emac [^\n]* incompatible with m68k:isa-a:mac [^\n]*$ |
/merge-error-1e.d
0,0 → 1,4
#source: merge-error-1a.s -march=isaa -mno-div -mmac |
#source: merge-error-1b.s -march=isaa -mno-div -memac |
#ld: -r |
#error: ^[^\n]* m68k:isa-a:emac [^\n]* is incompatible with m68k:isa-a:mac [^\n]*$ |
/isaa-mac.s
0,0 → 1,3
.arch isaa,mac |
|
nop |
/plt1-empty.s
0,0 → 1,3
.text |
.globl foo |
foo: |
/isaa.s
0,0 → 1,3
.arch isaa |
|
nop |
/plt1-isab.d
0,0 → 1,44
|
.*: file format elf32-m68k |
|
Disassembly of section \.plt: |
|
00020800 <f.@plt-0x18>: |
# _GLOBAL_OFFSET_TABLE_ + 4 == 0x30404 == 0x20802 + 0xfc02 |
20800: 203c 0000 fc02 movel #64514,%d0 |
20806: 2f3b 08fa movel %pc@\(20802 <f.@plt-0x16>,%d0:l\),%sp@- |
# _GLOBAL_OFFSET_TABLE_ + 8 == 0x30408 == 0x2080c + 0xfbfc |
2080a: 203c 0000 fbfc movel #64508,%d0 |
20810: 207b 08fa moveal %pc@\(2080c <f.@plt-0xc>,%d0:l\),%a0 |
20814: 4ed0 jmp %a0@ |
20816: 4e71 nop |
|
00020818 <f.@plt>: |
# _GLOBAL_OFFSET_TABLE_ + 12 == 0x3040c == 0x2081a + 0xfbf2 |
20818: 203c 0000 fbf2 movel #64498,%d0 |
2081e: 207b 08fa moveal %pc@\(2081a <f.@plt\+0x2>,%d0:l\),%a0 |
20822: 4ed0 jmp %a0@ |
20824: 2f3c 0000 0000 movel #0,%sp@- |
2082a: 60ff ffff ffd4 bral 20800 <f.@plt-0x18> |
|
00020830 <f.@plt>: |
# _GLOBAL_OFFSET_TABLE_ + 16 == 0x30410 == 0x20832 + 0xfbde |
20830: 203c 0000 fbde movel #64478,%d0 |
20836: 207b 08fa moveal %pc@\(20832 <f.@plt\+0x2>,%d0:l\),%a0 |
2083a: 4ed0 jmp %a0@ |
2083c: 2f3c 0000 000c movel #12,%sp@- |
20842: 60ff ffff ffbc bral 20800 <f.@plt-0x18> |
|
00020848 <f.@plt>: |
# _GLOBAL_OFFSET_TABLE_ + 20 == 0x30414 == 0x2084a + 0xfbca |
20848: 203c 0000 fbca movel #64458,%d0 |
2084e: 207b 08fa moveal %pc@\(2084a <f.@plt\+0x2>,%d0:l\),%a0 |
20852: 4ed0 jmp %a0@ |
20854: 2f3c 0000 0018 movel #24,%sp@- |
2085a: 60ff ffff ffa4 bral 20800 <f.@plt-0x18> |
Disassembly of section \.text: |
|
00020c00 <.*>: |
20c00: 61ff ffff fc.. bsrl 208.. <f1@plt> |
20c06: 61ff ffff fc.. bsrl 208.. <f2@plt> |
20c0c: 61ff ffff fc.. bsrl 208.. <f3@plt> |
/plt1.ld
0,0 → 1,23
SECTIONS |
{ |
. = 0x20000; |
.interp : { *(.interp) } |
.hash : { *(.hash) } |
.dynsym : { *(.dynsym) } |
.dynstr : { *(.dynstr) } |
|
. = ALIGN (0x400); |
.rela.plt : { *(.rela.plt) } |
|
. = ALIGN (0x400); |
.plt : { *(.plt) } |
|
. = ALIGN (0x400); |
.text : { *(.text) } |
|
. = ALIGN (0x10000); |
.dynamic : { *(.dynamic) } |
|
. = ALIGN (0x400); |
.got : { *(.got.plt) *(.got) } |
} |