<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
I think I have found the problem.  It is related to the patch Ed sent. 
<br>
<br>
The new LD looks like it automagically turns on the --build-id option. 
I have not found out how turn it off.  <br>
<br>
When this option is used it generates the   .note.gnu.build-id
section.  When this section was discarded in the first ld pass
(linuxbios_rom.ram creation) it was causing the segmentation fault
crash.  <br>
<br>
It looks like this same option is being called again when crt0.o is
linked to create linuxbios.  I have added the .note.gnu.build-id
section to the .id section in the ldscript.ld file.  <br>
<br>
SECTIONS {<br>
        . = (_ROMBASE + ROM_IMAGE_SIZE - 0x10) - (__id_end -
__id_start);<br>
        .id (.) : {<br>
                *(.id)<br>
                *(.note.gnu.build-id)<br>
        }<br>
<br>
<br>
This has gotten me past the second crash but now linuxbios.strip is
crashing.<br>
<br>
nm -n linuxbios | sort > linuxbios.map<br>
objcopy --gap-fill 0xff -O binary linuxbios linuxbios.strip<br>
objcopy: linuxbios.strip: Bad value<br>
objcopy: linuxbios.strip: Bad value<br>
make[1]: *** [linuxbios.strip] Error 1<br>
<br>
So this does not look like a ld problem, but an added feature to ld is
causing us grief.  If anyone can figure out how to turn this option
off,  that may fix all of this without any patches... :-) <br>
<br>
<br>
<br>
<pre class="moz-signature" cols="72">/*********************
Marc Karasek
MTS
Sun Microsystems
<a class="moz-txt-link-freetext" href="mailto:marc.karasek@sun.com">mailto:marc.karasek@sun.com</a>
ph:770.360.6415
*********************/
</pre>
<br>
<br>
Carl-Daniel Hailfinger wrote:
<blockquote cite="mid:47545F8F.5090003@gmx.net" type="cite">
  <pre wrap="">On 03.12.2007 19:15, Marc Karasek wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">Unfortunately, it is still broken under Fedora 8.

V3 works, it is just V2 that is having these linking problems. This
patch makes things better, and it at least gives us a more descriptive
error than just a segmentation fault.

This at least gives me a good starting point to debug from .. I think
as soon as we get a stable version that should be the patch..
    </pre>
  </blockquote>
  <pre wrap=""><!---->
Please file a bug with the binutils guys. If they don't know ld is
broken, they can't fix it.


Regards,
Carl-Daniel
  </pre>
</blockquote>
</body>
</html>