
Dear John,
in message 6a7ac2300511150252w60601196qea018696ae5d1813@mail.gmail.com you wrote:
I am getting closer to getting the examples code to build. I have added a bunch of object files and library files to the link command in the examples Makefile. However,
I really, really don't understand what you are actually doing. If you put your code in the examples directory, then just adding the binary name to the "BIN" definition in the "examples/Makefile" is *all* you have to do to get it build correctly.
If you prefer to keep the code in your own board directory (which is a much better approach, especially if you intend to submit it as a patch) then just have a look at the trab_fkt* targets in the "board/trab/Makefile".
Nothing more needs to be done. Really.
If this does not work for you, then your toolchain is broken and should be replaced.
I have gotten to the last bug and I don't know how to solve it. Below, it
"the last bug" ??? Famous last words.
complains about __got2_entries. I found this defined in our board
....
ppc-linux-ld: BFD 2.15.90.0.1.1 20040303 (SuSE Linux) assertion fail ../../bfd/elf32-ppc.c:5645 make[1]: *** [hello_world] Segmentation fault
Your tool crashes with a segmentation fault. That's a tolchain problem. Get yourself working tools and forget about all this trouble.
Best regards,
Wolfgang Denk