This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.
See the CrossGCC FAQ for lots more information.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
Hello, You may use a command script for linking (ld -T <script_file>) with something similar to: SECTIONS { .text1: { file1 (.text) file2 (.text) } .text2 { file3 (.text) file4 (.text) } } In this example you are going to put in the section .text1 the sections .text of object files file1 and file2, and in the section .text2, the sections .text of file3 and file4 (In sections .text, gcc put code and constants, in .data initialized data, in .bss uninitialized data, ...). In http://www.gnu.org/manual/ld-2.9.1/ld.html you can see the document "Using LD - the GNU Linker", where you will find much more valuable information. -----Mensaje original----- De: Jay Monkman [mailto:jtm@smoothsmoothie.com] Enviado el: jueves, 25 de julio de 2002 4:22 Para: crossgcc@sources.redhat.com Asunto: Output sections I want to change the section all the functions in a file are put into. For example, instead of putting them in 'text', I want them all in 'cpu1_text'. I know I can use the __attribute__ modifier, but I'm hoping there's a way to do it on and entire file at once. The reason is I have a CPU with multiple cores, and some files have functions that need to be in a core's local memory rather than the shared text section. Thanks for the help. -- Jay Monkman The truth knocks on the door and you say "Go away, I'm looking for the truth," and so it goes away. Puzzling. - from _Zen_and_the_Art_of_Motorcycle_Maintenance_ ------ Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/ Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com ------ Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/ Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |