Sat Oct 12 09:22:36 2019 UTC ()
Remove htonll and ntohll as symbols from aarch64 libc.

Other architectures do not define them, and so we don't provide a
function declaration in any header.

This means a package may detect it with a link-test and then fail
due to the missing declaration, like sysutils/collectd currently does.

Done this way as aarch64 has not had a release yet. Discussed with releng.


(maya)
diff -r1.1 -r1.2 src/common/lib/libc/arch/aarch64/gen/byte_swap_8.S

cvs diff -r1.1 -r1.2 src/common/lib/libc/arch/aarch64/gen/byte_swap_8.S (expand / switch to unified diff)

--- src/common/lib/libc/arch/aarch64/gen/byte_swap_8.S 2014/08/10 05:47:35 1.1
+++ src/common/lib/libc/arch/aarch64/gen/byte_swap_8.S 2019/10/12 09:22:36 1.2
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1/* $NetBSD: byte_swap_8.S,v 1.1 2014/08/10 05:47:35 matt Exp $ */ 1/* $NetBSD: byte_swap_8.S,v 1.2 2019/10/12 09:22:36 maya Exp $ */
2 2
3/*- 3/*-
4 * Copyright (c) 2014 The NetBSD Foundation, Inc. 4 * Copyright (c) 2014 The NetBSD Foundation, Inc.
5 * All rights reserved. 5 * All rights reserved.
6 * 6 *
7 * This code is derived from software contributed to The NetBSD Foundation 7 * This code is derived from software contributed to The NetBSD Foundation
8 * by Matt Thomas of 3am Software Foundry. 8 * by Matt Thomas of 3am Software Foundry.
9 * 9 *
10 * Redistribution and use in source and binary forms, with or without 10 * Redistribution and use in source and binary forms, with or without
11 * modification, are permitted provided that the following conditions 11 * modification, are permitted provided that the following conditions
12 * are met: 12 * are met:
13 * 1. Redistributions of source code must retain the above copyright 13 * 1. Redistributions of source code must retain the above copyright
14 * notice, this list of conditions and the following disclaimer. 14 * notice, this list of conditions and the following disclaimer.
@@ -31,17 +31,13 @@ @@ -31,17 +31,13 @@
31 31
32#include <machine/asm.h> 32#include <machine/asm.h>
33 33
34#if defined(_KERNEL) || defined(_STANDALONE) 34#if defined(_KERNEL) || defined(_STANDALONE)
35#define FUNC _C_LABEL(bswap64) 35#define FUNC _C_LABEL(bswap64)
36#else 36#else
37#define FUNC _C_LABEL(__bswap64) 37#define FUNC _C_LABEL(__bswap64)
38#endif 38#endif
39 39
40ENTRY(FUNC) 40ENTRY(FUNC)
41 rev x0, x0 41 rev x0, x0
42 ret 42 ret
43END(FUNC) 43END(FUNC)
44#if BYTE_ORDER == LITTLE_ENDIAN 
45STRONG_ALIAS(_C_LABEL(ntohll), FUNC) 
46STRONG_ALIAS(_C_LABEL(htonll), FUNC) 
47#endif