status of reader hooks testing
by Petr Machata
I've launched debug_info test at the end of the last week. I modified
dwarflint & libdw to print out every memory location considered for
relocation. The test itself then is to use readelf -winfo and dwarflint
to collect reloc prints, and expect them to be the same.
The test takes ages. I had to restart it on Monday due to trivial bug
in method that I've made, and it's still running as of now. I had to
tweak the method a couple times to get rid of some false positives (e.g.
absence of .debug_info), but there were no real failures so far, and I
expect that hooks are doing the right thing WRT .debug_info.
PM
14 years, 11 months
Sicking for asistance
by rita johnson
Hello
How are you today? I am happy in your attention to my mail, from your attention i can see you are such a nice person that i can give all my life and my trust, dear i know that having you in my life will bring joy into me, well It is a bit hot over here in Dakar-Senegal, my staying here is just like one staying in the prison and i hope by Gods grace i will come out here soon no relative no who I can go to as all my relatives died during the crisis in my country, the only person who take care of us is Rev. Thomas Ba, and is the pastor of the only church here in the camp (Christian Fellowship) He has been very kind to me since i came here but i am not living with him rather i live in the hostel camp.
As a refugee here i don't have any right or privilege to any thing be it whatever because it is against the law of this country, i was in my second year when the tragic incident that take the lives of my parents during the crisis that occurred in my country and i want you to know this i have my late father's statement of bank account and document, because when my father was alive he deposited some amount of money in one of the leading Finance House which he used my name as the next of kin the amount is $4.8m (Four Million eight Hundred Thousand Dollars) and i went to the bank to clam the money the said that i am a refugee here and advice me to look for someone that can stand for me here so that the will transfer the money with the person name and i will like you to help me transfer this money to your account and from it you can send some money for me to get my travailing documents and air ticket to come over to meet you.
I kept this secret to people in the camp here the only person that knows about it is the Reverend because he is like a father to me so in the light of above i will like you to keep it to yourself and don't tell it to any one for i am afraid of loosing my life and the money if people gets to know about it remember i am giving you all this information due to the trust i have on you, I like honest and understanding person, faithful and a person of vision, truth and hard working and i want you to think about me please i am waiting to hear from you soonest.
Yours in one,
Rita Johnson.
14 years, 11 months
[SPAM] Global Leadership in Handcare - Consumer, Auto, Professional & Industrial Products - OTC : FLKI
by Communication Officer OptIN Customer Base
.headerTop { background-color:#ffffff; border-top:0px solid #000000; border-bottom:0px
solid #FFCC66; text-align:right; } .adminText { font-size:10px; color:#FFFFCC;
line-height:200%; font-family:verdana; text-decoration:none; } .headerBar {
background-color:#fcd200; border-top:0px solid #fcd200; border-bottom:0px solid
#333333; } .title { font-size:30px; font-weight:bold; color:#336600; font-family:arial;
line-height:110%; } .subTitle { font-size:11px; font-weight:normal; color:#666666;
font-style:italic; font-family:arial; } td { font-size:12px; color:#000000;
line-height:150%; font-family:trebuchet ms; } .footerRow { background-color:#FFFFCC;
border-top:10px solid #fcd200; } .footerText { font-size:10px; color:#333333;
line-height:100%; font-family:verdana; } a { color:#0063be; color:#0063be;
color:#0063be; }
Clean Plus Hand Wipes.
Non-abrasive economical hand cleansing wet wipes for frequent use. Ideal for
use in the industrial, farming, maintenance, and office sectors. Removes all
types of dirt, greasy stains, ink, fuel and odours from hands. Qualified hypoallergenic
and lipo-protective. Antibacterial properties. Perfect when soap and water
are not readily available.
Clean Plus® wants to simplify you life, to make the cleaning process quick
and fun, to deliver nothing but the best.
To learn more about Clean Plus®, click here.
Also Try Other Clean Plus® Hand Care Products.
Industry, automotive, maintenance, office.... Clean Plus® Hand Care offers
hand care products for every professional. Traditional granulated soaps, super-cleaning
hand wet wipes and liquids for people on the move and special creams to protect
and restore your skin.
To learn more click here
Capital Pro Marketing is a specialist in the promotion business. We do not
support Spam mails. This email was sent to you because we feel that whether
you are an investor, distributor, or consumer, you are able to benefit from
the above information pertaining to the corporate image building efforts of
our client, products promotion, and Customer Relationship Management activities.
If you feel that the information provided in this mail was not useful to you
and would like to have your name removed from our mailing list, kindly follow
the directions below. My CNN Now will ensure every effort to take your name
off immediately. We apologize for any inconvenience caused.
T his message is sent in compliance of the new email Bill HR 1910.Under Bill
HR 1910 passed by the 106th US Congress on May 24, 1999,this message cannot
be considered Spam as long as we include the way to be removed.
P er Section HR 1910, Please type "REMOVE ME PLEASE" in the subject line and
send to capitalpronews(a)freesurf.fr< /td>
14 years, 12 months
pmachata/reader_hooks review
by Roland McGrath
I'm looking at 6200ba6.
* Cosmetic trivia: casts should look like "(type) expression".
When I either type is void * (like d_buf), don't cast at all.
* What is read_length for? I don't think there can be any relocs in the
DW_FORM_block* length fields. What other use do you envision for it?
* read_offset should take another IDX_* argument for the target section into
which the offset points. (Sorry, I thought I had said that before.) This
lets us consolidate the basic offset sanity checking there.
* s/Dwarf_Addr/Dwarf_Off/ in the read_offset signature.
* DW_FORM_ref[48] should not have relocs. Those values are CU-relative and
must always be computed by arithmetic at assembly time. Of the reference
forms, I think only DW_FORM_ref_addr can have a reloc.
* In both pubnames and formref_die, s/address/offset/.
* In dwarf_getlocation_addr, s/IDX_debug_info/IDX_debug_loc/.
* Make __libdw_in_section return bool. It only makes sense for helpers to
return int (0/-1) when that might be usable directly as the return value
by a public dwarf_* caller.
* In dwarf_getpubnames, only the cu_offset header field can have a reloc.
The die_offset fields are CU-relative.
* There are two cases of reading a begin/end pair of address_size words: in
location lists (dwarf_getlocation.c), and in range lists (dwarf_ranges.c).
These should be consolidated into a single helper that we can make
reloc-savvy (might as well put it in dwarf_ranges.c). That can do these
several common things:
* Take the base-address logic from dwarf_getlocation.c (start with -1 and
initialize it on demand).
* A base address entry should be one where there is no reloc on the
"begin" word, so it is literal -1.
* An end of list entry should be one where there are no relocs on either
word and both are literal 0.
We don't need any new logic for the moment, just make it a stub for now
and we can fill it in with the real reloc support when we do that to the
other stubs.
* dwarf_formudata needs special treatment.
If DW_FORM_data[48] have relocs for a "constant", those are the
read_address flavor, not the read_offset flavor. Really "address"
doesn't mean "address", it means "relocated with reference to allocated
sections". So if it has any relocs at all, they will be that flavor.
For the internal calls for the "class *ptr" attributes, we should use a
new internal helper in place of dwarf_formudata. That helper can take
the attribute, the target-section IDX_*, and a Dwarf_Off * to fill in.
It does the form decode and read_offset together.
In fact, looking at all the read_offset uses, I think we should roll a
bit more in there. Instead of yielding a Dwarf_Off, it can just yield
a const unsigned char *. It should take an additional argument that is
the DWARF_E_* code to fail with if the target section is missing.
It might be simplest to make it also just yield an endp, to we can make
everything use endp - readp < n comparisons instead of d_size checks.
Thanks,
Roland
15 years
dwarf_getscope() fails on x86_64 arch
by Sharyathi Nagesh
Hi
I was testing one of my application written using libdw library
provided by elfutils-0.141/elfutils-0.137 and it consistently hit error
with dwarf_getscopes(). API returned -1 and dwarf_errmsg() returned
(null). This problem was observed when the application is made to run
over 64 bit vmlinux (with debug info) image, The function address are 64
bit and of the format 0xffffffff800aa89f.
Same code works fine with other non vmlinux executables, in which
address is 32 bit, Same code works fine on ppc64 and on 64 bit vmlinux
image on that machine.
---------------------------------------------------------------------------
Ex:
Pseudo code of what I was trying
#define Addr 0xffffffff800aa956 <== Hard Coded function pc
int main(int argc, char *argv[])
{
fd = open_file(argv[1] /* Vmlinux Executable */);
elf_descriptor = elf_begin(fd, elf_cmd, (Elf *) 0);
dbg = dwarf_begin_elf(elf_descriptor, dwarf_cmd, NULL);
process_debug_information(dbg)
}
int process_debug_information(Dwarf *dbg, Dwarf_Addr *addr)
{
Dwarf_Die result_cu;
Dwarf_Die *cu_die;
//Find the Required Compiler Unit
cu_die = dwarf_addrdie(dbg,Addr,&result_cu); <== PASS
//Find the required Function Die
nscopes = dwarf_getscopes(cu_die,addr, &scopes); <== FAIL
/* This returns -1 and dwarf_errmsg() returns null */
}
---------------------------------------------------------------------------
If some can help me with this bug fixing it will be of great help
Thanks
Sharyathi Nagesh
15 years