- 论坛徽章:
- 0
|
arm-linux/bin/ld: cannot find -lgcc_s
collect2: ld returned 1 exit status
有使用过这个参数的吗?
Makefile中注释说这个是用来连接新lib的
- # Linker flags.
- # -Wl,...: tell GCC to pass this to linker.
- # -Map: create map file
- # --cref: add cross reference to map file
- # -lc : tells the linker to tie in newlib
- # -lgcc : tells the linker to tie in newlib
- LDFLAGS+=-nostartfiles -Wl,-Map=$(BOOT_NAME).map,--cref
- LDFLAGS+=-lc -lgcc
- LDFLAGS+=-T $(BOOTSTRAP_PATH)/elf32-littlearm.lds -Ttext $(LINK_ADDR)
- OBJS=crt0_gnu.o
复制代码
我把那个lgcc注释掉这个错误还是会出现,请指教 |
|