delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2016/01/17/19:28:46

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
X-Recipient: djgpp AT delorie DOT com
From: "=?ISO-8859-1?Q?Dani=EBl_H=F6rchner?= (dbjh AT gmx DOT net) [via djgpp AT delorie DOT com]" <djgpp AT delorie DOT com>
To: djgpp AT delorie DOT com
Subject: Bug report: Syntax error in (built in) linker scripts (I386GO32.XR & I386GO32.XU) / ld -r & ld -Ur broken.
Date: Mon, 18 Jan 2016 01:28:29 +0100
Message-ID: <1527111.aNZlWeGFGu@localhost.localdomain>
User-Agent: KMail/4.14.7 (Linux/3.13.10-200.fc20.x86_64; KDE/4.14.7; x86_64; ; )
MIME-Version: 1.0
X-Provags-ID: V03:K0:l5dnhaqDswiQAcvpgUAKH0B7fMheo3m1S22fimaTjYtwzvXFIqZ
R/AYaDNg0Co7n/6EUSiCYfFzWZpjBNuNjbBkR6YE5LbK/K7NX1roOeMTXP12djPmG9OaSUd
MKcEHkb9h3YJ4I77ZhbfOSGo9iUDr+ECnbFsOPMBLHWXOZZ98htcxszu49A7XZRy/b4JQLS
JHh+DDMOu2VIbdvbL4YMw==
X-UI-Out-Filterresults: notjunk:1;V01:K0:K7gE6qmLdgU=:WAg/5HPBjQwxvuAB8kHOxR
U+xVxkP9KNU6dPuPQtlm7lPC2hSujY1MHSCn7qMW7cfjL8auTg+X2pgqWP7u/hzEjZ4cAIZJr
HfRFaR/mZz904aze9jln/URBDjhcs+gG3bNLv4qbtQSfWrNJI9FnZFC4WpponXu5t7Bm7jNPp
G560mCPP8qhOJ2oIaBcUA2NRfAmaH+nOFthpKgDgR3SmmXbOhX0NUz13gfqJcwKaw+sazMBJi
zL2f7OURKRU0DtLt8UK989JzdgKufvObg+pQMlWoq9JmHI+vRZsod5XlH+Dznz3+86EjJzS47
A2bbMytCptqTmCBahCY+8okHZNBArhbip3WXfWIBxZJvJCnp73DcGmPkyAlnPFmx8AnT48UUV
J9D5v/Z/vPVkYvzSCGPDXmXJUeqphJLrsCaxjStWxzdefWLzISqh/EesZxW+MqaQ+CGrrvqxn
KojT1aBmEPUx3uWtiDLPuX+1Wnz0Ubuh6wmGV8Pj3esg8Mh7YuVEio1M6h77fx5CE5H0fA3IZ
OAZ8Cahh4xFTSgFeNnctOZ/MWS0eSZgkQ6ZjQvE/RXrNifyZ2WnZcnHBD+5l+d/KuKWKK9as1
kMyt3ZCDLVftVbRN+2iVtREqpVUhq4PQFMQkmKTWKs/UN2VC4sZ/5IJ2Cab7Pgyqu8K2HvCN0
k0tFfdqNpJNBRZzihjGopakO5cF7i+VHL4gVGLUqElHpZ11YqcBNLLiTQAJBKubQmhJi7vMA1
8IMwFnKuEIp3v1pXPfE0vYNpLeRus4bQpoRczetyzZkwjfw9f2JYFUm+sMaUSUh5qKWvbi/2+
Jt3Dr65
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id u0I0SZPn001088
Reply-To: djgpp AT delorie DOT com

Hi,

Since the bug report page is not working I chose this communication channel.

The version of DJDEV I used is 2.05. The bug is present in GNU Binutils 2.25.1 
(for DJGPP V2), 2.25, 2.24 r2, 2.24, 2.23, 2.22 r4, 2.22 r3, 2.22 r2, 2.22 and 
probably all versions after 2.19. I report it here, because the linker scripts 
are part of DJGPP, not GNU Binutils.

ld -r is broken, because the associated built in linker script, I386GO32.XR, 
contains a syntax error. ld -Ur is broken too, because I386GO32.XU contains 
the same syntax error.

The command ld -r gives the following output:
>ld -r
ld:built in linker script:21: syntax error

When specifying the associated linker script I got:
>ld -r -T C:\DJGPP\LIB\LDSCRIPT\I386GO32.XR
ld:I386GO32.XR:21: syntax error

The relevant part of the linker script C:\DJGPP\LIB\LDSCRIPT\I386GO32.XR:
19:    /* Ugly workaround to prevent entire .bss to have attribute CONTENT */
20:    /* for C++ executables. */
21:    *()

However, when I look at the relevant part of the working linker script C:
\DJGPP\LIB\LDSCRIPT\I386GO32.X (with the exact same comment) I see:
38:    *( .bss.*)

After changing C:\DJGPP\LIB\LDSCRIPT\I386GO32.XR to:
21:    *(.bss.*)

I can work around the issue by specifying the linker script on the command 
line:
>ld -r -T C:\DJGPP\LIB\LDSCRIPT\I386GO32.XR
ld: no input files

It would be nice if this bug could be solved after almost 4 years.

Kind regards,
Daniël


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019