/
githubmirror
/
elfutils
Обзор
Документация
Войти
/
githubmirror
/
elfutils
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
tests/run-strip-nobitsalign.sh
35 строк
1004 B
Mark Wielaard
libelf: elf_getdata should not adjust alignment for SHT_NOBITS sections.
10 фев 2016, 13:27
10 фев 2016, 13:27
2203560
Код
Авторство
О чём код?
#! /bin/sh # Copyright (C) Red Hat, Inc., 2016. # This file is part of elfutils. # # This file 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. # # elfutils 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, see <http://www.gnu.org/licenses/>. # static unsigned char buffer[4096] __attribute((aligned (4096))); # # char # f (int i) # { # return buffer[i]; # } # # int # main (int argc, char **argv) # { # return buffer[argc] == 0; # } original=testfile-nobitsalign stripped=testfile-nobitsalign.strip . $srcdir/run-strip-test.sh