Deleted Added
full compact
gelf_move.c (164190) gelf_move.c (165317)
1/*-
2 * Copyright (c) 2006 Joseph Koshy
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 11 unchanged lines hidden (view full) ---

20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 */
26
27#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2006 Joseph Koshy
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 11 unchanged lines hidden (view full) ---

20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 */
26
27#include <sys/cdefs.h>
28__FBSDID("$FreeBSD: head/lib/libelf/gelf_move.c 164190 2006-11-11 17:16:35Z jkoshy $");
28__FBSDID("$FreeBSD: head/lib/libelf/gelf_move.c 165317 2006-12-18 05:40:01Z jkoshy $");
29
30#include <sys/limits.h>
31
32#include <assert.h>
33#include <gelf.h>
29
30#include <sys/limits.h>
31
32#include <assert.h>
33#include <gelf.h>
34#include <osreldate.h>
34
35#include "_libelf.h"
36
35
36#include "_libelf.h"
37
38#if __FreeBSD_version >= 700025
39
37GElf_Move *
38gelf_getmove(Elf_Data *d, int ndx, GElf_Move *dst)
39{
40 int ec;
41 Elf *e;
42 Elf_Scn *scn;
43 Elf32_Move *move32;
44 Elf64_Move *move64;

--- 99 unchanged lines hidden (view full) ---

144 } else {
145 move64 = (Elf64_Move *) d->d_buf + ndx;
146
147 *move64 = *gm;
148 }
149
150 return (1);
151}
40GElf_Move *
41gelf_getmove(Elf_Data *d, int ndx, GElf_Move *dst)
42{
43 int ec;
44 Elf *e;
45 Elf_Scn *scn;
46 Elf32_Move *move32;
47 Elf64_Move *move64;

--- 99 unchanged lines hidden (view full) ---

147 } else {
148 move64 = (Elf64_Move *) d->d_buf + ndx;
149
150 *move64 = *gm;
151 }
152
153 return (1);
154}
155
156#endif /* __FreeBSD_version >= 700025 */