From 96a8bc11507ee060ccb8be56f69e1d1a7cf52792 Mon Sep 17 00:00:00 2001 From: oliviermartin Date: Wed, 2 May 2012 19:58:46 +0000 Subject: ArmPkg/PeCoffExtraActionLib: Enabled DS-5 command line when using ARM Toolchain v5 Signed-off-by: Olivier Martin git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13251 6f19259b-4bc3-4df7-8a09-765794883524 --- ArmPkg/Library/RvdPeCoffExtraActionLib/RvdPeCoffExtraActionLib.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'ArmPkg/Library/RvdPeCoffExtraActionLib/RvdPeCoffExtraActionLib.c') diff --git a/ArmPkg/Library/RvdPeCoffExtraActionLib/RvdPeCoffExtraActionLib.c b/ArmPkg/Library/RvdPeCoffExtraActionLib/RvdPeCoffExtraActionLib.c index ecc04acacf..d55608b45b 100644 --- a/ArmPkg/Library/RvdPeCoffExtraActionLib/RvdPeCoffExtraActionLib.c +++ b/ArmPkg/Library/RvdPeCoffExtraActionLib/RvdPeCoffExtraActionLib.c @@ -2,6 +2,8 @@ Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.
Portions copyright (c) 2008 - 2010, Apple Inc. All rights reserved.
+Portions copyright (c) 2011 - 2012, ARM Ltd. All rights reserved.
+ This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at @@ -117,7 +119,11 @@ PeCoffLoaderRelocateImageExtraAction ( { CHAR8 Buffer[256]; +#if (__ARMCC_VERSION < 500000) AsciiSPrint (Buffer, sizeof(Buffer), "load /a /ni /np \"%a\" &0x%08x\n", ImageContext->PdbPointer, (UINTN)(ImageContext->ImageAddress + ImageContext->SizeOfHeaders)); +#else + AsciiSPrint (Buffer, sizeof(Buffer), "add-symbol-file %a 0x%08x\n", ImageContext->PdbPointer, (UINTN)(ImageContext->ImageAddress + ImageContext->SizeOfHeaders)); +#endif DeCygwinPathIfNeeded (&Buffer[16]); WriteStringToFile (Buffer, AsciiStrSize (Buffer)); -- cgit v1.2.3