#1254 Linker fails to create OMF file

closed-fixed
linker (61)
5
2013-05-25
2006-12-05
Anonymous
No

Using the files in the attached Zip file, Blinky.c and T3isr.c were compiled without any problems. However, linking the program only worked if T3isr.c was listed first on the command line.

The command line:

"C:\Program Files\SDCC\BIN\SDCC.EXE" --debug --use-stdout -V -oBlinky_Files\Blinky.hex .\Blinky_Files\T3isr.rel .\Blinky_Files\blinky.rel

correctly creates both Blinky and Blinky.lnk.

However, the command line

"C:\Program Files\SDCC\BIN\SDCC.EXE" --debug --use-stdout -V -oBlinky_Files\Blinky.hex .\Blinky_Files\blinky.rel .\Blinky_Files\T3isr.rel

does not create the file "Blinky".

SDCC version information:
SDCC : mcs51/gbz80/z80/avr/ds390/pic16/pic14/TININative/xa51/ds400/hc08 2.6.0 #4
309 (Jul 28 2006) (MINGW32)

Mitchell Jerome
Senior Software Engineer
Silicon Laboratories, Inc.
mitch.jerome@silabs.com

Discussion

  • Nobody/Anonymous

    Source files

     
  • Maarten Brock

    Maarten Brock - 2006-12-05

    Logged In: YES
    user_id=888171
    Originator: NO

    Confirmed.

    It has something to do with -oBlinky.hex. If I leave that out it works ok and generates blinky.ihx and all the rest.

    If you use any name with a different base from the first .rel file it works too. e.g.
    sdcc.exe -oApplication.hex blinky.rel T3isr.rel

     
  • Maarten Brock

    Maarten Brock - 2006-12-06
    • milestone: --> fixed
    • assigned_to: nobody --> maartenbrock
    • status: open --> closed-fixed
     
  • Maarten Brock

    Maarten Brock - 2006-12-06

    Logged In: YES
    user_id=888171
    Originator: NO

    It had to do with the almost identical filename base. They differ only in capitals: Blinky(.hex) vs. blinky(.rel) and they were compared without ignoring case. On Windows case must be ignored, on *nux it cannot.

    Fixed in SDCC 2.6.2 #4502

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks