Re: ELF Sections in GCC

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Rudy,

It's interesting to note that the same assembly is generated in either default ".text" or in my "bar" section include the .p2align commands -- only the .text or .section are different.

That tells me that it's the assembler that takes the assembly and outputs the object file which is putting in the NOPs, or the troublesome 0x00 for padding.

I don't know if that's of any help for your issue.

The GCC documentation indicates that another possibility is to use the linker to map the entire contents of a module (.o) to a particular section, but doesn't give an example, <http://gcc.gnu.org/onlinedocs/gcc-3.3.1/gcc/Function-Attributes.html#Function%20Attributes>.

HTH,
--Eljay



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux