This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc 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]

[Bug libc/18421] read-only segment has dynamic relocations


https://sourceware.org/bugzilla/show_bug.cgi?id=18421

--- Comment #8 from Helge Deller <deller at gmx dot de> ---
(In reply to Alan Modra from comment #6)
> Created attachment 8319 [details]
> glibc fix

Thanks!
That seems to fix it.
I applied your patch, and readelf now shows:

Relocation section '.rela.text' at offset 0x7ec contains 9 entries:
 Offset     Info    Type            Sym.Value  Sym. Name + Addend
00000018  00001122 R_PARISC_DLTIND21 00000000   .Lpmain + 0
0000001c  00001126 R_PARISC_DLTIND14 00000000   .Lpmain + 0
00000024  00001222 R_PARISC_DLTIND21 0000000c   .Lp__libc_csu_init + 0
00000028  00001226 R_PARISC_DLTIND14 0000000c   .Lp__libc_csu_init + 0
00000030  00001322 R_PARISC_DLTIND21 00000008   .Lp__libc_csu_fini + 0
00000034  00001326 R_PARISC_DLTIND14 00000008   .Lp__libc_csu_fini + 0
00000044  00001422 R_PARISC_DLTIND21 00000010   .Lp__global + 0
00000048  00001426 R_PARISC_DLTIND14 00000010   .Lp__global + 0
0000004c  00001d0c R_PARISC_PCREL17F 00000000   __libc_start_main + 0

Relocation section '.rela.data.rel.ro' at offset 0x858 contains 5 entries:
 Offset     Info    Type            Sym.Value  Sym. Name + Addend
00000000  00001a41 R_PARISC_PLABEL32 00000000   main + 0
00000004  00001d41 R_PARISC_PLABEL32 00000000   __libc_start_main + 0
00000008  00001641 R_PARISC_PLABEL32 00000000   __libc_csu_fini + 0
0000000c  00001941 R_PARISC_PLABEL32 00000000   __libc_csu_init + 0
00000010  00001801 R_PARISC_DIR32    00000000   $global$ + 0

linking and running the test program works too.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


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