This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

ARM Compilers: refer external symbols from elf

Note: This was originally posted on 18th April 2011 at http://forums.arm.com

HI guys,



is it possible to compile a source file where the external symbols should be referred in the elf (elf for whole build) by ARM compiler/Linker.

we use compilers :ADS120 ,RVCT3.1,RVCT4.1

Scenario :

Build consist of all the source, we make build by integrating  this source file/changes and we compile whole build. so if there is any compilation/link error with integrated source file/changes we will able to know after whole build is compiled .
i want to optimize this process,by compiling only changed files before integrating in the whole build ,where external symbols should be referred in elf (generated for whole build(previous  successful build)). Once it compiled successfully i can integrated in build and compile.so by this process i will be able to resolve the errors in very less time.

Thanks for reading the post.
Parents
  • Note: This was originally posted on 23rd April 2011 at http://forums.arm.com

    Thanks Iso..  and [color=#222222][font=Arial, Verdana, Tahoma, sans-serif][size=4]Marcus.. [/size][/font][/color]
    [color=#222222][font=Arial, Verdana, Tahoma, sans-serif][size=4]
    [/size][/font][/color]
    [color=#222222][font=Arial, Verdana, Tahoma, sans-serif][size=4]can i do in this way...[/size][/font][/color]
    [color=#222222][font=Arial, Verdana, Tahoma, sans-serif][size=4]
    [/size][/font][/color]
    [color=#222222][font=Arial, Verdana, Tahoma, sans-serif][size=4]i will list all the symbols in elf image (by using Readelf tools)and i will direct its out put to some symbol.txt.In the same way i will list all symbols present in obj file.now i will check this symbols [/size][/font][/color]
    [size=4]whether they are present in symbols.txt[/size]
    [size=4]
    [/size]
    [size=4]From above way  if i found all the symbols then i can assume that src file compiles fine when i integrate in the build or else it will fail with unresolved external symbol.[/size]
    [size=4]
    [/size]
    [size=4]Thanks for Reading my post..:)[/size]
Reply
  • Note: This was originally posted on 23rd April 2011 at http://forums.arm.com

    Thanks Iso..  and [color=#222222][font=Arial, Verdana, Tahoma, sans-serif][size=4]Marcus.. [/size][/font][/color]
    [color=#222222][font=Arial, Verdana, Tahoma, sans-serif][size=4]
    [/size][/font][/color]
    [color=#222222][font=Arial, Verdana, Tahoma, sans-serif][size=4]can i do in this way...[/size][/font][/color]
    [color=#222222][font=Arial, Verdana, Tahoma, sans-serif][size=4]
    [/size][/font][/color]
    [color=#222222][font=Arial, Verdana, Tahoma, sans-serif][size=4]i will list all the symbols in elf image (by using Readelf tools)and i will direct its out put to some symbol.txt.In the same way i will list all symbols present in obj file.now i will check this symbols [/size][/font][/color]
    [size=4]whether they are present in symbols.txt[/size]
    [size=4]
    [/size]
    [size=4]From above way  if i found all the symbols then i can assume that src file compiles fine when i integrate in the build or else it will fail with unresolved external symbol.[/size]
    [size=4]
    [/size]
    [size=4]Thanks for Reading my post..:)[/size]
Children
No data