This is the mail archive of the binutils@sources.redhat.com 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]

Re: [davidm@napali.hpl.hp.com: Re: [PATCH] i386 vsyscall DSOimplementation]


The patch looks OK to me. Normally this works because unwind info and text end up in the same segment. If they end up in different segments, then it matters whether we use the segment containing the reloc, or the segment containing the symbol. This stuff was written by me, and I didn't really know what I was doing at the time.

There does seem to be a technicality here though. The IPF psabi says that the reloc is valid only if the symbol and reloc end up in the same segment, but they are in different segments here, so technically this is invalid. However, there is no problem making this work because the two segments have fixed load addresses, so the offsets between the two segments will never change. If one of the segments could be loaded at a different address, then the offset would change, and the unwind info would be incorrect.

Jim


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