Blame sysdeps/x86/tst-cet-legacy-mod-5.c

Packit Bot 4b1c21
/* Check compatibility of CET-enabled executable with dlopened legacy
Packit Bot 4b1c21
   shared object.
Packit Bot 4b1c21
   Copyright (C) 2019 Free Software Foundation, Inc.
Packit Bot 4b1c21
   This file is part of the GNU C Library.
Packit Bot 4b1c21
Packit Bot 4b1c21
   The GNU C Library is free software; you can redistribute it and/or
Packit Bot 4b1c21
   modify it under the terms of the GNU Lesser General Public
Packit Bot 4b1c21
   License as published by the Free Software Foundation; either
Packit Bot 4b1c21
   version 2.1 of the License, or (at your option) any later version.
Packit Bot 4b1c21
Packit Bot 4b1c21
   The GNU C Library is distributed in the hope that it will be useful,
Packit Bot 4b1c21
   but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit Bot 4b1c21
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit Bot 4b1c21
   Lesser General Public License for more details.
Packit Bot 4b1c21
Packit Bot 4b1c21
   You should have received a copy of the GNU Lesser General Public
Packit Bot 4b1c21
   License along with the GNU C Library; if not, see
Packit Bot 4b1c21
   <http://www.gnu.org/licenses/>.  */
Packit Bot 4b1c21
Packit Bot 4b1c21
#include <error.h>
Packit Bot 4b1c21
#include <stdio.h>
Packit Bot 4b1c21
#include <stdlib.h>
Packit Bot 4b1c21
Packit Bot 4b1c21
extern void foo (void);
Packit Bot 4b1c21
Packit Bot 4b1c21
int
Packit Bot 4b1c21
test (void)
Packit Bot 4b1c21
{
Packit Bot 4b1c21
  foo ();
Packit Bot 4b1c21
  return 0;
Packit Bot 4b1c21
}