bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug ld/4515] bad definition of start address in ldscripts for OMAGIC


From: Quentin dot Godfroy at ens dot fr
Subject: [Bug ld/4515] bad definition of start address in ldscripts for OMAGIC
Date: 7 Aug 2007 18:35:38 -0000

------- Additional Comments From Quentin dot Godfroy at ens dot fr  2007-08-07 
18:35 -------
In binutils 2.17 sources,
What I see in emulparams/i386linux.sh is :

>OUTPUT_FORMAT="a.out-i386-linux"
>TARGET_PAGE_SIZE=0x1000
>TEXT_START_ADDR=0x1020
>NONPAGED_TEXT_START_ADDR=0
>...

and in genscripts.sh

>...
>LD_FLAG=N
>DATA_ALIGNMENT=${DATA_ALIGNMENT_N}
>( echo "/* Script for -N: mix text and data on same page; don't align data */"
>  . ${CUSTOMIZER_SCRIPT} ${EMULATION_NAME}
>  . ${srcdir}/scripttempl/${SCRIPT_NAME}.sc
>) | sed -e '/^ *$/d;s/[         ]*$//' > ldscripts/${EMULATION_NAME}.xbn
>...

In the building process the section SECTION is going to start at 0x1020 for the
-N flag. (I see no mention of  NONPAGED_TEXT_START_ADDR in scripttempl/aout.sc)

I checked, on a up to date Debian, the output from ld -N -mi386linux --verbose
gives out a

>SECTIONS
>{
>  . = 0x1020;
>...

-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=4515

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]