This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: .eh_frame section


> Fine. So we can replace absolute labels by label differences. I propose
> the following: When the compiler output contains either a .gcc_except or
> a .eh_table section, the beginning of the text section for this module
> is marked as __TEXT_BEGIN__ and subtracted from all labels in the tables.
> A new section .text_begin is created which only contains the absolute
> __TEXT_BEGIN__.

This doesn't sound like it'll work with linker relaxation, unless you
want to add a lot of extra code to the linker to decode this information,
translate it into proper relocations, and re-encode it after its
processing is done.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]