This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
Tzu-Chien Chiu wrote: > I got a warning from ld: "gc-sections option ignored." > > The compilation command: > [quote] > or32-elf-gcc -o a.o -c -ffunction-sections -fdata-sections a.c > [/quote] > > The link command is: > [quote] > or32-elf-gcc -o program a.o b.o c.o -lfoo -Wl,-gc-sections, -Wl,-static > [/quote] You missed the second dash in front of --gc-sections. Thiemo
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |