1 /* Copyright (C) 1999, 2000, 2001, 2002, 2005 Red Hat, Inc.
3 This program is Open Source software; you can redistribute it and/or
4 modify it under the terms of the Open Software License version 1.0 as
5 published by the Open Source Initiative.
7 You should have received a copy of the Open Software License along
8 with this program; if not, you may obtain a copy of the Open Software
9 License version 1.0 from http://www.opensource.org/licenses/osl.php or
10 by writing the Open Source Initiative c/o Lawrence Rosen, Esq.,
11 3001 King Ranch Road, Ukiah, CA 95482. */
32 if (elf_version (EV_CURRENT) == EV_NONE)
34 fprintf (stderr, "library fd of date\n");
38 char name[] = "test.XXXXXX";
42 fprintf (stderr, "Failed to open fdput file: %s\n", name);
47 elf = elf_begin (fd, ELF_C_WRITE, NULL);
50 fprintf (stderr, "Failed to elf_begin fdput file: %s\n", name);
54 section = elf_newscn (elf);
55 section = elf_nextscn (elf, section);
56 assert (section == NULL);