.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* ----------------------------------------------------------------------- * |
---|
2 | 3 | * |
---|
3 | 4 | * Copyright (C) 2009 Intel Corporation. All rights reserved. |
---|
4 | | - * |
---|
5 | | - * This program is free software; you can redistribute it and/or |
---|
6 | | - * modify it under the terms of the GNU General Public License version |
---|
7 | | - * 2 as published by the Free Software Foundation. |
---|
8 | | - * |
---|
9 | | - * This program is distributed in the hope that it will be useful, |
---|
10 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
11 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
12 | | - * GNU General Public License for more details. |
---|
13 | | - * |
---|
14 | | - * You should have received a copy of the GNU General Public License |
---|
15 | | - * along with this program; if not, write to the Free Software |
---|
16 | | - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA |
---|
17 | | - * 02110-1301, USA. |
---|
18 | 5 | * |
---|
19 | 6 | * H. Peter Anvin <hpa@linux.intel.com> |
---|
20 | 7 | * |
---|
21 | 8 | * ----------------------------------------------------------------------- |
---|
22 | 9 | * |
---|
23 | 10 | * Outputs a small assembly wrapper with the appropriate symbols defined. |
---|
24 | | - * |
---|
25 | 11 | */ |
---|
26 | 12 | |
---|
27 | 13 | #include <stdlib.h> |
---|
.. | .. |
---|
74 | 60 | printf(".incbin \"%s\"\n", argv[1]); |
---|
75 | 61 | printf("input_data_end:\n"); |
---|
76 | 62 | |
---|
| 63 | + printf(".section \".rodata\",\"a\",@progbits\n"); |
---|
| 64 | + printf(".globl input_len\n"); |
---|
| 65 | + printf("input_len:\n\t.long %lu\n", ilen); |
---|
| 66 | + printf(".globl output_len\n"); |
---|
| 67 | + printf("output_len:\n\t.long %lu\n", (unsigned long)olen); |
---|
| 68 | + |
---|
77 | 69 | retval = 0; |
---|
78 | 70 | bail: |
---|
79 | 71 | if (f) |
---|