This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
this is a pretty basic question i imagine, but i cant seem to find the answer in the binutils ld docs: http://sourceware.org/binutils/docs-2.17/ld/index.html i'd like to use a linker script to create a symbol and set the size of it ... so the pseudo linker script being like: .text : { ... my_label = .; custom.o (.text) my_label.size = . - my_label; ... } currently i'm doing: my_label_start = .; custom.o (.text) my_label_end = .; and then looking up both symbols and doing a diff on their addresses to find the size of the section in between -mike
Attachment:
pgp00000.pgp
Description: PGP signature
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |