Hartmut Birr wrote:
Hi,
for a sample program, I have to specify a linker script file. I'm
using the following xml-file:
<module name="lowalign" type="win32cui"
installbase="bin"
installname="lowalign.exe">
<include base="lowalign">.</include>
<define name="__USE_W32API" />
<file>lowalign.c</file>
<linkerflag>-Wl,-T,modules/myapps/lowalign/ldscript</linkerflag>
<linkerflag>-Wl,--file-alignment=0x80</linkerflag>
<linkerflag>-Wl,--section-alignment=0x80</linkerflag>
</module>
I would like it if I can remove the absolute path from the linker
script file. Any ideas?
It's a bit off-topic, but why do you need a linker script for making low
alignment executables? I fixed the default binutils script quite some
time ago to work with alignment < PAGE_SIZE.
- Filip
I've used your lowalign example. Without the linker script, the image isn't
executable on WinXP. I'm using gcc 3.4.2 and
binutils 2.16.91.
- Hartmut