<snip> > > all: $(obj).depend $(OBJS) $(LIB) $(SREC) $(BIN) $(ELF) > > @@ -88,7 +89,7 @@ $(LIB): $(obj).depend $(LIBOBJS) > > > > $(ELF): > > $(obj)%: $(obj)%.o $(LIB) > > - $(LD) -g -Ttext $(STANDALONE_LOAD_ADDR) \ > > + $(LD) -g -Ttext $(STANDALONE_LOAD_ADDR) -sort-common \ > > -o $@ -e $(SYM_PREFIX)$(notdir $(<:.o=)) $< $(LIB) \ > > -L$(gcclibdir) -lgcc > > I'm not sure if this is needed.
Agreed, in fact, I'm not sure why I even put that in there in the first place after re-reading ld's man page:) > > Could you try the above change with your flash_wp test case? Or make > > the flash_wp app public? It should put the first function at the base > > of the image in theory. > > I think the "timer" code is sufficient to show the problem, and that > your fix helps. If Timur confirms it's working for his secret code > too we should apply this. Do you want this rolled into the first patch, or sent as a follow-up? Best, Peter _______________________________________________ U-Boot mailing list [email protected] http://lists.denx.de/mailman/listinfo/u-boot

