summaryrefslogtreecommitdiff
path: root/MdePkg
diff options
context:
space:
mode:
authoreric_tian <eric_tian@6f19259b-4bc3-4df7-8a09-765794883524>2009-05-15 03:21:08 +0000
committereric_tian <eric_tian@6f19259b-4bc3-4df7-8a09-765794883524>2009-05-15 03:21:08 +0000
commitd3c0cbcecc0c1fd5306819e4fee02c95be258156 (patch)
treecdeb24669740f897bd4318291e6e72ad5606a9b6 /MdePkg
parent44c0fd78ef983772324a4788c42287b1b9302a66 (diff)
downloadedk2-platforms-d3c0cbcecc0c1fd5306819e4fee02c95be258156.tar.xz
cleanup the .S file to wrap all public symbols with ASM_PFX() macro,which is used to generate underscore prior to public symbol or not within various GCC distribution versions.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8316 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdePkg')
-rw-r--r--MdePkg/Library/BaseMemoryLibMmx/Ia32/CompareMem.S4
-rw-r--r--MdePkg/Library/BaseMemoryLibMmx/Ia32/CopyMem.S4
-rw-r--r--MdePkg/Library/BaseMemoryLibMmx/Ia32/ScanMem16.S4
-rw-r--r--MdePkg/Library/BaseMemoryLibMmx/Ia32/ScanMem32.S4
-rw-r--r--MdePkg/Library/BaseMemoryLibMmx/Ia32/ScanMem64.S4
-rw-r--r--MdePkg/Library/BaseMemoryLibMmx/Ia32/ScanMem8.S4
-rw-r--r--MdePkg/Library/BaseMemoryLibMmx/Ia32/SetMem.S4
-rw-r--r--MdePkg/Library/BaseMemoryLibMmx/Ia32/SetMem16.S4
-rw-r--r--MdePkg/Library/BaseMemoryLibMmx/Ia32/SetMem32.S4
-rw-r--r--MdePkg/Library/BaseMemoryLibMmx/Ia32/SetMem64.S4
-rw-r--r--MdePkg/Library/BaseMemoryLibMmx/Ia32/ZeroMem.S4
-rw-r--r--MdePkg/Library/BaseMemoryLibRepStr/Ia32/CompareMem.S4
-rw-r--r--MdePkg/Library/BaseMemoryLibRepStr/Ia32/CopyMem.S4
-rw-r--r--MdePkg/Library/BaseMemoryLibRepStr/Ia32/ScanMem16.S4
-rw-r--r--MdePkg/Library/BaseMemoryLibRepStr/Ia32/ScanMem32.S4
-rw-r--r--MdePkg/Library/BaseMemoryLibRepStr/Ia32/ScanMem64.S4
-rw-r--r--MdePkg/Library/BaseMemoryLibRepStr/Ia32/ScanMem8.S4
-rw-r--r--MdePkg/Library/BaseMemoryLibRepStr/Ia32/SetMem.S4
-rw-r--r--MdePkg/Library/BaseMemoryLibRepStr/Ia32/SetMem16.S4
-rw-r--r--MdePkg/Library/BaseMemoryLibRepStr/Ia32/SetMem32.S4
-rw-r--r--MdePkg/Library/BaseMemoryLibRepStr/Ia32/SetMem64.S4
-rw-r--r--MdePkg/Library/BaseMemoryLibRepStr/Ia32/ZeroMem.S4
-rw-r--r--MdePkg/Library/BaseMemoryLibSse2/Ia32/CompareMem.S4
-rw-r--r--MdePkg/Library/BaseMemoryLibSse2/Ia32/CopyMem.S4
-rw-r--r--MdePkg/Library/BaseMemoryLibSse2/Ia32/ScanMem16.S4
-rw-r--r--MdePkg/Library/BaseMemoryLibSse2/Ia32/ScanMem32.S4
-rw-r--r--MdePkg/Library/BaseMemoryLibSse2/Ia32/ScanMem64.S4
-rw-r--r--MdePkg/Library/BaseMemoryLibSse2/Ia32/ScanMem8.S4
-rw-r--r--MdePkg/Library/BaseMemoryLibSse2/Ia32/SetMem.S4
-rw-r--r--MdePkg/Library/BaseMemoryLibSse2/Ia32/SetMem16.S4
-rw-r--r--MdePkg/Library/BaseMemoryLibSse2/Ia32/SetMem32.S4
-rw-r--r--MdePkg/Library/BaseMemoryLibSse2/Ia32/SetMem64.S4
-rw-r--r--MdePkg/Library/BaseMemoryLibSse2/Ia32/ZeroMem.S4
33 files changed, 66 insertions, 66 deletions
diff --git a/MdePkg/Library/BaseMemoryLibMmx/Ia32/CompareMem.S b/MdePkg/Library/BaseMemoryLibMmx/Ia32/CompareMem.S
index 3814cd36d2..e3da4ffb95 100644
--- a/MdePkg/Library/BaseMemoryLibMmx/Ia32/CompareMem.S
+++ b/MdePkg/Library/BaseMemoryLibMmx/Ia32/CompareMem.S
@@ -29,7 +29,7 @@
#
#------------------------------------------------------------------------------
-.globl _InternalMemCompareMem
+.globl ASM_PFX(InternalMemCompareMem)
#------------------------------------------------------------------------------
# INTN
@@ -40,7 +40,7 @@
# IN UINTN Length
# );
#------------------------------------------------------------------------------
-_InternalMemCompareMem:
+ASM_PFX(InternalMemCompareMem):
push %esi
push %edi
movl 12(%esp), %esi
diff --git a/MdePkg/Library/BaseMemoryLibMmx/Ia32/CopyMem.S b/MdePkg/Library/BaseMemoryLibMmx/Ia32/CopyMem.S
index 71d3d20d5c..ea75f70001 100644
--- a/MdePkg/Library/BaseMemoryLibMmx/Ia32/CopyMem.S
+++ b/MdePkg/Library/BaseMemoryLibMmx/Ia32/CopyMem.S
@@ -21,7 +21,7 @@
#
#------------------------------------------------------------------------------
-.globl _InternalMemCopyMem
+.globl ASM_PFX(InternalMemCopyMem)
#------------------------------------------------------------------------------
# VOID *
@@ -32,7 +32,7 @@
# IN UINTN Count
# );
#------------------------------------------------------------------------------
-_InternalMemCopyMem:
+ASM_PFX(InternalMemCopyMem):
push %esi
push %edi
movl 16(%esp), %esi # esi <- Source
diff --git a/MdePkg/Library/BaseMemoryLibMmx/Ia32/ScanMem16.S b/MdePkg/Library/BaseMemoryLibMmx/Ia32/ScanMem16.S
index 38e56493d4..d8bb46b12e 100644
--- a/MdePkg/Library/BaseMemoryLibMmx/Ia32/ScanMem16.S
+++ b/MdePkg/Library/BaseMemoryLibMmx/Ia32/ScanMem16.S
@@ -29,7 +29,7 @@
#
#------------------------------------------------------------------------------
-.globl _InternalMemScanMem16
+.globl ASM_PFX(InternalMemScanMem16)
#------------------------------------------------------------------------------
# CONST VOID *
@@ -40,7 +40,7 @@
# IN UINT16 Value
# );
#------------------------------------------------------------------------------
-_InternalMemScanMem16:
+ASM_PFX(InternalMemScanMem16):
push %edi
movl 12(%esp), %ecx
movl 8(%esp), %edi
diff --git a/MdePkg/Library/BaseMemoryLibMmx/Ia32/ScanMem32.S b/MdePkg/Library/BaseMemoryLibMmx/Ia32/ScanMem32.S
index e572b7fd99..dfc36fdb66 100644
--- a/MdePkg/Library/BaseMemoryLibMmx/Ia32/ScanMem32.S
+++ b/MdePkg/Library/BaseMemoryLibMmx/Ia32/ScanMem32.S
@@ -29,7 +29,7 @@
#
#------------------------------------------------------------------------------
-.globl _InternalMemScanMem32
+.globl ASM_PFX(InternalMemScanMem32)
#------------------------------------------------------------------------------
# CONST VOID *
@@ -40,7 +40,7 @@
# IN UINT32 Value
# );
#------------------------------------------------------------------------------
-_InternalMemScanMem32:
+ASM_PFX(InternalMemScanMem32):
push %edi
movl 12(%esp), %ecx
movl 8(%esp), %edi
diff --git a/MdePkg/Library/BaseMemoryLibMmx/Ia32/ScanMem64.S b/MdePkg/Library/BaseMemoryLibMmx/Ia32/ScanMem64.S
index cde4f3a734..3b67d4c056 100644
--- a/MdePkg/Library/BaseMemoryLibMmx/Ia32/ScanMem64.S
+++ b/MdePkg/Library/BaseMemoryLibMmx/Ia32/ScanMem64.S
@@ -29,7 +29,7 @@
#
#------------------------------------------------------------------------------
-.globl _InternalMemScanMem64
+.globl ASM_PFX(InternalMemScanMem64)
#------------------------------------------------------------------------------
# CONST VOID *
@@ -40,7 +40,7 @@
# IN UINT64 Value
# );
#------------------------------------------------------------------------------
-_InternalMemScanMem64:
+ASM_PFX(InternalMemScanMem64):
push %edi
movl 12(%esp), %ecx
movl 16(%esp), %eax
diff --git a/MdePkg/Library/BaseMemoryLibMmx/Ia32/ScanMem8.S b/MdePkg/Library/BaseMemoryLibMmx/Ia32/ScanMem8.S
index b0adcabf93..b3226052c8 100644
--- a/MdePkg/Library/BaseMemoryLibMmx/Ia32/ScanMem8.S
+++ b/MdePkg/Library/BaseMemoryLibMmx/Ia32/ScanMem8.S
@@ -29,7 +29,7 @@
#
#------------------------------------------------------------------------------
-.globl _InternalMemScanMem8
+.globl ASM_PFX(InternalMemScanMem8)
#------------------------------------------------------------------------------
# CONST VOID *
@@ -40,7 +40,7 @@
# IN UINT8 Value
# );
#------------------------------------------------------------------------------
-_InternalMemScanMem8:
+ASM_PFX(InternalMemScanMem8):
push %edi
movl 12(%esp), %ecx
movl 8(%esp), %edi
diff --git a/MdePkg/Library/BaseMemoryLibMmx/Ia32/SetMem.S b/MdePkg/Library/BaseMemoryLibMmx/Ia32/SetMem.S
index 5606d27b7b..ed4e15e3ca 100644
--- a/MdePkg/Library/BaseMemoryLibMmx/Ia32/SetMem.S
+++ b/MdePkg/Library/BaseMemoryLibMmx/Ia32/SetMem.S
@@ -21,7 +21,7 @@
#
#------------------------------------------------------------------------------
-.globl _InternalMemSetMem
+.globl ASM_PFX(InternalMemSetMem)
#------------------------------------------------------------------------------
# VOID *
@@ -31,7 +31,7 @@
# IN UINT8 Value
# )
#------------------------------------------------------------------------------
-_InternalMemSetMem:
+ASM_PFX(InternalMemSetMem):
push %edi
movb 16(%esp), %al
movb %al, %ah
diff --git a/MdePkg/Library/BaseMemoryLibMmx/Ia32/SetMem16.S b/MdePkg/Library/BaseMemoryLibMmx/Ia32/SetMem16.S
index e0a787afb4..b8066b7784 100644
--- a/MdePkg/Library/BaseMemoryLibMmx/Ia32/SetMem16.S
+++ b/MdePkg/Library/BaseMemoryLibMmx/Ia32/SetMem16.S
@@ -21,7 +21,7 @@
#
#------------------------------------------------------------------------------
-.globl _InternalMemSetMem16
+.globl ASM_PFX(InternalMemSetMem16)
#------------------------------------------------------------------------------
# VOID *
@@ -31,7 +31,7 @@
# IN UINT16 Value
# )
#------------------------------------------------------------------------------
-_InternalMemSetMem16:
+ASM_PFX(InternalMemSetMem16):
push %edi
movl 16(%esp), %eax
shrdl $16, %eax, %edx
diff --git a/MdePkg/Library/BaseMemoryLibMmx/Ia32/SetMem32.S b/MdePkg/Library/BaseMemoryLibMmx/Ia32/SetMem32.S
index 22b50650ad..f6d786e255 100644
--- a/MdePkg/Library/BaseMemoryLibMmx/Ia32/SetMem32.S
+++ b/MdePkg/Library/BaseMemoryLibMmx/Ia32/SetMem32.S
@@ -21,7 +21,7 @@
#
#------------------------------------------------------------------------------
-.globl _InternalMemSetMem32
+.globl ASM_PFX(InternalMemSetMem32)
#------------------------------------------------------------------------------
# VOID *
@@ -31,7 +31,7 @@
# IN UINT32 Value
# )
#------------------------------------------------------------------------------
-_InternalMemSetMem32:
+ASM_PFX(InternalMemSetMem32):
movl 4(%esp), %eax
movl 8(%esp), %ecx
movd 12(%esp), %mm0
diff --git a/MdePkg/Library/BaseMemoryLibMmx/Ia32/SetMem64.S b/MdePkg/Library/BaseMemoryLibMmx/Ia32/SetMem64.S
index efd24ae2ed..7bbf694db8 100644
--- a/MdePkg/Library/BaseMemoryLibMmx/Ia32/SetMem64.S
+++ b/MdePkg/Library/BaseMemoryLibMmx/Ia32/SetMem64.S
@@ -21,7 +21,7 @@
#
#------------------------------------------------------------------------------
-.globl _InternalMemSetMem64
+.globl ASM_PFX(InternalMemSetMem64)
#------------------------------------------------------------------------------
# VOID *
@@ -31,7 +31,7 @@
# IN UINT64 Value
# )
#------------------------------------------------------------------------------
-_InternalMemSetMem64:
+ASM_PFX(InternalMemSetMem64):
movl 4(%esp), %eax
movl 8(%esp), %ecx
movq 12(%esp), %mm0
diff --git a/MdePkg/Library/BaseMemoryLibMmx/Ia32/ZeroMem.S b/MdePkg/Library/BaseMemoryLibMmx/Ia32/ZeroMem.S
index 999beba3d5..7d93d5be09 100644
--- a/MdePkg/Library/BaseMemoryLibMmx/Ia32/ZeroMem.S
+++ b/MdePkg/Library/BaseMemoryLibMmx/Ia32/ZeroMem.S
@@ -21,7 +21,7 @@
#
#------------------------------------------------------------------------------
-.globl _InternalMemZeroMem
+.globl ASM_PFX(InternalMemZeroMem)
#------------------------------------------------------------------------------
# VOID *
@@ -31,7 +31,7 @@
# IN UINTN Count
# );
#------------------------------------------------------------------------------
-_InternalMemZeroMem:
+ASM_PFX(InternalMemZeroMem):
push %edi
movl 8(%esp), %edi
movl 12(%esp), %ecx
diff --git a/MdePkg/Library/BaseMemoryLibRepStr/Ia32/CompareMem.S b/MdePkg/Library/BaseMemoryLibRepStr/Ia32/CompareMem.S
index 3814cd36d2..e3da4ffb95 100644
--- a/MdePkg/Library/BaseMemoryLibRepStr/Ia32/CompareMem.S
+++ b/MdePkg/Library/BaseMemoryLibRepStr/Ia32/CompareMem.S
@@ -29,7 +29,7 @@
#
#------------------------------------------------------------------------------
-.globl _InternalMemCompareMem
+.globl ASM_PFX(InternalMemCompareMem)
#------------------------------------------------------------------------------
# INTN
@@ -40,7 +40,7 @@
# IN UINTN Length
# );
#------------------------------------------------------------------------------
-_InternalMemCompareMem:
+ASM_PFX(InternalMemCompareMem):
push %esi
push %edi
movl 12(%esp), %esi
diff --git a/MdePkg/Library/BaseMemoryLibRepStr/Ia32/CopyMem.S b/MdePkg/Library/BaseMemoryLibRepStr/Ia32/CopyMem.S
index 62bb9b1697..22f494fac1 100644
--- a/MdePkg/Library/BaseMemoryLibRepStr/Ia32/CopyMem.S
+++ b/MdePkg/Library/BaseMemoryLibRepStr/Ia32/CopyMem.S
@@ -21,7 +21,7 @@
#
#------------------------------------------------------------------------------
-.globl _InternalMemCopyMem
+.globl ASM_PFX(InternalMemCopyMem)
#------------------------------------------------------------------------------
# VOID *
@@ -32,7 +32,7 @@
# IN UINTN Count
# );
#------------------------------------------------------------------------------
-_InternalMemCopyMem:
+ASM_PFX(InternalMemCopyMem):
push %esi
push %edi
movl 16(%esp), %esi # esi <- Source
diff --git a/MdePkg/Library/BaseMemoryLibRepStr/Ia32/ScanMem16.S b/MdePkg/Library/BaseMemoryLibRepStr/Ia32/ScanMem16.S
index 38e56493d4..d8bb46b12e 100644
--- a/MdePkg/Library/BaseMemoryLibRepStr/Ia32/ScanMem16.S
+++ b/MdePkg/Library/BaseMemoryLibRepStr/Ia32/ScanMem16.S
@@ -29,7 +29,7 @@
#
#------------------------------------------------------------------------------
-.globl _InternalMemScanMem16
+.globl ASM_PFX(InternalMemScanMem16)
#------------------------------------------------------------------------------
# CONST VOID *
@@ -40,7 +40,7 @@
# IN UINT16 Value
# );
#------------------------------------------------------------------------------
-_InternalMemScanMem16:
+ASM_PFX(InternalMemScanMem16):
push %edi
movl 12(%esp), %ecx
movl 8(%esp), %edi
diff --git a/MdePkg/Library/BaseMemoryLibRepStr/Ia32/ScanMem32.S b/MdePkg/Library/BaseMemoryLibRepStr/Ia32/ScanMem32.S
index e572b7fd99..dfc36fdb66 100644
--- a/MdePkg/Library/BaseMemoryLibRepStr/Ia32/ScanMem32.S
+++ b/MdePkg/Library/BaseMemoryLibRepStr/Ia32/ScanMem32.S
@@ -29,7 +29,7 @@
#
#------------------------------------------------------------------------------
-.globl _InternalMemScanMem32
+.globl ASM_PFX(InternalMemScanMem32)
#------------------------------------------------------------------------------
# CONST VOID *
@@ -40,7 +40,7 @@
# IN UINT32 Value
# );
#------------------------------------------------------------------------------
-_InternalMemScanMem32:
+ASM_PFX(InternalMemScanMem32):
push %edi
movl 12(%esp), %ecx
movl 8(%esp), %edi
diff --git a/MdePkg/Library/BaseMemoryLibRepStr/Ia32/ScanMem64.S b/MdePkg/Library/BaseMemoryLibRepStr/Ia32/ScanMem64.S
index cde4f3a734..3b67d4c056 100644
--- a/MdePkg/Library/BaseMemoryLibRepStr/Ia32/ScanMem64.S
+++ b/MdePkg/Library/BaseMemoryLibRepStr/Ia32/ScanMem64.S
@@ -29,7 +29,7 @@
#
#------------------------------------------------------------------------------
-.globl _InternalMemScanMem64
+.globl ASM_PFX(InternalMemScanMem64)
#------------------------------------------------------------------------------
# CONST VOID *
@@ -40,7 +40,7 @@
# IN UINT64 Value
# );
#------------------------------------------------------------------------------
-_InternalMemScanMem64:
+ASM_PFX(InternalMemScanMem64):
push %edi
movl 12(%esp), %ecx
movl 16(%esp), %eax
diff --git a/MdePkg/Library/BaseMemoryLibRepStr/Ia32/ScanMem8.S b/MdePkg/Library/BaseMemoryLibRepStr/Ia32/ScanMem8.S
index b0adcabf93..b3226052c8 100644
--- a/MdePkg/Library/BaseMemoryLibRepStr/Ia32/ScanMem8.S
+++ b/MdePkg/Library/BaseMemoryLibRepStr/Ia32/ScanMem8.S
@@ -29,7 +29,7 @@
#
#------------------------------------------------------------------------------
-.globl _InternalMemScanMem8
+.globl ASM_PFX(InternalMemScanMem8)
#------------------------------------------------------------------------------
# CONST VOID *
@@ -40,7 +40,7 @@
# IN UINT8 Value
# );
#------------------------------------------------------------------------------
-_InternalMemScanMem8:
+ASM_PFX(InternalMemScanMem8):
push %edi
movl 12(%esp), %ecx
movl 8(%esp), %edi
diff --git a/MdePkg/Library/BaseMemoryLibRepStr/Ia32/SetMem.S b/MdePkg/Library/BaseMemoryLibRepStr/Ia32/SetMem.S
index 68fa2ba651..9abf0cd86c 100644
--- a/MdePkg/Library/BaseMemoryLibRepStr/Ia32/SetMem.S
+++ b/MdePkg/Library/BaseMemoryLibRepStr/Ia32/SetMem.S
@@ -24,7 +24,7 @@
.386:
.code:
-.globl _InternalMemSetMem
+.globl ASM_PFX(InternalMemSetMem)
#------------------------------------------------------------------------------
# VOID *
@@ -34,7 +34,7 @@
# IN UINT8 Value
# )
#------------------------------------------------------------------------------
-_InternalMemSetMem:
+ASM_PFX(InternalMemSetMem):
push %edi
movl 16(%esp),%eax
movl 8(%esp),%edi
diff --git a/MdePkg/Library/BaseMemoryLibRepStr/Ia32/SetMem16.S b/MdePkg/Library/BaseMemoryLibRepStr/Ia32/SetMem16.S
index 12152da7fc..9b88048bb9 100644
--- a/MdePkg/Library/BaseMemoryLibRepStr/Ia32/SetMem16.S
+++ b/MdePkg/Library/BaseMemoryLibRepStr/Ia32/SetMem16.S
@@ -21,7 +21,7 @@
#
#------------------------------------------------------------------------------
-.globl _InternalMemSetMem16
+.globl ASM_PFX(InternalMemSetMem16)
#------------------------------------------------------------------------------
# VOID *
@@ -31,7 +31,7 @@
# IN UINT16 Value
# )
#------------------------------------------------------------------------------
-_InternalMemSetMem16:
+ASM_PFX(InternalMemSetMem16):
push %edi
movl 16(%esp), %eax
movl 8(%esp), %edi
diff --git a/MdePkg/Library/BaseMemoryLibRepStr/Ia32/SetMem32.S b/MdePkg/Library/BaseMemoryLibRepStr/Ia32/SetMem32.S
index a2a9185971..31d9d1d9e7 100644
--- a/MdePkg/Library/BaseMemoryLibRepStr/Ia32/SetMem32.S
+++ b/MdePkg/Library/BaseMemoryLibRepStr/Ia32/SetMem32.S
@@ -21,7 +21,7 @@
#
#------------------------------------------------------------------------------
-.globl _InternalMemSetMem32
+.globl ASM_PFX(InternalMemSetMem32)
#------------------------------------------------------------------------------
# VOID *
@@ -31,7 +31,7 @@
# IN UINT32 Value
# )
#------------------------------------------------------------------------------
-_InternalMemSetMem32:
+ASM_PFX(InternalMemSetMem32):
push %edi
movl 16(%esp),%eax
movl 8(%esp),%edi
diff --git a/MdePkg/Library/BaseMemoryLibRepStr/Ia32/SetMem64.S b/MdePkg/Library/BaseMemoryLibRepStr/Ia32/SetMem64.S
index 942a119712..34075780d1 100644
--- a/MdePkg/Library/BaseMemoryLibRepStr/Ia32/SetMem64.S
+++ b/MdePkg/Library/BaseMemoryLibRepStr/Ia32/SetMem64.S
@@ -21,7 +21,7 @@
#
#------------------------------------------------------------------------------
-.globl _InternalMemSetMem64
+.globl ASM_PFX(InternalMemSetMem64)
#------------------------------------------------------------------------------
# VOID *
@@ -31,7 +31,7 @@
# IN UINT64 Value
# )
#------------------------------------------------------------------------------
-_InternalMemSetMem64:
+ASM_PFX(InternalMemSetMem64):
push %edi
movl 12(%esp), %ecx
movl 16(%esp), %eax
diff --git a/MdePkg/Library/BaseMemoryLibRepStr/Ia32/ZeroMem.S b/MdePkg/Library/BaseMemoryLibRepStr/Ia32/ZeroMem.S
index 833e2d8ba2..d0af0ab772 100644
--- a/MdePkg/Library/BaseMemoryLibRepStr/Ia32/ZeroMem.S
+++ b/MdePkg/Library/BaseMemoryLibRepStr/Ia32/ZeroMem.S
@@ -21,7 +21,7 @@
#
#------------------------------------------------------------------------------
-.globl _InternalMemZeroMem
+.globl ASM_PFX(InternalMemZeroMem)
#------------------------------------------------------------------------------
# VOID *
@@ -30,7 +30,7 @@
# IN UINTN Count
# );
#------------------------------------------------------------------------------
-_InternalMemZeroMem:
+ASM_PFX(InternalMemZeroMem):
push %edi
xorl %eax,%eax
movl 8(%esp),%edi
diff --git a/MdePkg/Library/BaseMemoryLibSse2/Ia32/CompareMem.S b/MdePkg/Library/BaseMemoryLibSse2/Ia32/CompareMem.S
index 3814cd36d2..e3da4ffb95 100644
--- a/MdePkg/Library/BaseMemoryLibSse2/Ia32/CompareMem.S
+++ b/MdePkg/Library/BaseMemoryLibSse2/Ia32/CompareMem.S
@@ -29,7 +29,7 @@
#
#------------------------------------------------------------------------------
-.globl _InternalMemCompareMem
+.globl ASM_PFX(InternalMemCompareMem)
#------------------------------------------------------------------------------
# INTN
@@ -40,7 +40,7 @@
# IN UINTN Length
# );
#------------------------------------------------------------------------------
-_InternalMemCompareMem:
+ASM_PFX(InternalMemCompareMem):
push %esi
push %edi
movl 12(%esp), %esi
diff --git a/MdePkg/Library/BaseMemoryLibSse2/Ia32/CopyMem.S b/MdePkg/Library/BaseMemoryLibSse2/Ia32/CopyMem.S
index d79c3812a8..d43464c2cd 100644
--- a/MdePkg/Library/BaseMemoryLibSse2/Ia32/CopyMem.S
+++ b/MdePkg/Library/BaseMemoryLibSse2/Ia32/CopyMem.S
@@ -21,7 +21,7 @@
#
#------------------------------------------------------------------------------
-.globl _InternalMemCopyMem
+.globl ASM_PFX(InternalMemCopyMem)
#------------------------------------------------------------------------------
# VOID *
@@ -32,7 +32,7 @@
# IN UINTN Count
# );
#------------------------------------------------------------------------------
-_InternalMemCopyMem:
+ASM_PFX(InternalMemCopyMem):
push %esi
push %edi
movl 16(%esp), %esi # esi <- Source
diff --git a/MdePkg/Library/BaseMemoryLibSse2/Ia32/ScanMem16.S b/MdePkg/Library/BaseMemoryLibSse2/Ia32/ScanMem16.S
index 38e56493d4..d8bb46b12e 100644
--- a/MdePkg/Library/BaseMemoryLibSse2/Ia32/ScanMem16.S
+++ b/MdePkg/Library/BaseMemoryLibSse2/Ia32/ScanMem16.S
@@ -29,7 +29,7 @@
#
#------------------------------------------------------------------------------
-.globl _InternalMemScanMem16
+.globl ASM_PFX(InternalMemScanMem16)
#------------------------------------------------------------------------------
# CONST VOID *
@@ -40,7 +40,7 @@
# IN UINT16 Value
# );
#------------------------------------------------------------------------------
-_InternalMemScanMem16:
+ASM_PFX(InternalMemScanMem16):
push %edi
movl 12(%esp), %ecx
movl 8(%esp), %edi
diff --git a/MdePkg/Library/BaseMemoryLibSse2/Ia32/ScanMem32.S b/MdePkg/Library/BaseMemoryLibSse2/Ia32/ScanMem32.S
index e572b7fd99..dfc36fdb66 100644
--- a/MdePkg/Library/BaseMemoryLibSse2/Ia32/ScanMem32.S
+++ b/MdePkg/Library/BaseMemoryLibSse2/Ia32/ScanMem32.S
@@ -29,7 +29,7 @@
#
#------------------------------------------------------------------------------
-.globl _InternalMemScanMem32
+.globl ASM_PFX(InternalMemScanMem32)
#------------------------------------------------------------------------------
# CONST VOID *
@@ -40,7 +40,7 @@
# IN UINT32 Value
# );
#------------------------------------------------------------------------------
-_InternalMemScanMem32:
+ASM_PFX(InternalMemScanMem32):
push %edi
movl 12(%esp), %ecx
movl 8(%esp), %edi
diff --git a/MdePkg/Library/BaseMemoryLibSse2/Ia32/ScanMem64.S b/MdePkg/Library/BaseMemoryLibSse2/Ia32/ScanMem64.S
index cde4f3a734..3b67d4c056 100644
--- a/MdePkg/Library/BaseMemoryLibSse2/Ia32/ScanMem64.S
+++ b/MdePkg/Library/BaseMemoryLibSse2/Ia32/ScanMem64.S
@@ -29,7 +29,7 @@
#
#------------------------------------------------------------------------------
-.globl _InternalMemScanMem64
+.globl ASM_PFX(InternalMemScanMem64)
#------------------------------------------------------------------------------
# CONST VOID *
@@ -40,7 +40,7 @@
# IN UINT64 Value
# );
#------------------------------------------------------------------------------
-_InternalMemScanMem64:
+ASM_PFX(InternalMemScanMem64):
push %edi
movl 12(%esp), %ecx
movl 16(%esp), %eax
diff --git a/MdePkg/Library/BaseMemoryLibSse2/Ia32/ScanMem8.S b/MdePkg/Library/BaseMemoryLibSse2/Ia32/ScanMem8.S
index b0adcabf93..b3226052c8 100644
--- a/MdePkg/Library/BaseMemoryLibSse2/Ia32/ScanMem8.S
+++ b/MdePkg/Library/BaseMemoryLibSse2/Ia32/ScanMem8.S
@@ -29,7 +29,7 @@
#
#------------------------------------------------------------------------------
-.globl _InternalMemScanMem8
+.globl ASM_PFX(InternalMemScanMem8)
#------------------------------------------------------------------------------
# CONST VOID *
@@ -40,7 +40,7 @@
# IN UINT8 Value
# );
#------------------------------------------------------------------------------
-_InternalMemScanMem8:
+ASM_PFX(InternalMemScanMem8):
push %edi
movl 12(%esp), %ecx
movl 8(%esp), %edi
diff --git a/MdePkg/Library/BaseMemoryLibSse2/Ia32/SetMem.S b/MdePkg/Library/BaseMemoryLibSse2/Ia32/SetMem.S
index b1ea3b0044..850b6e8981 100644
--- a/MdePkg/Library/BaseMemoryLibSse2/Ia32/SetMem.S
+++ b/MdePkg/Library/BaseMemoryLibSse2/Ia32/SetMem.S
@@ -34,8 +34,8 @@
# IN UINT8 Value
# );
#------------------------------------------------------------------------------
-.globl _InternalMemSetMem
-_InternalMemSetMem:
+.globl ASM_PFX(InternalMemSetMem)
+ASM_PFX(InternalMemSetMem):
push %edi
movl 12(%esp), %edx # edx <- Count
movl 8(%esp), %edi # edi <- Buffer
diff --git a/MdePkg/Library/BaseMemoryLibSse2/Ia32/SetMem16.S b/MdePkg/Library/BaseMemoryLibSse2/Ia32/SetMem16.S
index 890a63998f..c6366d8d6b 100644
--- a/MdePkg/Library/BaseMemoryLibSse2/Ia32/SetMem16.S
+++ b/MdePkg/Library/BaseMemoryLibSse2/Ia32/SetMem16.S
@@ -21,7 +21,7 @@
#
#------------------------------------------------------------------------------
-.globl _InternalMemSetMem16
+.globl ASM_PFX(InternalMemSetMem16)
#------------------------------------------------------------------------------
# VOID *
@@ -32,7 +32,7 @@
# IN UINT16 Value
# )
#------------------------------------------------------------------------------
-_InternalMemSetMem16:
+ASM_PFX(InternalMemSetMem16):
push %edi
movl 12(%esp), %edx
movl 8(%esp), %edi
diff --git a/MdePkg/Library/BaseMemoryLibSse2/Ia32/SetMem32.S b/MdePkg/Library/BaseMemoryLibSse2/Ia32/SetMem32.S
index 922d8cebe2..dde62257e8 100644
--- a/MdePkg/Library/BaseMemoryLibSse2/Ia32/SetMem32.S
+++ b/MdePkg/Library/BaseMemoryLibSse2/Ia32/SetMem32.S
@@ -21,7 +21,7 @@
#
#------------------------------------------------------------------------------
-.globl _InternalMemSetMem32
+.globl ASM_PFX(InternalMemSetMem32)
#------------------------------------------------------------------------------
# VOID *
@@ -32,7 +32,7 @@
# IN UINT32 Value
# );
#------------------------------------------------------------------------------
-_InternalMemSetMem32:
+ASM_PFX(InternalMemSetMem32):
push %edi
movl 12(%esp), %edx
movl 8(%esp), %edi
diff --git a/MdePkg/Library/BaseMemoryLibSse2/Ia32/SetMem64.S b/MdePkg/Library/BaseMemoryLibSse2/Ia32/SetMem64.S
index ef9918f0f9..6d5ead5f3f 100644
--- a/MdePkg/Library/BaseMemoryLibSse2/Ia32/SetMem64.S
+++ b/MdePkg/Library/BaseMemoryLibSse2/Ia32/SetMem64.S
@@ -21,7 +21,7 @@
#
#------------------------------------------------------------------------------
-.globl _InternalMemSetMem64
+.globl ASM_PFX(InternalMemSetMem64)
#------------------------------------------------------------------------------
# VOID *
@@ -32,7 +32,7 @@
# IN UINT64 Value
# );
#------------------------------------------------------------------------------
-_InternalMemSetMem64:
+ASM_PFX(InternalMemSetMem64):
movl 4(%esp), %eax
movl 8(%esp), %ecx
testb $8, %al
diff --git a/MdePkg/Library/BaseMemoryLibSse2/Ia32/ZeroMem.S b/MdePkg/Library/BaseMemoryLibSse2/Ia32/ZeroMem.S
index bee3e5806e..6058a4c85a 100644
--- a/MdePkg/Library/BaseMemoryLibSse2/Ia32/ZeroMem.S
+++ b/MdePkg/Library/BaseMemoryLibSse2/Ia32/ZeroMem.S
@@ -21,7 +21,7 @@
#
#------------------------------------------------------------------------------
-.globl _InternalMemZeroMem
+.globl ASM_PFX(InternalMemZeroMem)
#------------------------------------------------------------------------------
# VOID *
@@ -31,7 +31,7 @@
# IN UINTN Count
# );
#------------------------------------------------------------------------------
-_InternalMemZeroMem:
+ASM_PFX(InternalMemZeroMem):
push %edi
movl 8(%esp), %edi
movl 12(%esp), %edx