2 Replies Latest reply on Jun 22, 2018 3:48 AM by 769482734_1650581

    GCC .LD file

    769482734_1650581

      Hi All:

           About the Linker Script File for gcc,I have some question to ask:

      1:

         what  the "NOLOAD" and the "alignment"  is used for and how can I set the size of the custom section?

      2: If the a variable of type const must be place in the section of " .rodata" or not? Can I place a variable of type const  in the section of the custom by myself?

        • 1. Re: GCC .LD file
          rzzh

          Which device are you using, PSoC4 or PSoC6?

          The `(NOLOAD)' directive will mark a section to not be loaded at run time. the section will begin at the specified alignment. For example, if alignment is 4, it means the address of the section will be aligned with 4 byte.

          Yes. You can place a constant in the section of the custom by yourself.

           

          Thanks,

          Ryan

          • 2. Re: GCC .LD file
            769482734_1650581

            Hi:

              Thanks.It is PSOC4.

              I still have doubts when should I use a output section type of NOLOAD when I custom a section?