-
Notifications
You must be signed in to change notification settings - Fork 28
/
S52raz.s
45 lines (35 loc) · 1.34 KB
/
S52raz.s
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# S52raz.s: make an ELF object from PLib data
#
#
# This file is part of the OpENCview project, a viewer of ENC.
# Copyright (C) 2000-2015 Sylvain Duclos sduclos@users.sourceforge.net
#
# OpENCview is free software: you can redistribute it and/or modify
# it under the terms of the Lesser GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# OpENCview 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
# Lesser GNU General Public License for more details.
#
# You should have received a copy of the Lesser GNU General Public License
# along with OpENCview. If not, see <http://www.gnu.org/licenses/>.
#.align 32 # too large for ARM build
.align 8
# definition of symbol name
.global S52raz
.global S52razLen
.data
S52raz: # fill data segment
.incbin "S52raz-3.2.rle"
S52razLen:
.long . - S52raz
# this work also:
# $ objcopy -v -I binary -O elf32-little \
#--rename-section .data=.rodata in_file out_file
#
# where symbol are:
# _binary_S52raz_3_2_rle_start - is the start
# _binary_S52raz_3_2_rle_end - is the end