2009-10-28 Kai Tietz <kai.tietz@onevision.com>
authorKai Tietz <kai.tietz@onevision.com>
Wed, 28 Oct 2009 17:34:14 +0000 (17:34 +0000)
committerKai Tietz <kai.tietz@onevision.com>
Wed, 28 Oct 2009 17:34:14 +0000 (17:34 +0000)
        * emultempl/pep.em (U): Define underscore macro.
        (init): Use for __ImageBase U macro.

ld/ChangeLog
ld/emultempl/pep.em

index 250ec27aaa71c56f23053582c18efcb9e6673ed2..f4337ccb3616028c566d6b727721c07032fb4b1e 100644 (file)
@@ -1,3 +1,8 @@
+2009-10-28  Kai Tietz  <kai.tietz@onevision.com>
+
+       * emultempl/pep.em (U): Define underscore macro.
+       (init): Use for __ImageBase U macro.
+
 2009-10-23  Kai Tietz  <kai.tietz@onevision.com>
 
        * deffile.h (def_file_export): New member its_name.
index ff0c589dce49381a9ce8705d1f80312c505652e2..656ff4820510765109fbf5945666128174c52247 100644 (file)
@@ -98,6 +98,7 @@ fragment <<EOF
 #define PE_DEF_SECTION_ALIGNMENT       0x00000400
 #endif
 
+#define U(S) ${INITIAL_SYMBOL_CHAR} S
 
 static struct internal_extra_pe_aouthdr pep;
 static int dll;
@@ -293,7 +294,7 @@ static definfo init[] =
 #define DLLOFF 1
   {&dll, sizeof(dll), 0, "__dll__", 0},
 #define MSIMAGEBASEOFF 2
-  D(ImageBase,"___ImageBase", NT_EXE_IMAGE_BASE),
+  D(ImageBase, U("__ImageBase"), NT_EXE_IMAGE_BASE),
   D(SectionAlignment,"__section_alignment__", PE_DEF_SECTION_ALIGNMENT),
   D(FileAlignment,"__file_alignment__", PE_DEF_FILE_ALIGNMENT),
   D(MajorOperatingSystemVersion,"__major_os_version__", 4),