Menu

#1901 Linker hangs when encountering foreign object file.

closed-fixed
Ben Shi
linker (61)
sdld
4
2015-05-17
2011-12-28
No

When attempting to link an object file produced by gcc, the linker hangs. This is annoying since no useful diagnostic is offered, i.e. when linking *.rel it is not obvious to the user that the problem is a foreign object file being present. AFAIR the linker that came with older sdcc versions just ignored the foreign file. I see this problem on sdcc 3.1.1 #7137 on Debian GNU/Linux unstable for x86-64.

To reproduce:
sdcc -mz80 huffman_encoder_tree.rel
will result in a hang without any output.

For the other ports the behaviour is either the same, or a hang with some output, such as "ASlink-Warning-No definition of area HOME".

Philipp

Discussion

  • Philipp Klaus Krause

    object file produced by gcc

     
  • Ben Shi

    Ben Shi - 2015-03-25
    • Category: --> sdld
     
  • Ben Shi

    Ben Shi - 2015-05-17

    Fixed in reversion #9235. Now sdld will return a fatal error with an illegal object file.

     
  • Ben Shi

    Ben Shi - 2015-05-17
    • status: open --> closed-fixed
    • assigned_to: Ben Shi
     

Log in to post a comment.