Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
304 views
in Technique[技术] by (71.8m points)

gcc - what is '=0' after a section in linker script?

I think I knew this but forgot.
What is the '=0' sign after the section represent in linker script?

  .text :
  {
    *bootcode.o(boot)
    *vectors.o(vectors)
    *(.text) /* remainder of code */
  } =0
question from:https://stackoverflow.com/questions/65838567/what-is-0-after-a-section-in-linker-script

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Including =fill in a section definition specifies the initial fill value for that section. (=0 in your example). manual


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...