07-24-2023, 03:09 AM
`.plt` : in RE able segment, have trampoline functioning at `plt[n]` except 0, have .got.plt resolver link at `plt[0]`
`.got` `.got.plt` : in RW able segment, just address
Which I learned from this post:
Problem
=============
Actual Linux shell command gave me a different answer
$readelf -l /bin/bash
[![read elf -l result][1]][1]
got.plt is gone and what is .plt.got in 02 segment?
-------------------------------------------------
I dumped two section(plt, plt.got) and got this assembly
.plt is plt as i learned:
![.plt is plt as i learned][2]
.plt.got , what is this for?
![.plt.got , what is this for][3]
sorry for poor dumping, it was done by
```
objcopy -O binary --only-section=.plt.got /bin/bash ./pltgot
objcopy -O binary --only-section=.plt /bin/bash ./plt
```
Questions
===================
1. what is difference between .plt and .plt.got
2. why this difference happened?
[1]:
[2]:
[3]:
`.got` `.got.plt` : in RW able segment, just address
Which I learned from this post:
[To see links please register here]
Problem
=============
Actual Linux shell command gave me a different answer
$readelf -l /bin/bash
[![read elf -l result][1]][1]
got.plt is gone and what is .plt.got in 02 segment?
-------------------------------------------------
I dumped two section(plt, plt.got) and got this assembly
.plt is plt as i learned:
![.plt is plt as i learned][2]
.plt.got , what is this for?
![.plt.got , what is this for][3]
sorry for poor dumping, it was done by
```
objcopy -O binary --only-section=.plt.got /bin/bash ./pltgot
objcopy -O binary --only-section=.plt /bin/bash ./plt
```
Questions
===================
1. what is difference between .plt and .plt.got
2. why this difference happened?
[1]:
[2]:
[3]: