From a5c2ce7cd136ee959951c5f220ff5d3018d4ac3b Mon Sep 17 00:00:00 2001 From: Laszlo Ersek Date: Thu, 27 Feb 2020 22:39:02 +0100 Subject: [PATCH] ArmVirtPkg: convert LFs to CRLF MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit We're going to switch the internal line terminators globally to LF at some point, but until then, let's use CRLF consistently. Convert source files with LFs in them to CRLF, using "unix2dos". "git show -b" prints no code changes for this patch. (I collected all the file name suffixes in this package, with: $ git ls-files -- $PACKAGE | rev | cut -f 1 -d . | sort -u | rev I eliminated those suffixes that didn't stand for text files, then blanket-converted the rest with unix2dos. Finally, picked up the actual changes with git-add.) The CRLF conversion is motivated by "PatchCheck.py". Cc: Ard Biesheuvel Cc: Leif Lindholm Cc: Philippe Mathieu-Daudé Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=1659 Signed-off-by: Laszlo Ersek Message-Id: <20200227213903.13884-3-lersek@redhat.com> Acked-by: Ard Biesheuvel Reviewed-by: Philippe Mathieu-Daude --- ArmVirtPkg/Include/Platform/Hidden.h | 44 ++++++++++++++-------------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/ArmVirtPkg/Include/Platform/Hidden.h b/ArmVirtPkg/Include/Platform/Hidden.h index c69cc662fa..7a7bdb42b8 100644 --- a/ArmVirtPkg/Include/Platform/Hidden.h +++ b/ArmVirtPkg/Include/Platform/Hidden.h @@ -1,22 +1,22 @@ -/** @file - - Copyright (c) 2018, Linaro Limited. All rights reserved. - - SPDX-License-Identifier: BSD-2-Clause-Patent - -**/ - -#ifndef __PLATFORM_HIDDEN_H -#define __PLATFORM_HIDDEN_H - -// -// Setting the GCC -fvisibility=hidden command line option is not quite the same -// as setting the pragma below: the former only affects definitions, whereas the -// pragma affects extern declarations as well. So if we want to ensure that no -// GOT indirected symbol references are emitted, we need to use the pragma, or -// GOT based cross object references could be emitted, e.g., in libraries, and -// these cannot be relaxed to ordinary symbol references at link time. -// -#pragma GCC visibility push (hidden) - -#endif +/** @file + + Copyright (c) 2018, Linaro Limited. All rights reserved. + + SPDX-License-Identifier: BSD-2-Clause-Patent + +**/ + +#ifndef __PLATFORM_HIDDEN_H +#define __PLATFORM_HIDDEN_H + +// +// Setting the GCC -fvisibility=hidden command line option is not quite the same +// as setting the pragma below: the former only affects definitions, whereas the +// pragma affects extern declarations as well. So if we want to ensure that no +// GOT indirected symbol references are emitted, we need to use the pragma, or +// GOT based cross object references could be emitted, e.g., in libraries, and +// these cannot be relaxed to ordinary symbol references at link time. +// +#pragma GCC visibility push (hidden) + +#endif -- 2.39.2