Blame elf/tst-filterobj-aux.c

Packit Bot 5ef3dd
/* Auxiliary filter object.
Packit Bot 5ef3dd
   Contains symbols to be resolved in filtee, and one which doesn't.
Packit Bot 5ef3dd
Packit Bot 5ef3dd
   Copyright (C) 2020 Free Software Foundation, Inc.
Packit Bot 5ef3dd
   This file is part of the GNU C Library.
Packit Bot 5ef3dd
Packit Bot 5ef3dd
   The GNU C Library is free software; you can redistribute it and/or
Packit Bot 5ef3dd
   modify it under the terms of the GNU Lesser General Public
Packit Bot 5ef3dd
   License as published by the Free Software Foundation; either
Packit Bot 5ef3dd
   version 2.1 of the License, or (at your option) any later version.
Packit Bot 5ef3dd
Packit Bot 5ef3dd
   The GNU C Library is distributed in the hope that it will be useful,
Packit Bot 5ef3dd
   but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit Bot 5ef3dd
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit Bot 5ef3dd
   Lesser General Public License for more details.
Packit Bot 5ef3dd
Packit Bot 5ef3dd
   You should have received a copy of the GNU Lesser General Public
Packit Bot 5ef3dd
   License along with the GNU C Library; if not, see
Packit Bot 5ef3dd
   <https://www.gnu.org/licenses/>.  */
Packit Bot 5ef3dd
Packit Bot 5ef3dd
#include "tst-filterobj-filtee.h"
Packit Bot 5ef3dd
Packit Bot 5ef3dd
/* We never want to see the output of the auxiliary object.  */
Packit Bot 5ef3dd
const char *get_text (void)
Packit Bot 5ef3dd
{
Packit Bot 5ef3dd
  return "Hello from auxiliary filter object (FAIL)";
Packit Bot 5ef3dd
}
Packit Bot 5ef3dd
Packit Bot 5ef3dd
/* The filtee doesn't implement this symbol, so this should resolve.  */
Packit Bot 5ef3dd
const char *get_text2 (void)
Packit Bot 5ef3dd
{
Packit Bot 5ef3dd
  return "Hello from auxiliary filter object (PASS)";
Packit Bot 5ef3dd
}