Forum: ARM programming with GCC/GNU tools OBJCOPY warning?

Author: Dustin Sr (dbrazeau)
Posted on:

Rate this post
0 useful
not useful
I'm getting a warning from objcopy and was just wondering what it means,
and if it could cause problems.

This is the warning that I get several time :
BFD: Temp.elf: warning: Empty loadable segment detected, is this
intentional ?

Here is the section of my link file that uses it :
        @cp Final.elf Temp.elf
  @$(OBJCOPY) -g      Temp.elf
  @$(OBJCOPY) -R  STACKS    Temp.elf
  @$(OBJCOPY) -R  DATA_CACHE_A  Temp.elf
  @$(OBJCOPY) -R  DATA_CACHE_B  Temp.elf
  @$(OBJCOPY) -R  VARS_LOW  Temp.elf
  @$(OBJCOPY) -R  VARS_HI    Temp.elf
  @$(OBJCOPY) -R  END_OF_MEMORY  Temp.elf
  @$(OBJCOPY) -R  MVL0IF0    Temp.elf
  @$(OBJCOPY) -R  MVL0IF1    Temp.elf
  @$(OBJCOPY) -R  MVL0SATA0  Temp.elf
  @$(OBJCOPY) -R  MVL0SATA1  Temp.elf
  @$(OBJCOPY) -R  MVL0EXPROM  Temp.elf
  @$(OBJCOPY) -R  MVL1IF0    Temp.elf
  @$(OBJCOPY) -R  MVL1IF1    Temp.elf
  @$(OBJCOPY) -R  MVL1SATA0  Temp.elf
  @$(OBJCOPY) -R  MVL1SATA1  Temp.elf
  @$(OBJCOPY) -R  MVL1EXPROM  Temp.elf
  @$(OBJCOPY) -R  QLogic0_Mem  Temp.elf
  @$(OBJCOPY) -R  QLogic0_Rom  Temp.elf
  @$(OBJCOPY) -R  QLogic0_IO  Temp.elf
  @$(OBJCOPY) -R  QLogic1_Mem  Temp.elf
  @$(OBJCOPY) -R  QLogic1_Rom  Temp.elf
  @$(OBJCOPY) -R  QLogic1_IO  Temp.elf
  @$(OBJCOPY) -R  UART0    Temp.elf
  @$(OBJCOPY) -R  UART1    Temp.elf
  @$(OBJCOPY) -R  INTERRUPTS  Temp.elf
  @$(OBJCOPY) -R  FRAM_AREA  Temp.elf
  @$(OBJCOPY) -R  XSCALE    Temp.elf
  @$(OBJCOPY) -R .comment    Temp.elf
  @$(OBJDUMP) -h      Temp.elf
  @$(OBJCOPY) -O srec    Temp.elf Final.srec
  @$(OBJCOPY) -O binary    Temp.elf Final.bin
  @$(OBJCOPY) -O ihex     Temp.elf Final.hex



Entering an e-mail address is optional. If you want to receive reply notifications by e-mail, please log in.

Rules — please read before posting

  • Post long source code as attachment, not in the text
  • Posting advertisements is forbidden.

Formatting options

  • [c]C code[/c]
  • [avrasm]AVR assembler code[/avrasm]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]

Bild automatisch verkleinern, falls nötig
Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.