Purpose of unique linker sections

Comments

2 comments

  • Avatar
    Joe

    Copy and paste did not work above properly ...

     

    The second example should be:

     

    .section .text.libctl, "ax", %progbits

    0
    Comment actions Permalink
  • Avatar
    Michael Johnson

    To enable "Unused Symbol Removal" the binutils linker requires each symbol to be in it's own section to be able to remove it if it isn't referenced.

    0
    Comment actions Permalink

Please sign in to leave a comment.