In article <[EMAIL PROTECTED]>,
Andre Albsmeier  <[EMAIL PROTECTED]> wrote:
> 
> The map here looks slightly different:
> 
> 0x8048000 0x804d000 5 0 0xd6927ea0 r-x 1 0 0x0 COW NC vnode
> 0x804d000 0x804f000 2 0 0xd6894d20 rw- 2 0 0x2180 NCOW NNC default
> 0x804f000 0x8066000 16 0 0xd6894d20 rwx 2 0 0x2180 NCOW NNC default  <--- additional
> 
> 0x1804d000 0x1805e000 17 0 0xd73f4d80 r-x 10 5 0x0 COW NC vnode
> 0x1805e000 0x1805f000 1 0 0xd7246ba0 rw- 1 0 0x2180 COW NNC vnode
> 0x1805f000 0x18061000 2 0 0xd72ec540 rw- 2 0 0x2180 NCOW NNC default
> 0x18061000 0x18069000 5 0 0xd72ec540 rwx 2 0 0x2180 NCOW NNC default
> 
> 0x18069000 0x180e6000 103 0 0xc0280300 r-x 104 45 0x0 COW NC vnode
> 0x180e6000 0x180eb000 5 0 0xd71fba20 rwx 1 0 0x2180 COW NNC vnode
> 0x180eb000 0x180ff000 7 0 0xd7b96c60 rwx 1 0 0x2180 NCOW NNC default
> 
> 0xbfbe0000 0xbfc00000 4 0 0xd79b18a0 rwx 1 0 0x2180 NCOW NNC default

That's OK.

> So im my case it is:
> 
> ||||||||||
> VVVVVVVVVV
> 0x1804d000 0x1805e000 17 0 0xd73f4d80 r-x 10 5 0x0 COW NC vnode
> 0x1805e000 0x1805f000 1 0 0xd7246ba0 rw- 1 0 0x2180 COW NNC vnode
> 0x1805f000 0x18061000 2 0 0xd72ec540 rw- 2 0 0x2180 NCOW NNC default
> 0x18061000 0x18069000 5 0 0xd72ec540 rwx 2 0 0x2180 NCOW NNC default
>            ^^^^^^^^^^
>            ||||||||||

Right.

> Done, I have now:
> 
>        static char *rtld_base = (char *)0x1804d000;     /* Patch me */
>        static char *rtld_limit = (char *)0x18069000;    /* Patch me too */

Right.

> I have a corefile but can't debug it:
> 
> Core was generated by `yppush'.
> Program terminated with signal 11, Segmentation fault.
> Cannot access memory at address 0x180600a8.
> #0  0x1804f358 in ?? ()Cannot access memory at address 0x180600a8.
> 
> Anything I did wrong?

No, I forgot a step. :-) When you run yppush, set LD_BIND_NOW=1 in the
environment.  (And I _hope_ that won't make it stop failing.)

John
-- 
  John Polstra                                               [EMAIL PROTECTED]
  John D. Polstra & Co., Inc.                        Seattle, Washington USA
  "Disappointment is a good sign of basic intelligence."  -- Ch�gyam Trungpa


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-stable" in the body of the message

Reply via email to