diff options
author | Kai Tietz <kai.tietz@onevision.com> | 2009-10-28 17:34:14 +0000 |
---|---|---|
committer | Kai Tietz <kai.tietz@onevision.com> | 2009-10-28 17:34:14 +0000 |
commit | 7aee19a1c49ad1ec97080e6f34715b625b6a43c1 (patch) | |
tree | 5553f3a5ee2d23eec0e2168cf8085224aefae33f /ld | |
parent | 36d21de541788f5ceae44d8250e33af906af6b14 (diff) | |
download | gdb-7aee19a1c49ad1ec97080e6f34715b625b6a43c1.zip gdb-7aee19a1c49ad1ec97080e6f34715b625b6a43c1.tar.gz gdb-7aee19a1c49ad1ec97080e6f34715b625b6a43c1.tar.bz2 |
2009-10-28 Kai Tietz <kai.tietz@onevision.com>
* emultempl/pep.em (U): Define underscore macro.
(init): Use for __ImageBase U macro.
Diffstat (limited to 'ld')
-rw-r--r-- | ld/ChangeLog | 5 | ||||
-rw-r--r-- | ld/emultempl/pep.em | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog index 250ec27..f4337cc 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -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. diff --git a/ld/emultempl/pep.em b/ld/emultempl/pep.em index ff0c589..656ff48 100644 --- a/ld/emultempl/pep.em +++ b/ld/emultempl/pep.em @@ -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), |